Skip to content

Commit da0c659

Browse files
committed
review addresses
Signed-off-by: nabim777 <[email protected]>
1 parent b4853fc commit da0c659

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

docs/testing/smoke_testing.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ The need for this smoke testing (manual) is that we do not have e2e test setup t
6666
- [ ] `OpenProject` user and group are created such that user `OpenProject` is admin of the group.
6767
- [ ] Try deleting `OpenProject` user and group, those should not be deleted.
6868

69-
### A6. Complete the 6 common step tests.
70-
- [ ] Complete steps [Test No [1-6]](#common-smoke-test-steps-applies-to-both-authentication-methods).
69+
### A6. Complete the common smoke tests
70+
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
7171

7272
### A7. Check the integration script for oauth set up
7373

@@ -98,17 +98,18 @@ bash integration_setup.sh
9898
- [ ] In Nextcloud, install and enable `oidc` and `user_oidc` apps.
9999
- [ ] Create a new user( with username, display name, password, and email)
100100
- [ ] Run following command:
101-
- php occ config:system:set user_oidc --type boolean --value="true" oidc_provider_bearer_validation
101+
- `php occ config:system:set user_oidc --type boolean --value="true" oidc_provider_bearer_validation`
102+
- [ ] Go to `Administration > OpenID Connect` and enable `store login tokens` option.
102103
- [ ] Go to `Administation > Security`
103-
- [ ] Under "OpenID Connect clients" section:
104+
- [ ] Add OIDC client ("OpenID Connect clients" section):
104105
- Add a client name (not an identifier)
105106
- Add a redirect URL (<openproject_host>/auth/oidc-<idp-displayname-from-OP>/callback)
106107
- After adding, choose `Access Token Type` as `JWT Access Token (RFC9068)`.
107108
- Set `Refresh Token Expire Time` to `Never`
108109
- Save
109110
- Copy the Client ID and Client secret (you will need these later in OpenProject and integration_openproject)
110111

111-
### B2. Configure OpenProject (Client)
112+
### B2. Add Nextcloud IDP in OpenProject
112113
- [ ] In OpenProject, go to `Administration > Authentication > OpenID providers`
113114
- [ ] Add a new custom OpenID provider:
114115
- Display name: `nextcloud` (use this name as redirect URL in Nextcloud: <idp-displayname-from-OP>)
@@ -119,18 +120,18 @@ bash integration_setup.sh
119120
- [ ] Select the file storage type called Nextcloud (created earlier in previous test)
120121
- [ ] Under `OAuth configuration`, select `Use access token obtained during user log in`
121122

122-
### B3. Connect Nextcloud with OpenProject (Without project folder setup)
123+
### B3. Setup integration (Without project folder setup)
123124
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-Setup).
124-
- [ ] Complete step [Test No B2](#b2-Configure-OpenProject-Client).
125+
- [ ] Complete step [Test No B2](#b2-Add-Nextcloud-Idp-in-OpenProject).
125126
- [ ] In nextcloud, go to `Administration > OpenProject`.
126127
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`.
127128
- [ ] In `Authentication settings`, select `provider Type` as `Nextcloud Hub`.
128129
- [ ] Set Openproject `client ID` by Client ID copied earlier in **Test No B1**.
129130

130-
### B4. Use SSO button of nextcloud in OpenProject for login
131+
### B4. Login to OpenProject using Nextcloud user
131132
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-Setup)
132-
- [ ] Complete step [Test No B2](#b2-Configure-OpenProject-Client).
133-
- [ ] Complete step [Test No B3](#b3-Connect-Nextcloud-with-OpenProject-Without-project-folder-setup).
133+
- [ ] Complete step [Test No B2](#b2-Add-Nextcloud-Idp-in-OpenProject).
134+
- [ ] Complete step [Test No B3](#b3-Setup-integration-Without-project-folder-setup).
134135
- [ ] In `nextcloud`, login as nextcloud-created user.
135136
- [ ] In `openproject`, use the SSO button on the login page to sign in as the nextcloud-created user.
136137
- [ ] Login should be successful in `openproject`.
@@ -139,15 +140,15 @@ bash integration_setup.sh
139140

140141
### B5. Verify Connection of Nextcloud user with OpenProject
141142
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-Setup).
142-
- [ ] Complete step [Test No B2](#b2-Configure-OpenProject-Client).
143-
- [ ] Complete step [Test No B3](#b3-Connect-Nextcloud-with-OpenProject-Without-project-folder-setup).
144-
- [ ] Complete step [Test No B4](#b4-Use-SSO-button-of-nextcloud-in-OpenProject-for-login).
143+
- [ ] Complete step [Test No B2](#b2-Add-Nextcloud-Idp-in-OpenProject).
144+
- [ ] Complete step [Test No B3](#b3-Setup-integration-Without-project-folder-setup).
145+
- [ ] Complete step [Test No B4](#b4-Login-to-OpenProject-using-Nextcloud-user).
145146
- [ ] In nextcloud, login as nextcloud-created user.
146-
- [ ] Navigate to `settings > Openproject`
147+
- [ ] Navigate to `Settings > Openproject`
147148
- [ ] Should show user is connected as an OpenProject user.
148149

149-
### B6. Complete the smoke tests
150-
- [ ] Complete steps [Test No [1-6]](#common-smoke-test-steps-applies-to-both-authentication-methods).
150+
### B6. Complete the common smoke tests
151+
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
151152

152153
## Section B.2: External Provider
153154
> Here keycloak is an External Provider
@@ -163,24 +164,24 @@ bash integration_setup.sh
163164
- Client ID: nextcloud client id from keycloak
164165
- Client Secret: nextcloud client secret from keycloak
165166
- Discovery endpoint: `<keycloak-hosts>/realms/<realm-name>/.well-known/openid-configuration`
166-
- Scope: openid email profile api_v3
167+
- Scope: `openid email profile api_v3`
167168
- submit
168-
- [ ] Login as keycloak-created user in `Nextcloud` (Login to initialize the Keycloak user in Nextcloud).
169+
- [ ] Login as keycloak-created user in `Nextcloud`.
169170
- [ ] Login Should be successful
170171
- [ ] Logout
171172

172-
### B9. Configure OpenProject (Client)
173+
### B9. Add Keycloak IDP in OpenProject
173174
- [ ] In **OpenProject**, go to `Administration > Authentication > OpenID providers`
174175
- [ ] Add a new custom OpenID provider:
175176
- Display name: `keycloak`
176177
- Discovery URL: `<keycloak-host>/realms/<realm-name>/.well-known/openid-configuration`
177178
- Client ID: Client ID of openproject from keycloak
178179
- Client secret: Client secret of openproject from keycloak
179-
- [ ] Login as keycloak-created user in `Openproject` (Login to initialize the Keycloak user in openproject).
180+
- [ ] Login as keycloak-created user in `Openproject`.
180181
- [ ] Log out, then Login as admin in `Openproject`.
181182
- [ ] As an `OpenProject` admin, add keycloak-created user as a member in one of the project.
182183

183-
### B10. Configure integration_openproject with keycloak (token exchange disable)
184+
### B10. Setup integration (token exchange disabled)
184185
- [ ] In nextcloud, go to `Administration > OpenProject`.
185186
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`.
186187
- [ ] In `Authentication settings`, select `provider Type` as `Keycloak`.
@@ -189,19 +190,19 @@ bash integration_setup.sh
189190
### B11. Verify Connection in nextcloud
190191
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
191192
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
192-
- [ ] Complete step [Test No B9](#b9-Configure-OpenProject-Client).
193-
- [ ] Complete step [Test No B10](#b10-Configure-integration_openproject-with-keycloak-token-exchange-disable).
193+
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
194+
- [ ] Complete step [Test No B10](#b10-Setup-integration-token-exchange-disabled).
194195
- [ ] In nextcloud, login as keycloak-created user.
195-
- [ ] Navigate to `settings > Openproject`
196+
- [ ] Navigate to `Settings > Openproject`
196197
- [ ] Should show user is connected as an OpenProject user.
197198

198-
### B12. Complete the 6 common tests
199-
- [ ] Complete steps [Test No [1-6]](#common-smoke-test-steps-applies-to-both-authentication-methods).
199+
### B12. Complete the common smoke tests
200+
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
200201

201-
### B13. Configure integration_openproject with keycloak (token exchange enable)
202+
### B13.Setup integration (token exchange enabled)
202203
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
203204
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
204-
- [ ] Complete step [Test No B9](#b9-Configure-OpenProject-Client).
205+
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
205206
- [ ] Go to `Administration > OpenProject` in nextcloud
206207
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`
207208
- [ ] In `Authentication settings`, select `provider Type` as `Keycloak`
@@ -211,16 +212,16 @@ bash integration_setup.sh
211212
### B14. Verify Connection in nextcloud
212213
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
213214
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
214-
- [ ] Complete step [Test No B9](#b9-Configure-OpenProject-Client).
215+
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
215216
- [ ] Complete step [Test No B11](#b11-Verify-Connection-in-nextcloud).
216217
- [ ] In nextcloud, login as keycloak-created user.
217218
- [ ] Navigate to `settings > Openproject`
218219
- [ ] Should show user is connected as an OpenProject user.
219220

220-
### B15. Complete the 6 common tests
221-
- [ ] Complete steps [Test No [1-6]](#common-smoke-test-steps-applies-to-both-authentication-methods).
221+
### B15. Complete the common smoke tests
222+
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
222223

223-
### B16. Check the integration script for sso setup (idp as nextcloud)
224+
### B16. Check the integration script for sso setup (Nextcloud Hub)
224225

225226
> Before Running the script make sure that your `Nextcloud` and `OpenProject` instance is up and running
226227
> If you're using Nextcloud as the Identity Provider (OIDC), make sure the following apps are installed and enabled in Nextcloud:
@@ -233,9 +234,8 @@ bash integration_setup.sh
233234
>
234235
> To add the Nextcloud storage, delete the 'nextcloud' file storage from OpenProject, reset the Nextcloud config, and run the script again.
235236
236-
### Check to set up sso where nextcloud as IdP
237237
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-Setup) (only the first , second and thrid steps are required).
238-
- [ ] Complete step [Test No B2](#b2-Configure-OpenProject-Client) (only the first and second steps are required).
238+
- [ ] Complete step [Test No B2](#b2-Add-Nextcloud-Idp-in-OpenProject) (only the first and second steps are required).
239239
- [ ] Run the `integration_oidc_setup.sh` script to set up integration without project folder with the following command:
240240

241241
```bash
@@ -253,20 +253,20 @@ OP_USE_LOGIN_TOKEN=true \
253253
bash integration_oidc_setup.sh
254254
```
255255

256-
- [ ] Upon success, try step [Test No B4](#b4-Use-SSO-button-of-nextcloud-in-OpenProject-for-login).
256+
- [ ] Upon success, try step [Test No B4](#b4-Login-to-OpenProject-using-Nextcloud-user).
257257
- [ ] Upon success, try step [Test No B5](#b5-Verify-Connection-of-Nextcloud-user-with-OpenProject).
258258
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
259259
- [ ] In nextcloud, delete the `OpenProject` user, group and team folder from the nextcloud (if they exist).
260260
- [ ] Then, reset the Nextcloud config.
261261
- [ ] set environment `SETUP_PROJECT_FOLDER=true` and run the script.
262262
- [ ] Run the script again after it is already setup (Should not give any error).
263263

264-
### Check to set up sso where keycloak as IdP (token exchange disable)
265-
> Before Running the below script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the Nextcloud config.
264+
### Check the integration script for sso setup (External provider without token exchange)
265+
> Before running the script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the integration settings in Nextcloud.
266266
267267
- [ ] Complete step [Test No B7](#B7-Configure-Keycloak-IdP-Setup).
268268
- [ ] Complete step [Test No B8](#B8-Configure-Nextcloud-Client).
269-
- [ ] Complete step [Test No B9](#B9-Configure-OpenProject-Client).
269+
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
270270
- [ ] Run the `integration_oidc_setup.sh` script to set up integration without project folder with the following command:
271271

272272
```bash
@@ -296,12 +296,12 @@ bash integration_oidc_setup.sh
296296
- [ ] Run the script again after it is already setup (Should not give any error).
297297

298298

299-
### Check to set up sso where keycloak as IdP (token exchange enable)
299+
### Check the integration script for sso setup (External provider with token exchange)
300300
> Before Running the below script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the Nextcloud config.
301301
302302
- [ ] Complete step [Test No B7](#B7-Configure-Keycloak-IdP-Setup).
303303
- [ ] Complete step [Test No B8](#B8-Configure-Nextcloud-Client).
304-
- [ ] Complete step [Test No B9](#B9-Configure-OpenProject-Client).
304+
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
305305
- [ ] Run the `integration_oidc_setup.sh` script to set up integration without project folder with the following command:
306306

307307
```bash

0 commit comments

Comments
 (0)