Skip to content

Commit 9181bc2

Browse files
authored
1 parent a9ac261 commit 9181bc2

File tree

22 files changed

+1720
-1
lines changed

22 files changed

+1720
-1
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`policies create 1`] = `
4+
{
5+
"headers": {
6+
"accept": "*/*",
7+
"accept-encoding": "gzip,deflate",
8+
"connection": "close",
9+
"content-length": "165",
10+
"content-type": "application/json",
11+
"host": "auth.globus.org",
12+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
13+
},
14+
"json": {
15+
"policy": {
16+
"authentication_assurance_timeout": 3600,
17+
"description": "testing",
18+
"display_name": "My New Policy",
19+
"high_assurance": true,
20+
"project_id": "my-fake-project-uuid",
21+
},
22+
},
23+
"method": "POST",
24+
"url": "https://auth.globus.org/v2/api/policies",
25+
}
26+
`;
27+
28+
exports[`policies get 1`] = `
29+
{
30+
"headers": {
31+
"accept": "*/*",
32+
"accept-encoding": "gzip,deflate",
33+
"connection": "close",
34+
"host": "auth.globus.org",
35+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
36+
},
37+
"method": "GET",
38+
"url": "https://auth.globus.org/v2/api/policies/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
39+
}
40+
`;
41+
42+
exports[`policies getAll 1`] = `
43+
{
44+
"headers": {
45+
"accept": "*/*",
46+
"accept-encoding": "gzip,deflate",
47+
"connection": "close",
48+
"host": "auth.globus.org",
49+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
50+
},
51+
"method": "GET",
52+
"url": "https://auth.globus.org/v2/api/policies",
53+
}
54+
`;
55+
56+
exports[`policies remove 1`] = `
57+
{
58+
"headers": {
59+
"accept": "*/*",
60+
"accept-encoding": "gzip,deflate",
61+
"connection": "close",
62+
"host": "auth.globus.org",
63+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
64+
},
65+
"json": undefined,
66+
"method": "DELETE",
67+
"url": "https://auth.globus.org/v2/api/policies/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
68+
}
69+
`;
70+
71+
exports[`policies update 1`] = `
72+
{
73+
"headers": {
74+
"accept": "*/*",
75+
"accept-encoding": "gzip,deflate",
76+
"connection": "close",
77+
"content-length": "81",
78+
"content-type": "application/json",
79+
"host": "auth.globus.org",
80+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
81+
},
82+
"json": {
83+
"policy": {
84+
"description": "new description",
85+
"display_name": "Updated Policy Name",
86+
},
87+
},
88+
"method": "PUT",
89+
"url": "https://auth.globus.org/v2/api/policies/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
90+
}
91+
`;
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`projects create 1`] = `
4+
{
5+
"headers": {
6+
"accept": "*/*",
7+
"accept-encoding": "gzip,deflate",
8+
"connection": "close",
9+
"content-length": "120",
10+
"content-type": "application/json",
11+
"host": "auth.globus.org",
12+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
13+
},
14+
"json": {
15+
"project": {
16+
"admin_ids": [
17+
"admin-id-1",
18+
"admin-id-2",
19+
],
20+
"contact_email": "contact@test.com",
21+
"display_name": "My New Project",
22+
},
23+
},
24+
"method": "POST",
25+
"url": "https://auth.globus.org/v2/api/projects",
26+
}
27+
`;
28+
29+
exports[`projects get 1`] = `
30+
{
31+
"headers": {
32+
"accept": "*/*",
33+
"accept-encoding": "gzip,deflate",
34+
"connection": "close",
35+
"host": "auth.globus.org",
36+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
37+
},
38+
"method": "GET",
39+
"url": "https://auth.globus.org/v2/api/projects/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
40+
}
41+
`;
42+
43+
exports[`projects getAll 1`] = `
44+
{
45+
"headers": {
46+
"accept": "*/*",
47+
"accept-encoding": "gzip,deflate",
48+
"connection": "close",
49+
"host": "auth.globus.org",
50+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
51+
},
52+
"method": "GET",
53+
"url": "https://auth.globus.org/v2/api/projects",
54+
}
55+
`;
56+
57+
exports[`projects remove 1`] = `
58+
{
59+
"headers": {
60+
"accept": "*/*",
61+
"accept-encoding": "gzip,deflate",
62+
"connection": "close",
63+
"host": "auth.globus.org",
64+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
65+
},
66+
"json": undefined,
67+
"method": "DELETE",
68+
"url": "https://auth.globus.org/v2/api/projects/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
69+
}
70+
`;
71+
72+
exports[`projects update 1`] = `
73+
{
74+
"headers": {
75+
"accept": "*/*",
76+
"accept-encoding": "gzip,deflate",
77+
"connection": "close",
78+
"content-length": "88",
79+
"content-type": "application/json",
80+
"host": "auth.globus.org",
81+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
82+
},
83+
"json": {
84+
"project": {
85+
"contact_email": "new_email@test.com",
86+
"display_name": "Updated Project Name",
87+
},
88+
},
89+
"method": "PUT",
90+
"url": "https://auth.globus.org/v2/api/projects/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
91+
}
92+
`;
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`scopes get 1`] = `
4+
{
5+
"headers": {
6+
"accept": "*/*",
7+
"accept-encoding": "gzip,deflate",
8+
"connection": "close",
9+
"host": "auth.globus.org",
10+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
11+
},
12+
"method": "GET",
13+
"url": "https://auth.globus.org/v2/api/scopes/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
14+
}
15+
`;
16+
17+
exports[`scopes getAll 1`] = `
18+
{
19+
"headers": {
20+
"accept": "*/*",
21+
"accept-encoding": "gzip,deflate",
22+
"connection": "close",
23+
"host": "auth.globus.org",
24+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
25+
},
26+
"method": "GET",
27+
"url": "https://auth.globus.org/v2/api/scopes",
28+
}
29+
`;
30+
31+
exports[`scopes remove 1`] = `
32+
{
33+
"headers": {
34+
"accept": "*/*",
35+
"accept-encoding": "gzip,deflate",
36+
"connection": "close",
37+
"host": "auth.globus.org",
38+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
39+
},
40+
"json": undefined,
41+
"method": "DELETE",
42+
"url": "https://auth.globus.org/v2/api/scopes/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
43+
}
44+
`;
45+
46+
exports[`scopes update 1`] = `
47+
{
48+
"headers": {
49+
"accept": "*/*",
50+
"accept-encoding": "gzip,deflate",
51+
"connection": "close",
52+
"content-length": "71",
53+
"content-type": "application/json",
54+
"host": "auth.globus.org",
55+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
56+
},
57+
"json": {
58+
"scope": {
59+
"description": "new description",
60+
"name": "Updated Scope Name",
61+
},
62+
},
63+
"method": "PUT",
64+
"url": "https://auth.globus.org/v2/api/scopes/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
65+
}
66+
`;
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`clients create 1`] = `
4+
{
5+
"headers": {
6+
"accept": "*/*",
7+
"accept-encoding": "gzip,deflate",
8+
"connection": "close",
9+
"content-length": "152",
10+
"content-type": "application/json",
11+
"host": "auth.globus.org",
12+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
13+
},
14+
"json": {
15+
"client": {
16+
"links": {},
17+
"name": "My Test Client",
18+
"project": "test-project-id",
19+
"public_client": true,
20+
"redirect_uris": [
21+
"www.test.com",
22+
],
23+
"visibility": "private",
24+
},
25+
},
26+
"method": "POST",
27+
"url": "https://auth.globus.org/v2/api/clients",
28+
}
29+
`;
30+
31+
exports[`clients createNativeApp 1`] = `
32+
{
33+
"headers": {
34+
"accept": "*/*",
35+
"accept-encoding": "gzip,deflate",
36+
"connection": "close",
37+
"content-length": "75",
38+
"content-type": "application/json",
39+
"host": "auth.globus.org",
40+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
41+
},
42+
"json": {
43+
"client": {
44+
"name": "My Native App",
45+
"template_id": "test-native-template-id",
46+
},
47+
},
48+
"method": "POST",
49+
"url": "https://auth.globus.org/v2/api/clients",
50+
}
51+
`;
52+
53+
exports[`clients get 1`] = `
54+
{
55+
"headers": {
56+
"accept": "*/*",
57+
"accept-encoding": "gzip,deflate",
58+
"connection": "close",
59+
"host": "auth.globus.org",
60+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
61+
},
62+
"method": "GET",
63+
"url": "https://auth.globus.org/v2/api/clients/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
64+
}
65+
`;
66+
67+
exports[`clients getAll 1`] = `
68+
{
69+
"headers": {
70+
"accept": "*/*",
71+
"accept-encoding": "gzip,deflate",
72+
"connection": "close",
73+
"host": "auth.globus.org",
74+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
75+
},
76+
"method": "GET",
77+
"url": "https://auth.globus.org/v2/api/clients?fqdn=www.test.com",
78+
}
79+
`;
80+
81+
exports[`clients remove 1`] = `
82+
{
83+
"headers": {
84+
"accept": "*/*",
85+
"accept-encoding": "gzip,deflate",
86+
"connection": "close",
87+
"host": "auth.globus.org",
88+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
89+
},
90+
"json": undefined,
91+
"method": "DELETE",
92+
"url": "https://auth.globus.org/v2/api/clients/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
93+
}
94+
`;
95+
96+
exports[`clients update 1`] = `
97+
{
98+
"headers": {
99+
"accept": "*/*",
100+
"accept-encoding": "gzip,deflate",
101+
"connection": "close",
102+
"content-length": "157",
103+
"content-type": "application/json",
104+
"host": "auth.globus.org",
105+
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
106+
},
107+
"json": {
108+
"client": {
109+
"links": {
110+
"privacy_policy": "www.test.com/privacy",
111+
"terms_and_conditions": "www.test.com/terms",
112+
},
113+
"name": "Updated Client Name",
114+
"visibility": "public",
115+
},
116+
},
117+
"method": "PUT",
118+
"url": "https://auth.globus.org/v2/api/clients/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
119+
}
120+
`;

0 commit comments

Comments
 (0)