Buck Doyle
550e1b1a1e
UI: Change Mirage data to be stable in development ( #6389 )
...
This sets a default-but-query-configurable Faker seed in development,
via faker-seed. It also changes uses of Math.random to use Faker’s
randomness so auto-generated data remains stable in development.
2019-10-03 09:13:08 -05:00
Buck Doyle
a37d45223a
UI: Change factories to be more dynamic ( #6387 )
...
I noticed while working on #6166 that some of the factory properties
that used Faker’s randomisation features are using their output
rather than a function that would call the randomiser. This means that
the randomisation happens once and the value is used for every model
generated by the factory. This wraps the randomiser calls in functions
so different models can have different values.
2019-09-30 09:44:22 -05:00
Buck Doyle
7fcfdab316
UI: Update Mirage to 1.1.2 ( #6166 )
2019-09-26 13:47:07 -05:00
Mahmood Ali
d966a2fe9e
ui: protect against nil services
...
Protect against case where an alloc has no services and avoid
dereferencing null.
Here, we ensure that the model and test serializers mimic the API by
having nil TaskGroup.Services instead of an empty array.
2019-09-16 16:50:30 -04:00
Buck Doyle
dfb88cc787
UI: add Consul Connect features ( #6108 )
2019-09-04 09:39:56 -05:00
Buck Doyle
2364fb2da1
UI: Add creation time to evaluations table ( #6050 )
2019-08-22 08:11:24 -05:00
Michael Lange
c29d836dd9
Merge pull request #5871 from hashicorp/f-ui/alloc-fs
...
UI: Allocation file system explorer
2019-08-20 10:18:23 -07:00
Michael Lange
7b038acdb7
Remove the temporary allocationFileExplorer mirage scenario
2019-08-20 09:40:49 -07:00
Buck Doyle
02f6a71dae
Add ability to control Mirage logging via query ( #6105 )
...
This lets us turn Mirage logging on without editing any
files, which makes it easier to switch between branches.
2019-08-20 08:36:08 -05:00
Michael Lange
a321145457
Encode characters in file paths to ensure proper URIs
2019-08-14 12:54:11 -07:00
Michael Lange
186a620ef1
Include all client fs endpoints in the hosts block
2019-08-07 17:34:41 -07:00
Michael Lange
55d8ff4b0b
Add additional troublesome characters to the alloc-file name factory
2019-08-07 15:29:57 -07:00
Michael Lange
e277cc5308
Update factory-based fs tests to sort properly
2019-07-31 01:41:00 -07:00
Michael Lange
0471f28e9e
Add file mocks to every mirage scenario
2019-07-30 17:25:50 -07:00
Michael Lange
8f496e8b65
Refactor existing fs tests to use new mirage factories
2019-07-30 17:25:46 -07:00
Michael Lange
33f1da9bbd
cat, stream, and readat mocks for alloc fs
2019-07-30 17:25:44 -07:00
Michael Lange
97c45096df
Use the alloc file factory for the fs stat and fs ls end points
2019-07-30 17:25:43 -07:00
Michael Lange
c4dd61d1cd
Mirage factory for file system fixtures
2019-07-30 17:25:42 -07:00
Buck Doyle
ee07bab099
UI: Add allocation directory rendering ( #5873 )
...
This lets users navigate the allocation filesystem. It doesn’t
support viewing actual files yet.
2019-07-02 16:42:38 -05:00
Michael Lange
ece0c9038d
Give the allTheThings scenario a better name
2019-06-19 17:18:43 -07:00
Michael Lange
8920650990
New Mirage scenario for puppeteer script to use
2019-06-19 17:18:40 -07:00
Michael Lange
69c6c34afa
Support task restarting in the allocation adapter
2019-05-21 09:24:17 -07:00
Michael Lange
4c773a1f3c
Add preemption properties to Mirage allocation factory
2019-04-22 16:40:07 -07:00
Michael Lange
aba4882dcb
Introduce the concept of 'shallow' job models in Mirage
2019-04-11 20:08:09 -07:00
Michael Lange
768bfdf87d
Reduce the number of task groups and task events that are made
2019-04-11 18:15:35 -07:00
Michael Lange
b0a65bdb62
Update everything to work with the mirage backwards incompat
2019-04-10 14:54:37 -07:00
Michael Lange
23729ad5a7
Address the copy/copyable deprecation
2019-04-10 14:54:35 -07:00
Michael Lange
498f513dc0
Add nodeClass to the node model
2019-04-10 10:34:10 -05:00
Michael Lange
32954fa71e
Improve mirage modeling of allocations
...
Pending allocations never have tasks
2018-11-09 17:11:47 -08:00
Michael Lange
31045da9be
Merge pull request #4852 from hashicorp/b-ui-dispatched-job-page
...
UI: Show the correct template for dispatched jobs
2018-11-09 14:36:35 -08:00
Michael Lange
5801b79b81
Show the correct template for parameterized job children
2018-11-07 21:04:27 -08:00
Michael Lange
9ef79cd92c
Correctly mark parameterized children as parameterized: true
2018-11-07 17:07:40 -08:00
Michael Lange
b0a1a360ba
Improve client stat simulation and add a chance for requests to error
2018-11-01 22:11:56 -07:00
Michael Lange
f4ae9e19a3
Always return valid dates for timestamps
2018-09-19 16:33:18 -07:00
Michael Lange
f8c8c3cec4
Test coverage for NodeStatsTracker
2018-09-11 16:27:06 -07:00
Michael Lange
d824b70cee
Merge pull request #4616 from hashicorp/f-ui-promote-canary
...
UI: Promote canary
2018-08-30 09:48:31 -07:00
Michael Lange
c96c99aa37
Test coverage for the promote canary feature
2018-08-30 09:38:29 -07:00
Michael Lange
6463efe2ce
Test coverage for the job-editor component
...
Most of this was ported over from the existing job run acceptance tests
2018-08-23 09:00:14 -07:00
Michael Lange
2d0805c453
Test coverage for scheduler dry-run addition to the plan page
2018-08-20 16:44:37 -07:00
Michael Lange
635411f750
Rework job parse mirage request to get the job ID out of the payload
2018-08-16 17:22:22 -07:00
Michael Lange
4b12c069f6
Use the job name as the job id
...
This has bit me more than once. It's best just to make Mirage consistent
with the API even if it currently means indeterminate job ids
2018-08-15 17:00:08 -07:00
Michael Lange
09e6432e38
Support parse, plan, and run endpoints in mirage
2018-08-15 16:59:42 -07:00
Michael Lange
95e8259447
Acceptance tests for the region switcher
2018-08-10 12:52:05 -07:00
Michael Lange
dbc18c9d46
Properly model regions in Mirage
2018-08-09 19:57:21 -07:00
Michael Lange
ccae1fb1d6
Bare minimum Mirage support for regions
2018-08-09 18:22:37 -07:00
Michael Lange
81255bee16
Add createTime to the allocation model
2018-08-06 10:53:13 -07:00
Michael Lange
087f4a9ebc
Test coverage for the expanded feature set of the latest-deployment component
2018-07-30 15:31:31 -07:00
Michael Lange
742754c342
Support the /job/:id/deployment endpoint in mirage
2018-07-30 15:24:31 -07:00
Michael Lange
9023bb5676
Use the JobID as the Version ID for mirage job versions
2018-07-27 16:32:43 -07:00
Michael Lange
7138b28f44
Codify common mirage scenarios and make it easy to switch between
2018-07-10 10:06:11 -07:00