Skip to content

Commit cf74caa

Browse files
test: added mock data for deploy unit test
1 parent 6f7b5f5 commit cf74caa

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

test/unit/mock/common.mock.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,113 @@
4242
"uid": "test-installation-uid-2",
4343
"target": { "uid": "stack_api_key_2" }
4444
}
45+
],
46+
"deploy_custom_host": {
47+
"group": "user",
48+
"framework_version": "1.0",
49+
"version": 13,
50+
"icon": "",
51+
"description": "",
52+
"hosting": {
53+
"provider": "external",
54+
"deployment_url": "https://example.com"
55+
},
56+
"target_type": "stack",
57+
"name": "App 1",
58+
"ui_location": {
59+
"signed": false,
60+
"base_url": "https://example.com",
61+
"locations": []
62+
},
63+
"visibility": "private",
64+
"created_by": {
65+
"uid": "uid",
66+
"first_name": "first_name",
67+
"last_name": "last_name"
68+
},
69+
"updated_by": {
70+
"uid": "uid",
71+
"first_name": "first_name",
72+
"last_name": "last_name"
73+
},
74+
"organization_uid": "test-uid-1",
75+
"created_at": "2024-05-28T11:20:12.405Z",
76+
"updated_at": "2024-06-25T06:24:31.864Z",
77+
"uid": "app-uid-1"
78+
},
79+
"deploy_launch_host": {
80+
"group": "user",
81+
"framework_version": "1.0",
82+
"version": 13,
83+
"icon": "",
84+
"description": "",
85+
"hosting": {
86+
"provider": "external",
87+
"deployment_url": "https://example.com"
88+
},
89+
"target_type": "stack",
90+
"name": "App 1",
91+
"ui_location": {
92+
"signed": false,
93+
"base_url": "https://example.com",
94+
"locations": []
95+
},
96+
"visibility": "private",
97+
"created_by": {
98+
"uid": "uid",
99+
"first_name": "first_name",
100+
"last_name": "last_name"
101+
},
102+
"updated_by": {
103+
"uid": "uid",
104+
"first_name": "first_name",
105+
"last_name": "last_name"
106+
},
107+
"organization_uid": "test-uid-1",
108+
"created_at": "2024-05-28T11:20:12.405Z",
109+
"updated_at": "2024-06-25T06:24:31.864Z",
110+
"uid": "app-uid-1"
111+
},
112+
"apps2": [
113+
{
114+
"uid": "app-uid-1",
115+
"name": "App 1",
116+
"target_type": "organization"
117+
},
118+
{
119+
"uid": "app-uid-2",
120+
"name": "App 2",
121+
"group": "user",
122+
"framework_version": "1.0",
123+
"version": 24,
124+
"icon": "",
125+
"description": "",
126+
"hosting": {
127+
"provider": "launch",
128+
"deployment_url": "https://example.com",
129+
"environment_uid": "environment_uid",
130+
"project_uid": "project_uid"
131+
},
132+
"target_type": "stack",
133+
"ui_location": {
134+
"signed": false,
135+
"base_url": "https://example.com",
136+
"locations": []
137+
},
138+
"visibility": "private",
139+
"created_by": {
140+
"uid": "uid",
141+
"first_name": "first_name",
142+
"last_name": "last_name"
143+
},
144+
"updated_by": {
145+
"uid": "uid",
146+
"first_name": "first_name",
147+
"last_name": "last_name"
148+
},
149+
"organization_uid": "test-uid-1",
150+
"created_at": "2024-05-28T11:20:12.405Z",
151+
"updated_at": "2024-06-25T10:50:52.071Z"
152+
}
45153
]
46154
}

0 commit comments

Comments
 (0)