fix: 🐛 Fixt host mock data attributes
Refactor ip_addresses, dns_names and external_id to not be nested under
attributes: {} when generating mock data.
This commit is contained in:
1 parent
ea85879cfc
commit
46c54fb22d
2 files changed
+25
-35
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { Factory } from 'ember-cli-mirage';
|
||||
import { random, date, datatype } from 'faker';
|
||||
import { random, date, datatype, internet } from 'faker';
|
||||
|
||||
/**
|
||||
* GeneratedHostModelFactory
|
||||
@@ -11,4 +11,7 @@ export default Factory.extend({
|
||||
created_time: () => date.recent(),
|
||||
updated_time: () => date.recent(),
|
||||
version: () => datatype.number(),
|
||||
attributes: () => {
|
||||
return { address: internet.ipv6() };
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user