You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.strictEqual(response.status,200,'Pagination request should return 200 OK');
111
-
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
112
-
assert.ok(response.data.Resources.length<=count,'Number of resources should be less than or equal to count');
113
-
assert.strictEqual(response.data.startIndex,startIndex,'startIndex should match the requested startIndex');
114
-
});
105
+
if(configuration?.verifyPagination!==false){
106
+
test('Paginates groups using startIndex',async(t)=>{
assert.strictEqual(response.status,200,'Pagination request should return 200 OK');
112
+
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
113
+
assert.ok(response.data.Resources.length<=count,'Number of resources should be less than or equal to count');
114
+
assert.strictEqual(response.data.startIndex,startIndex,'startIndex should match the requested startIndex');
assert.strictEqual(response.status,200,'Sort request should return 200 OK');
120
-
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
121
-
constgroups=response.data.Resources;
122
-
for(leti=1;i<groups.length;i++){
123
-
assert.ok(groups[i-1].displayName<=groups[i].displayName,'Groups should be sorted by displayName');
assert.strictEqual(response.status,200,'Sort request should return 200 OK');
123
+
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
124
+
constgroups=response.data.Resources;
125
+
for(leti=1;i<groups.length;i++){
126
+
assert.ok(groups[i-1].displayName<=groups[i].displayName,'Groups should be sorted by displayName');
assert.strictEqual(response.status,200,'Pagination request should return 200 OK');
106
-
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
107
-
assert.ok(response.data.Resources.length<=count,'Number of resources should be less than or equal to count');
108
-
assert.strictEqual(response.data.startIndex,startIndex,'startIndex should match the requested startIndex');
109
-
});
100
+
if(configuration?.verifyPagination!==false){
101
+
test('Paginates users using startIndex',async(t)=>{
assert.strictEqual(response.status,200,'Pagination request should return 200 OK');
107
+
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
108
+
assert.ok(response.data.Resources.length<=count,'Number of resources should be less than or equal to count');
109
+
assert.strictEqual(response.data.startIndex,startIndex,'startIndex should match the requested startIndex');
assert.strictEqual(response.status,200,'Sort request should return 200 OK');
115
-
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
116
-
constusers=response.data.Resources;
117
-
for(leti=1;i<users.length;i++){
118
-
assert.ok(users[i-1].userName<=users[i].userName,'Users should be sorted by userName');
assert.strictEqual(response.status,200,'Sort request should return 200 OK');
118
+
assert.strictEqual(response.data.schemas[0],'urn:ietf:params:scim:api:messages:2.0:ListResponse','Response should use the correct SCIM list response schema');
119
+
constusers=response.data.Resources;
120
+
for(leti=1;i<users.length;i++){
121
+
assert.ok(users[i-1].userName<=users[i].userName,'Users should be sorted by userName');
122
+
}
123
+
});
124
+
}
121
125
122
126
test('Retrieves only userName attributes',async(t)=>{
0 commit comments