Skip to content

Commit 190b081

Browse files
committed
test: add User+Group garbage tests
1 parent 9c06420 commit 190b081

17 files changed

+1559
-0
lines changed

Microsoft.SCIM.PlaywrightTests/UserAndGroupTestsWithGarbage.cs

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

Microsoft.SCIM.PlaywrightTests/Utils/SharedTestContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ public static class SharedTestContext
55
public static string? User2 { get; set; }
66
public static string? User3 { get; set; }
77
public static string? User4 { get; set; }
8+
public static string? UserOMalley { get; set; }
9+
public static string? UserEmp1 { get; set; }
10+
public static string? UserEmp2 { get; set; }
11+
public static string? UserEmp3 { get; set; }
12+
public static string? UserEnterprise { get; set; }
813
public static string? Group1 { get; set; }
914
public static string? Group2 { get; set; }
1015
public static string? Group3 { get; set; }
16+
public static string? Group1Garbage { get; set; }
1117
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"displayName": "Group 1",
3+
"externalId": "015489ea-9410-4306-b583-9f002b2446f7",
4+
"schemas": [
5+
"urn:ietf:params:scim:schemas:core:2.0:Group"
6+
]
7+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"id": "{{1stgroupid}}",
3+
"Operations": [
4+
{
5+
"op":"add",
6+
"path": "members",
7+
"value": "{{junkuserid}}"
8+
}
9+
],
10+
"schemas": [
11+
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
12+
]
13+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
3+
"Operations":[
4+
{
5+
"op":"Replace",
6+
"path":"active",
7+
"value": false
8+
}]
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
3+
"Operations":[
4+
{
5+
"op":"Replace",
6+
"path":"userName",
7+
"value":"newusername"
8+
}]
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "{{1stgroupid}}",
3+
"displayName": "Tiffany Ortiz",
4+
"externalId": "6c6b54c2-fa81-4234-ad4f-420ec6808049",
5+
"schemas": [
6+
"urn:ietf:params:scim:schemas:core:2.0:Group"
7+
]
8+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"id" : "{{1stuserid}}",
3+
"userName": "OMalley",
4+
"active": false,
5+
"addresses": [
6+
{
7+
"country": "Germany",
8+
"formatted": "1923 Jennifer Way Suite 040\nSouth Nancy, MI 55645",
9+
"locality": "East Mercedes",
10+
"postalCode": "99265",
11+
"region": "Montana",
12+
"streetAddress": "4939 Hess Fork",
13+
"type": "work",
14+
"primary": false
15+
},
16+
{
17+
"country": "bahams",
18+
"formatted": "18522 Lisa Unions\nEast Gregory, CT 52311",
19+
"locality": null,
20+
"postalCode": null,
21+
"region": null,
22+
"streetAddress": null,
23+
"type": "other",
24+
"primary": false
25+
}
26+
],
27+
"displayName": "Kimberly Baker",
28+
"emails": [
29+
{
30+
"type": "work",
31+
"primary": true,
32+
"value": "[email protected]"
33+
},
34+
{
35+
"type": "other",
36+
"primary": false,
37+
"value": "[email protected]"
38+
}
39+
],
40+
"meta": {
41+
"created": "2019-09-18T18:15:26.5788954+00:00",
42+
"lastModified": "2019-09-18T18:15:26.5788976+00:00",
43+
"resourceType": "User"
44+
},
45+
"name": {
46+
"formatted": "Daniel Mcgee",
47+
"familyName": "OMalley",
48+
"givenName": "Darl",
49+
"honorificPrefix": null,
50+
"honorificSuffix": null
51+
},
52+
"phoneNumbers": [
53+
{
54+
"type": "fax",
55+
"primary": false,
56+
"value": "312-320-0500"
57+
},
58+
{
59+
"type": "mobile",
60+
"primary": false,
61+
"value": "312-320-1707"
62+
},
63+
{
64+
"type": "work",
65+
"primary": true,
66+
"value": "312-320-0932"
67+
}
68+
],
69+
"preferredLanguage": "xh",
70+
"roles": [],
71+
"title": "Site engineer",
72+
"externalId": "22fbc523-6032-4c5f-939d-5d4850cf3e52",
73+
"schemas": [
74+
"urn:ietf:params:scim:schemas:core:2.0:User"
75+
]
76+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"id" : "{{1stuserid}}",
3+
"userame": "OMalley",
4+
"active": false,
5+
"addresses": [
6+
{
7+
"country": "Germany",
8+
"formatted": "1923 Jennifer Way Suite 040\nSouth Nancy, MI 55645",
9+
"locality": "East Mercedes",
10+
"postalCode": "99265",
11+
"region": "Montana",
12+
"streetAddress": "4939 Hess Fork",
13+
"type": "work",
14+
"primary": false
15+
},
16+
{
17+
"country": "bahams",
18+
"formatted": "18522 Lisa Unions\nEast Gregory, CT 52311",
19+
"locality": null,
20+
"postalCode": null,
21+
"region": null,
22+
"streetAddress": null,
23+
"type": "other",
24+
"primary": false
25+
}
26+
],
27+
"displayName": "Kimberly Baker",
28+
"emails": [
29+
{
30+
"type": "work",
31+
"primary": true,
32+
"value": "[email protected]"
33+
},
34+
{
35+
"type": "other",
36+
"primary": false,
37+
"value": "[email protected]"
38+
}
39+
],
40+
"meta": {
41+
"created": "2019-09-18T18:15:26.5788954+00:00",
42+
"lastModified": "2019-09-18T18:15:26.5788976+00:00",
43+
"resourceType": "User"
44+
},
45+
"name": {
46+
"formatted": "Daniel Mcgee",
47+
"familyName": "OMalley",
48+
"givenName": "Darl",
49+
"honorificPrefix": null,
50+
"honorificSuffix": null
51+
},
52+
"phoneNumbers": [
53+
{
54+
"type": "fax",
55+
"primary": false,
56+
"value": "312-320-0500"
57+
},
58+
{
59+
"type": "mobile",
60+
"primary": false,
61+
"value": "312-320-1707"
62+
},
63+
{
64+
"type": "work",
65+
"primary": true,
66+
"value": "312-320-0932"
67+
}
68+
],
69+
"preferredLanguage": "xh",
70+
"roles": [],
71+
"title": "Site engineer",
72+
"externalId": "22fbc523-6032-4c5f-939d-5d4850cf3e52",
73+
"schemas": [
74+
"urn:ietf:params:scim:schemas:core:2.0:User"
75+
]
76+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"id" : "{{1stuserid}}",
3+
"userName": "OMalley",
4+
"active": false,
5+
"adreses": [
6+
{
7+
"country": "Germany",
8+
"formatted": "1923 Jennifer Way Suite 040\nSouth Nancy, MI 55645",
9+
"locality": "East Mercedes",
10+
"postalCode": "99265",
11+
"region": "Montana",
12+
"streetAddress": "4939 Hess Fork",
13+
"type": "work",
14+
"primary": false
15+
},
16+
{
17+
"country": "bahams",
18+
"formatted": "18522 Lisa Unions\nEast Gregory, CT 52311",
19+
"locality": null,
20+
"postalCode": null,
21+
"region": null,
22+
"streetAddress": null,
23+
"type": "other",
24+
"primary": false
25+
}
26+
],
27+
"displayName": "Kimberly Baker",
28+
"emails": [
29+
{
30+
"type": "work",
31+
"primary": true,
32+
"value": "[email protected]"
33+
},
34+
{
35+
"type": "other",
36+
"primary": false,
37+
"value": "[email protected]"
38+
}
39+
],
40+
"meta": {
41+
"created": "2019-09-18T18:15:26.5788954+00:00",
42+
"lastModified": "2019-09-18T18:15:26.5788976+00:00",
43+
"resourceType": "User"
44+
},
45+
"name": {
46+
"formatted": "Daniel Mcgee",
47+
"familyName": "OMalley",
48+
"givenName": "Darl",
49+
"honorificPrefix": null,
50+
"honorificSuffix": null
51+
},
52+
"phoneNumbers": [
53+
{
54+
"type": "fax",
55+
"primary": false,
56+
"value": "312-320-0500"
57+
},
58+
{
59+
"type": "mobile",
60+
"primary": false,
61+
"value": "312-320-1707"
62+
},
63+
{
64+
"type": "work",
65+
"primary": true,
66+
"value": "312-320-0932"
67+
}
68+
],
69+
"preferredLanguage": "xh",
70+
"roles": [],
71+
"title": "Site engineer",
72+
"externalId": "22fbc523-6032-4c5f-939d-5d4850cf3e52",
73+
"schemas": [
74+
"urn:ietf:params:scim:schemas:core:2.0:User"
75+
]
76+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"userName": "emp1",
3+
"active": "True",
4+
"addresses": [
5+
{
6+
"country": "Bermuda",
7+
"formatted": "9132 Jennifer Way Suite 040\nSouth Nancy, MI 55645",
8+
"locality": "West Mercedes",
9+
"postalCode": "99265",
10+
"region": "Montana",
11+
"streetAddress": "4939 Hess Fork",
12+
"type": "work",
13+
"primary": false
14+
},
15+
{
16+
"country": null,
17+
"formatted": "18522 Lisa Unions\nEast Gregory, CT 52311",
18+
"locality": null,
19+
"postalCode": null,
20+
"region": null,
21+
"streetAddress": null,
22+
"type": "other",
23+
"primary": false
24+
}
25+
],
26+
"displayName": "Kimberly Baker",
27+
"emails": [
28+
{
29+
"type": "work",
30+
"primary": true,
31+
"value": "[email protected]"
32+
},
33+
{
34+
"type": "work",
35+
"primary": false,
36+
"value": "[email protected]"
37+
}
38+
],
39+
"meta": {
40+
"created": "2019-09-18T18:15:26.5788954+00:00",
41+
"lastModified": "2019-09-18T18:15:26.5788976+00:00",
42+
"resourceType": "User"
43+
},
44+
"name": {
45+
"formatted": "Daniel Mcgee",
46+
"familyName": "Employee",
47+
"givenName": "Darl",
48+
"honorificPrefix": null,
49+
"honorificSuffix": null
50+
},
51+
"phoneNumbers": [
52+
{
53+
"type": "fax",
54+
"primary": false,
55+
"value": "312-320-0500"
56+
},
57+
{
58+
"type": "mobile",
59+
"primary": false,
60+
"value": "312-320-1707"
61+
},
62+
{
63+
"type": "work",
64+
"primary": true,
65+
"value": "312-320-0932"
66+
}
67+
],
68+
"preferredLanguage": "xh",
69+
"roles": [],
70+
"title": "Site engineer",
71+
"externalId": "22fbc523-6032-4c5f-939d-5d4850cf3e52",
72+
"schemas": [
73+
"urn:ietf:params:scim:schemas:core:2.0:User"
74+
]
75+
}

0 commit comments

Comments
 (0)