mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
Merge pull request #8218 from hashicorp/b-ui/plugin-allocation-healthy-flakiness
UI: Add cycling to factory healthy flags
This commit is contained in:
@@ -7,7 +7,7 @@ export default Factory.extend({
|
||||
provider: faker.helpers.randomize(STORAGE_PROVIDERS),
|
||||
providerVersion: '1.0.1',
|
||||
|
||||
healthy: faker.random.boolean,
|
||||
healthy: i => [true, false][i % 2],
|
||||
healthDescription() {
|
||||
this.healthy ? 'healthy' : 'unhealthy';
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@ export default Factory.extend({
|
||||
provider: faker.helpers.randomize(STORAGE_PROVIDERS),
|
||||
providerVersion: '1.0.1',
|
||||
|
||||
healthy: faker.random.boolean,
|
||||
healthy: i => [true, false][i % 2],
|
||||
healthDescription() {
|
||||
this.healthy ? 'healthy' : 'unhealthy';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user