diff --git a/addons/api/mirage/factories/host.js b/addons/api/mirage/factories/host.js index 60300cba4..980a5b26d 100644 --- a/addons/api/mirage/factories/host.js +++ b/addons/api/mirage/factories/host.js @@ -10,6 +10,9 @@ export default factory.extend({ 'delete', ], id: (i) => `host-id-${i}`, + type() { + return this.hostCatalog?.type || factory.attrs.type; + }, plugin() { if (this.type === 'plugin') { return this.hostCatalog.plugin; diff --git a/addons/api/mirage/generated/factories/host.js b/addons/api/mirage/generated/factories/host.js index 7c6e5a24d..db9de3b56 100644 --- a/addons/api/mirage/generated/factories/host.js +++ b/addons/api/mirage/generated/factories/host.js @@ -5,6 +5,7 @@ import { random, date, internet, datatype } from 'faker'; * GeneratedHostModelFactory */ export default Factory.extend({ + type: 'static', name: () => random.words(), description: () => random.words(), created_time: () => date.recent(),