Skip to content

Commit 077c14e

Browse files
authored
Merge pull request #39 from fnaoto/2022-12-10
Add fixtures for resource test.
2 parents a45ed24 + c98b6f5 commit 077c14e

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: user=naoto-fukuda
6+
form:
7+
user:
8+
- naoto-fukuda
9+
headers:
10+
Accept:
11+
- application/json
12+
Content-Type:
13+
- application/x-www-form-urlencoded
14+
User-Agent:
15+
- GoDeployGate (+github.com/fnaoto/go_deploygate; go1.17.11)
16+
url: https://deploygate.com/api/enterprises/test-enterprise-fnaoto/organizations/test-organization-fnaoto/users
17+
method: POST
18+
response:
19+
body: ""
20+
headers: {}
21+
status: 201 Created
22+
code: 201
23+
duration: ""
24+
- request:
25+
body: ""
26+
form: {}
27+
headers:
28+
Accept:
29+
- application/json
30+
Content-Type:
31+
- application/x-www-form-urlencoded
32+
User-Agent:
33+
- GoDeployGate (+github.com/fnaoto/go_deploygate; go1.17.11)
34+
url: https://deploygate.com/api/enterprises/test-enterprise-fnaoto/organizations/test-organization-fnaoto/users
35+
method: GET
36+
response:
37+
body: '{"error":false,"users":[{"type":"User","name":"naoto-fukuda-test","icon_url":"https://secure.gravatar.com/avatar/b8522f0e74e1673596e2c15dca95c04a?s=218\u0026d=mm","url":"https://deploygate.com/users/naoto-fukuda-test"},{"type":"User","name":"naoto-fukuda","icon_url":"https://secure.gravatar.com/avatar/77329ff2f492bb519f6f11a7bd27d568?s=218\u0026d=mm","url":"https://deploygate.com/users/naoto-fukuda"}]}'
38+
headers: {}
39+
status: 200 OK
40+
code: 200
41+
duration: ""
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: ""
6+
form: {}
7+
headers:
8+
Accept:
9+
- application/json
10+
Content-Type:
11+
- application/x-www-form-urlencoded
12+
User-Agent:
13+
- GoDeployGate (+github.com/fnaoto/go_deploygate; go1.17.11)
14+
url: https://deploygate.com/api/enterprises/test-enterprise-fnaoto/organizations/test-organization-fnaoto/users
15+
method: GET
16+
response:
17+
body: '{"error":false,"users":[{"type":"User","name":"naoto-fukuda-test","icon_url":"https://secure.gravatar.com/avatar/b8522f0e74e1673596e2c15dca95c04a?s=218\u0026d=mm","url":"https://deploygate.com/users/naoto-fukuda-test"},{"type":"User","name":"naoto-fukuda","icon_url":"https://secure.gravatar.com/avatar/77329ff2f492bb519f6f11a7bd27d568?s=218\u0026d=mm","url":"https://deploygate.com/users/naoto-fukuda"}]}'
18+
headers: {}
19+
status: 200 OK
20+
code: 200
21+
duration: ""
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: ""
6+
form: {}
7+
headers:
8+
Accept:
9+
- application/json
10+
Content-Type:
11+
- application/x-www-form-urlencoded
12+
User-Agent:
13+
- GoDeployGate (+github.com/fnaoto/go_deploygate; go1.17.11)
14+
url: https://deploygate.com/api/enterprises/test-enterprise-fnaoto/organizations/test-organization-fnaoto/users/naoto-fukuda
15+
method: DELETE
16+
response:
17+
body: '{"error":false,"message":"naoto-fukuda was removed from test-organization-fnaoto(test-enterprise-fnaoto)"}'
18+
headers: {}
19+
status: 200 OK
20+
code: 200
21+
duration: ""

0 commit comments

Comments
 (0)