Skip to content

Commit 5e1e572

Browse files
committed
NAS-3743 user service test support
* added test support for user service * added test support for utils
1 parent 6a286ba commit 5e1e572

28 files changed

Lines changed: 5659 additions & 0 deletions
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"userGroups": [
3+
{
4+
"id": "adminGroup"
5+
},
6+
{
7+
"id": "demoGroup"
8+
},
9+
{
10+
"id": "adminQA1Group",
11+
"parents": [
12+
{
13+
"id": "adminGroup",
14+
"type": "userGroup"
15+
}
16+
]
17+
},
18+
{
19+
"id": "visitorsGroup",
20+
"parents": [
21+
{
22+
"id": "demoGroup",
23+
"type": "userGroup"
24+
}
25+
]
26+
}
27+
]
28+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"users": [
3+
{
4+
"id": "admin",
5+
"userGroups": [
6+
{
7+
"id": "adminGroup",
8+
"type": "userGroup"
9+
}
10+
]
11+
},
12+
{
13+
"authId": "CiRiYWNhZjYxYS00Y2NmLTQxODEtOWE5OC05ZTI5YjExYTBhMDASBWxvY2Fs",
14+
"id": "demo",
15+
"userGroups": [
16+
{
17+
"id": "adminGroup",
18+
"type": "userGroup"
19+
}
20+
]
21+
},
22+
{
23+
"authId": "CiQzNzAzYzg1Ni0xNTU0LTRjNjEtOTU1Mi1lMWRjNjliNmIyN2USBWxvY2Fs",
24+
"id": "demo2",
25+
"userGroups": [
26+
{
27+
"id": "demoGroup",
28+
"type": "userGroup"
29+
}
30+
]
31+
}
32+
]
33+
}

gooddata-sdk/tests/catalog/fixtures/users/create_delete_user.json

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.

gooddata-sdk/tests/catalog/fixtures/users/create_delete_user_group.json

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"version": 1,
3+
"interactions": [
4+
{
5+
"request": {
6+
"method": "GET",
7+
"uri": "http://localhost:3000/api/layout/userGroups",
8+
"body": null,
9+
"headers": {
10+
"Accept": [
11+
"application/json"
12+
],
13+
"X-Requested-With": [
14+
"XMLHttpRequest"
15+
],
16+
"X-GDC-VALIDATE-RELATIONS": [
17+
"true"
18+
]
19+
}
20+
},
21+
"response": {
22+
"status": {
23+
"code": 200,
24+
"message": ""
25+
},
26+
"headers": {
27+
"Access-Control-Expose-Headers": [
28+
"Content-Disposition, Content-Length, Content-Range, Set-Cookie"
29+
],
30+
"Vary": [
31+
"Origin",
32+
"Access-Control-Request-Method",
33+
"Access-Control-Request-Headers"
34+
],
35+
"Transfer-Encoding": [
36+
"chunked"
37+
],
38+
"Access-Control-Allow-Credentials": [
39+
"true"
40+
],
41+
"Expires": [
42+
"0"
43+
],
44+
"X-GDC-TRACE-ID": [
45+
"26963d8c57086e42"
46+
],
47+
"X-Frame-Options": [
48+
"DENY"
49+
],
50+
"X-XSS-Protection": [
51+
"1; mode=block"
52+
],
53+
"Content-Security-Policy": [
54+
"default-src 'self' *.wistia.com *.wistia.net; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.wistia.com *.wistia.net src.litix.io matomo.anywhere.gooddata.com code.jquery.com unpkg.com cdn.jsdelivr.net cdnjs.cloudflare.com; img-src 'self' data: blob: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net www.gooddata.com; style-src 'self' 'unsafe-inline' fonts.googleapis.com cdn.jsdelivr.net; font-src 'self' data: fonts.gstatic.com *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src 'self'; object-src 'none'; worker-src 'self' blob:; child-src blob:; connect-src 'self' *.tiles.mapbox.com *.mapbox.com *.litix.io *.wistia.com embedwistia-a.akamaihd.net matomo.anywhere.gooddata.com; media-src 'self' blob: data: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net"
55+
],
56+
"Server": [
57+
"nginx"
58+
],
59+
"Pragma": [
60+
"no-cache"
61+
],
62+
"Permission-Policy": [
63+
"geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment 'none';"
64+
],
65+
"X-Content-Type-Options": [
66+
"nosniff"
67+
],
68+
"Set-Cookie": [
69+
"SPRING_SEC_SECURITY_CONTEXT=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly"
70+
],
71+
"Content-Type": [
72+
"application/json"
73+
],
74+
"Connection": [
75+
"keep-alive"
76+
],
77+
"Cache-Control": [
78+
"no-cache, no-store, max-age=0, must-revalidate"
79+
],
80+
"GoodData-Deployment": [
81+
"aio"
82+
],
83+
"Date": [
84+
"Wed, 25 May 2022 05:51:01 GMT"
85+
]
86+
},
87+
"body": {
88+
"string": "{\"userGroups\":[{\"id\":\"adminGroup\"},{\"id\":\"adminQA1Group\",\"parents\":[{\"id\":\"adminGroup\",\"type\":\"userGroup\"}]},{\"id\":\"demoGroup\"},{\"id\":\"visitorsGroup\",\"parents\":[{\"id\":\"demoGroup\",\"type\":\"userGroup\"}]}]}"
89+
}
90+
}
91+
},
92+
{
93+
"request": {
94+
"method": "GET",
95+
"uri": "http://localhost:3000/api/layout/userGroups",
96+
"body": null,
97+
"headers": {
98+
"Accept": [
99+
"application/json"
100+
],
101+
"X-Requested-With": [
102+
"XMLHttpRequest"
103+
],
104+
"X-GDC-VALIDATE-RELATIONS": [
105+
"true"
106+
]
107+
}
108+
},
109+
"response": {
110+
"status": {
111+
"code": 200,
112+
"message": ""
113+
},
114+
"headers": {
115+
"Access-Control-Expose-Headers": [
116+
"Content-Disposition, Content-Length, Content-Range, Set-Cookie"
117+
],
118+
"Vary": [
119+
"Origin",
120+
"Access-Control-Request-Method",
121+
"Access-Control-Request-Headers"
122+
],
123+
"Transfer-Encoding": [
124+
"chunked"
125+
],
126+
"Access-Control-Allow-Credentials": [
127+
"true"
128+
],
129+
"Expires": [
130+
"0"
131+
],
132+
"X-GDC-TRACE-ID": [
133+
"31a5e652f2794983"
134+
],
135+
"X-Frame-Options": [
136+
"DENY"
137+
],
138+
"X-XSS-Protection": [
139+
"1; mode=block"
140+
],
141+
"Content-Security-Policy": [
142+
"default-src 'self' *.wistia.com *.wistia.net; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.wistia.com *.wistia.net src.litix.io matomo.anywhere.gooddata.com code.jquery.com unpkg.com cdn.jsdelivr.net cdnjs.cloudflare.com; img-src 'self' data: blob: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net www.gooddata.com; style-src 'self' 'unsafe-inline' fonts.googleapis.com cdn.jsdelivr.net; font-src 'self' data: fonts.gstatic.com *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src 'self'; object-src 'none'; worker-src 'self' blob:; child-src blob:; connect-src 'self' *.tiles.mapbox.com *.mapbox.com *.litix.io *.wistia.com embedwistia-a.akamaihd.net matomo.anywhere.gooddata.com; media-src 'self' blob: data: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net"
143+
],
144+
"Server": [
145+
"nginx"
146+
],
147+
"Pragma": [
148+
"no-cache"
149+
],
150+
"Permission-Policy": [
151+
"geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment 'none';"
152+
],
153+
"X-Content-Type-Options": [
154+
"nosniff"
155+
],
156+
"Set-Cookie": [
157+
"SPRING_SEC_SECURITY_CONTEXT=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly"
158+
],
159+
"Content-Type": [
160+
"application/json"
161+
],
162+
"Connection": [
163+
"keep-alive"
164+
],
165+
"Cache-Control": [
166+
"no-cache, no-store, max-age=0, must-revalidate"
167+
],
168+
"GoodData-Deployment": [
169+
"aio"
170+
],
171+
"Date": [
172+
"Wed, 25 May 2022 05:51:01 GMT"
173+
]
174+
},
175+
"body": {
176+
"string": "{\"userGroups\":[{\"id\":\"adminGroup\"},{\"id\":\"adminQA1Group\",\"parents\":[{\"id\":\"adminGroup\",\"type\":\"userGroup\"}]},{\"id\":\"demoGroup\"},{\"id\":\"visitorsGroup\",\"parents\":[{\"id\":\"demoGroup\",\"type\":\"userGroup\"}]}]}"
177+
}
178+
}
179+
}
180+
]
181+
}

0 commit comments

Comments
 (0)