-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathuser.ts
More file actions
105 lines (93 loc) · 3.06 KB
/
user.ts
File metadata and controls
105 lines (93 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright Oxide Computer Company
*/
import type { User } from '@oxide/api'
import type { Json } from './json-type'
import { defaultSilo, myriadSilo, noPoolsSilo, pelerinesSilo, thraxSilo } from './silo'
export const user1: Json<User> = {
id: '2e28576d-43e0-4e9e-9132-838a7b66f602',
display_name: 'Hannah Arendt',
silo_id: defaultSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2023, 7, 14).toISOString(),
}
export const user2: Json<User> = {
id: '6937b251-013c-4f96-9afc-c62b1318dd0b',
display_name: 'Hans Jonas',
silo_id: defaultSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
export const user3: Json<User> = {
id: '4962021b-35e1-44a7-a40c-2264cd540615',
display_name: 'Jacob Klein',
silo_id: defaultSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
export const user4: Json<User> = {
id: '37c6aa2f-899e-4d56-bad1-93b5526a7151',
display_name: 'Simone de Beauvoir',
silo_id: defaultSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2022, 5, 20).toISOString(),
}
export const user5: Json<User> = {
id: 'e7ab4cc1-a7c6-43df-8f69-84bb507c4d22',
display_name: 'Jane Austen',
silo_id: defaultSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2024, 10, 3).toISOString(),
}
export const user6: Json<User> = {
id: 'f8c2b4d3-6e7a-4b9c-8d1e-3a4f5b6c7d8e',
display_name: 'Herbert Marcuse',
silo_id: defaultSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
// Users for test silos (different IP pool configurations)
export const userKosman: Json<User> = {
id: '9a8b7c6d-5e4f-4a2b-9c0d-9e8f7a6b5c4d',
display_name: 'Aryeh Kosman',
silo_id: myriadSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
export const userAnscombe: Json<User> = {
id: 'a9b8c7d6-e5f4-43b2-81d0-e9f8a7b6c5d4',
display_name: 'Elizabeth Anscombe',
silo_id: thraxSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
export const userAdorno: Json<User> = {
id: 'b0c9d8e7-f6a5-44c3-92e1-f0a9b8c7d6e5',
display_name: 'Theodor Adorno',
silo_id: pelerinesSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
export const userNoPools: Json<User> = {
id: 'c1d0e9f8-a7b6-45d4-a3f2-a1b0c9d8e7f6',
display_name: 'Antonio Gramsci',
silo_id: noPoolsSilo.id,
time_created: new Date(2021, 3, 1).toISOString(),
time_modified: new Date(2021, 3, 1).toISOString(),
}
export const users = [
user1,
user2,
user3,
user4,
user5,
user6,
userKosman,
userAnscombe,
userAdorno,
userNoPools,
]