2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2023-01-09 08:48:49 -08:00
|
|
|
import { Factory } from 'miragejs';
|
2022-08-01 11:25:07 -07:00
|
|
|
import { faker } from '@faker-js/faker';
|
2020-08-14 15:16:35 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GeneratedHostModelFactory
|
|
|
|
|
*/
|
|
|
|
|
export default Factory.extend({
|
|
|
|
|
type: 'static',
|
2022-08-01 11:25:07 -07:00
|
|
|
description: () => faker.random.words(),
|
|
|
|
|
created_time: () => faker.date.recent(),
|
|
|
|
|
updated_time: () => faker.date.recent(),
|
|
|
|
|
version: () => faker.datatype.number(),
|
2022-02-15 15:12:20 -08:00
|
|
|
attributes: () => {
|
2022-08-01 11:25:07 -07:00
|
|
|
return { address: faker.internet.ipv6() };
|
2022-02-15 15:12:20 -08:00
|
|
|
},
|
2020-08-14 15:16:35 -04:00
|
|
|
});
|