Merge pull request #8218 from hashicorp/b-ui/plugin-allocation-healthy-flakiness

UI: Add cycling to factory healthy flags
This commit is contained in:
Michael Lange
2020-06-19 14:39:47 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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';
},

View File

@@ -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';
},