Skip to content

Commit 624a3bc

Browse files
committed
chore: multiple users tests
1 parent 3ba3e3f commit 624a3bc

File tree

3 files changed

+324
-105
lines changed

3 files changed

+324
-105
lines changed

integration-tests.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ To debug CI failures or test against a deployed worker from your local machine:
5959
This script will generate the `.deployment-env` file in your root directory.
6060

6161
2. **Configure Credentials**:
62-
Create a `.env` file (or set environment variables) with the required IMS credentials for the test account:
62+
Create a `.env` file (or set environment variables) with the required IMS credentials for the test accounts:
6363
```env
6464
IT_IMS_STAGE_ENDPOINT=https://ims-na1.adobelogin.com
65-
IT_IMS_STAGE_CLIENT_ID=<client-id>
66-
IT_IMS_STAGE_CLIENT_SECRET=<client-secret>
65+
IT_IMS_STAGE_CLIENT_ID_SUPER_USER=<client-id-super-user>
66+
IT_IMS_STAGE_CLIENT_SECRET_SUPER_USER=<client-secret-super-user>
67+
IT_IMS_STAGE_CLIENT_ID_LIMITED_USER=<client-id-limited-user>
68+
IT_IMS_STAGE_CLIENT_SECRET_LIMITED_USER=<client-secret-limited-user>
6769
IT_IMS_STAGE_SCOPES=openid,AdobeID,aem.frontend.all,read_organizations,additional_info.projectedProductContext
6870
```
6971

@@ -87,12 +89,12 @@ If the configuration is lost or needs to be reset, the expected permission model
8789
"data": [
8890
{
8991
"path": "CONFIG",
90-
"groups": "<test-user-email>",
92+
"groups": "<super-user-email>",
9193
"actions": "write"
9294
},
9395
{
9496
"path": "/+**",
95-
"groups": "<test-user-email>",
97+
"groups": "<super-user-email>",
9698
"actions": "write"
9799
}
98100
],
@@ -117,7 +119,7 @@ The integration tests use dedicated service accounts defined in the [Adobe Stage
117119

118120
- **Authenticated User Project**:
119121
- **Purpose**: Simulates a user who is logged in but may not have specific permissions (used for negative testing or basic access).
120-
- **Credentials**: Defined in CI secrets as `IT_IMS_STAGE_CLIENT_ID` / `IT_IMS_STAGE_CLIENT_SECRET`.
122+
- **Credentials**: Defined in CI secrets as `IT_IMS_STAGE_CLIENT_ID_SUPER_USER` / `IT_IMS_STAGE_CLIENT_SECRET_SUPER_USER`.
121123
- **API**: Uses `Edge Delivery Service` to create OAuth Server-to-Server credentials.
122124

123125
- **Authorized User Project**:

0 commit comments

Comments
 (0)