Skip to content

Commit b4853fc

Browse files
committed
rephrases
Signed-off-by: nabim777 <[email protected]>
1 parent 1a3f682 commit b4853fc

File tree

1 file changed

+51
-50
lines changed

1 file changed

+51
-50
lines changed

docs/testing/smoke_testing.md

Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The need for this smoke testing (manual) is that we do not have e2e test setup t
99

1010
**Table of Content:**
1111

12-
- [Section A: OAuth 2.0](#section-a-oauth-20-two-way-authorization-code-flow)
13-
- [Section B: SSO through OpenID Connect](#section-b-single-sign-on-sso-through-openid-connect)
12+
- [Section A: Two-Way OAuth 2.0 Authorization Code Flow](#section-a-two-way-oauth-20-authorization-code-flow)
13+
- [Section B: Single-Sign-On through OpenID Connect Identity Provider](#section-b-single-sign-on-through-openid-connect-identity-provider)
1414
- [Section B.1: Nextcloud Hub](#section-B1-nextcloud-hub)
1515
- [Section B.2: External Provider](#section-B2-External-Provider)
1616

@@ -22,33 +22,34 @@ The need for this smoke testing (manual) is that we do not have e2e test setup t
2222
- [5. Check notification in `OpenProject` widget in Nextcloud](#5-check-notification-in-openproject-widget-in-nextcloud)
2323
- [6. Check New folder with automatically managed permissions in OpenProject](#6-check-new-folder-with-automatically-managed-permissions-in-openproject)
2424

25-
## Section A: OAuth 2.0 (Two-Way Authorization Code Flow)
25+
## Section A: Two-Way OAuth 2.0 Authorization Code Flow
2626

27-
### A1. Oauth configuration (without project folder setup/Automatically managed folders)
27+
### A1. Oauth configuration
2828
- [ ] In `OpenProject`, navigate to `Administration > Files`.
2929
- [ ] Create a file storage type `Nextcloud` and name it as `Nextcloud` in `OpenProject`.
3030
- [ ] In admin setting of `Nextcloud`, navigate to `Administration Settings > OpenProject`.
3131
- [ ] Copy `OpenProject` Oauth Credential (client_id and client_secret) and save them in `Nextcloud`.
3232
- [ ] Copy `Nextcloud` Oauth Credential (client_id and client_secret) and save them in `OpenProject`.
33+
- [ ] Disable project folder (automatically managed folder).
3334

34-
### A2. Connect Nextcloud with OpenProject (Without project folder setup)
35+
### A2. Connect Nextcloud with OpenProject
3536

36-
- [ ] Complete Smoke [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
37+
- [ ] Complete step [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
3738
- [ ] In `Nextcloud`, navigate to `Personal Settings > Openproject` and click on `Connect to OpenProject` button.
3839
- [ ] `Nextcloud` admin should be connected as an `OpenProject` admin.
3940
- [ ] Also, create a user in both `Nextcloud` as well as `OpenProject`.
4041
- [ ] From the personal section of the created user in `Nextcloud`, connect to `OpenProject`.
4142
- [ ] `Nextcloud` user should be connected as an `OpenProject` user.
4243

4344
### A3. Add File storage (Nextcloud) to an OpenProject project
44-
- [ ] Complete Smoke [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
45+
- [ ] Complete step [Test No A1](#a1-oauth-configuration).
4546
- [ ] Select an `OpenProject` Project (for example, `Demo Project`) in `OpenProject`.
4647
- [ ] Navigate to `Project settings > Files` of `Demo Project`.
4748
- [ ] Add a file storage name `Nextcloud`( choose `No specific Folder` option ) for `Demo Project`.
4849

4950
### A4. Connect OpenProject with Nextcloud
50-
- [ ] Complete Smoke [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
51-
- [ ] Complete Smoke [Test No A3](#A3-Add-File-storage-Nextcloud-to-an-OpenProject-project).
51+
- [ ] Complete step [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
52+
- [ ] Complete step [Test No A3](#A3-Add-File-storage-Nextcloud-to-an-OpenProject-project).
5253
- [ ] Navigate to `Demo Project > Work Packages` and double click any one of the work packages available.
5354
- [ ] Navigate to `Files` tab, and login to `Nextcloud`.
5455
- [ ] `OpenProject` admin is connected to `Nextcloud` as a `Nextcloud` admin.
@@ -58,15 +59,15 @@ The need for this smoke testing (manual) is that we do not have e2e test setup t
5859
- [ ] `OpenProject` user should be connected as a `Nextcloud` user.
5960

6061
### A5. Setup and check project folder in Nextcloud (with project folder setup)
61-
- [ ] Complete Smoke [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
62+
- [ ] Complete step [Test No A1](#a1-oauth-configuration-without-project-folder-setupautomatically-managed-folders).
6263
- [ ] Enable `groupfolders` application in `Nextcloud`.
6364
- [ ] Enable `Automatically managed folders` switch in admin setting and set project folder.
6465
- [ ] Application password should be generated.
6566
- [ ] `OpenProject` user and group are created such that user `OpenProject` is admin of the group.
6667
- [ ] Try deleting `OpenProject` user and group, those should not be deleted.
6768

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

7172
### A7. Check the integration script for oauth set up
7273

@@ -84,12 +85,12 @@ NC_ADMIN_PASSWORD=admin \
8485
OPENPROJECT_STORAGE_NAME=Nextcloud \
8586
bash integration_setup.sh
8687
```
87-
- [ ] Upon success, try Smoke [Test No A2](#A2-Connect-Nextcloud-with-OpenProject-Without-project-folder-setup) (Skip first check).
88-
- [ ] Upon success, try Smoke [Test No A4](#a4-connect-openproject-with-nextcloud) (Skip first check).
88+
- [ ] Upon success, try step [Test No A2](#A2-Connect-Nextcloud-with-OpenProject-Without-project-folder-setup) (Skip first check).
89+
- [ ] Upon success, try step [Test No A4](#a4-connect-openproject-with-nextcloud) (Skip first check).
8990
- [ ] Also, to set up the integration configuration with project folder setup, just set environment `SETUP_PROJECT_FOLDER=true` and run the script.
9091
- [ ] Re-run the script again after it is already setup (Should not give any error).
9192

92-
## Section B: Single Sign-On (SSO) through OpenID Connect
93+
## Section B: Single-Sign-On through OpenID Connect Identity Provider
9394

9495
## Section B.1: Nextcloud Hub
9596

@@ -119,34 +120,34 @@ bash integration_setup.sh
119120
- [ ] Under `OAuth configuration`, select `Use access token obtained during user log in`
120121

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

129130
### B4. Use SSO button of nextcloud in OpenProject for login
130-
- [ ] Complete Smoke [Test No B1](#b1-Configure-Nextcloud-IdP-Setup)
131-
- [ ] Complete Smoke [Test No B2](#b2-Configure-OpenProject-Client).
132-
- [ ] Complete Smoke [Test No B3](#b3-Connect-Nextcloud-with-OpenProject-Without-project-folder-setup).
131+
- [ ] 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).
133134
- [ ] In `nextcloud`, login as nextcloud-created user.
134135
- [ ] In `openproject`, use the SSO button on the login page to sign in as the nextcloud-created user.
135136
- [ ] Login should be successful in `openproject`.
136137
- [ ] Login should be successful in `openproject` with username having created-nextcloud user's display name.
137138
- [ ] The OpenProject username must match the Nextcloud-created user’s name.
138139

139140
### B5. Verify Connection of Nextcloud user with OpenProject
140-
- [ ] Complete Smoke [Test No B1](#b1-Configure-Nextcloud-IdP-Setup).
141-
- [ ] Complete Smoke [Test No B2](#b2-Configure-OpenProject-Client).
142-
- [ ] Complete Smoke [Test No B3](#b3-Connect-Nextcloud-with-OpenProject-Without-project-folder-setup).
143-
- [ ] Complete Smoke [Test No B4](#b4-Use-SSO-button-of-nextcloud-in-OpenProject-for-login).
141+
- [ ] 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).
144145
- [ ] In nextcloud, login as nextcloud-created user.
145146
- [ ] Navigate to `settings > Openproject`
146147
- [ ] Should show user is connected as an OpenProject user.
147148

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

151152
## Section B.2: External Provider
152153
> Here keycloak is an External Provider
@@ -186,38 +187,38 @@ bash integration_setup.sh
186187
- [ ] Disable `token exchange`
187188

188189
### B11. Verify Connection in nextcloud
189-
- [ ] Complete Smoke [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
190-
- [ ] Complete Smoke [Test No B8](#b8-Configure-Nextcloud-Client).
191-
- [ ] Complete Smoke [Test No B9](#b9-Configure-OpenProject-Client).
192-
- [ ] Complete Smoke [Test No B10](#b10-Configure-integration_openproject-with-keycloak-token-exchange-disable).
190+
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
191+
- [ ] 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).
193194
- [ ] In nextcloud, login as keycloak-created user.
194195
- [ ] Navigate to `settings > Openproject`
195196
- [ ] Should show user is connected as an OpenProject user.
196197

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

200201
### B13. Configure integration_openproject with keycloak (token exchange enable)
201-
- [ ] Complete Smoke [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
202-
- [ ] Complete Smoke [Test No B8](#b8-Configure-Nextcloud-Client).
203-
- [ ] Complete Smoke [Test No B9](#b9-Configure-OpenProject-Client).
202+
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
203+
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
204+
- [ ] Complete step [Test No B9](#b9-Configure-OpenProject-Client).
204205
- [ ] Go to `Administration > OpenProject` in nextcloud
205206
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`
206207
- [ ] In `Authentication settings`, select `provider Type` as `Keycloak`
207208
- [ ] Enable `token exchange`
208209
- [ ] Set `OpenProject client ID *` as `Openproject`
209210

210211
### B14. Verify Connection in nextcloud
211-
- [ ] Complete Smoke [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
212-
- [ ] Complete Smoke [Test No B8](#b8-Configure-Nextcloud-Client).
213-
- [ ] Complete Smoke [Test No B9](#b9-Configure-OpenProject-Client).
214-
- [ ] Complete Smoke [Test No B11](#b11-Verify-Connection-in-nextcloud).
212+
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
213+
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
214+
- [ ] Complete step [Test No B9](#b9-Configure-OpenProject-Client).
215+
- [ ] Complete step [Test No B11](#b11-Verify-Connection-in-nextcloud).
215216
- [ ] In nextcloud, login as keycloak-created user.
216217
- [ ] Navigate to `settings > Openproject`
217218
- [ ] Should show user is connected as an OpenProject user.
218219

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

222223
### B16. Check the integration script for sso setup (idp as nextcloud)
223224

@@ -233,8 +234,8 @@ bash integration_setup.sh
233234
> To add the Nextcloud storage, delete the 'nextcloud' file storage from OpenProject, reset the Nextcloud config, and run the script again.
234235
235236
### Check to set up sso where nextcloud as IdP
236-
- [ ] Complete Smoke [Test No B1](#b1-Configure-Nextcloud-IdP-Setup) (only the first , second and thrid steps are required).
237-
- [ ] Complete Smoke [Test No B2](#b2-Configure-OpenProject-Client) (only the first and second steps are required).
237+
- [ ] 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).
238239
- [ ] Run the `integration_oidc_setup.sh` script to set up integration without project folder with the following command:
239240

240241
```bash
@@ -252,8 +253,8 @@ OP_USE_LOGIN_TOKEN=true \
252253
bash integration_oidc_setup.sh
253254
```
254255

255-
- [ ] Upon success, try Smoke [Test No B4](#b4-Use-SSO-button-of-nextcloud-in-OpenProject-for-login).
256-
- [ ] Upon success, try Smoke [Test No B5](#b5-Verify-Connection-of-Nextcloud-user-with-OpenProject).
256+
- [ ] Upon success, try step [Test No B4](#b4-Use-SSO-button-of-nextcloud-in-OpenProject-for-login).
257+
- [ ] Upon success, try step [Test No B5](#b5-Verify-Connection-of-Nextcloud-user-with-OpenProject).
257258
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
258259
- [ ] In nextcloud, delete the `OpenProject` user, group and team folder from the nextcloud (if they exist).
259260
- [ ] Then, reset the Nextcloud config.
@@ -263,9 +264,9 @@ bash integration_oidc_setup.sh
263264
### Check to set up sso where keycloak as IdP (token exchange disable)
264265
> Before Running the below script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the Nextcloud config.
265266
266-
- [ ] Complete Smoke [Test No B7](#B7-Configure-Keycloak-IdP-Setup).
267-
- [ ] Complete Smoke [Test No B8](#B8-Configure-Nextcloud-Client).
268-
- [ ] Complete Smoke [Test No B9](#B9-Configure-OpenProject-Client).
267+
- [ ] Complete step [Test No B7](#B7-Configure-Keycloak-IdP-Setup).
268+
- [ ] Complete step [Test No B8](#B8-Configure-Nextcloud-Client).
269+
- [ ] Complete step [Test No B9](#B9-Configure-OpenProject-Client).
269270
- [ ] Run the `integration_oidc_setup.sh` script to set up integration without project folder with the following command:
270271

271272
```bash
@@ -287,7 +288,7 @@ bash integration_oidc_setup.sh
287288

288289
```
289290

290-
- [ ] Upon success, try Smoke [Test No B11](#B11-Verify-Connection-in-nextcloud).
291+
- [ ] Upon success, try step [Test No B11](#B11-Verify-Connection-in-nextcloud).
291292
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
292293
- [ ] In nextcloud, delete the `OpenProject` user, group and team folder from the nextcloud (if they exist).
293294
- [ ] Then, reset the Nextcloud config.
@@ -298,9 +299,9 @@ bash integration_oidc_setup.sh
298299
### Check to set up sso where keycloak as IdP (token exchange enable)
299300
> Before Running the below script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the Nextcloud config.
300301
301-
- [ ] Complete Smoke [Test No B7](#B7-Configure-Keycloak-IdP-Setup).
302-
- [ ] Complete Smoke [Test No B8](#B8-Configure-Nextcloud-Client).
303-
- [ ] Complete Smoke [Test No B9](#B9-Configure-OpenProject-Client).
302+
- [ ] Complete step [Test No B7](#B7-Configure-Keycloak-IdP-Setup).
303+
- [ ] Complete step [Test No B8](#B8-Configure-Nextcloud-Client).
304+
- [ ] Complete step [Test No B9](#B9-Configure-OpenProject-Client).
304305
- [ ] Run the `integration_oidc_setup.sh` script to set up integration without project folder with the following command:
305306

306307
```bash
@@ -321,7 +322,7 @@ OP_STORAGE_AUDIENCE=nextcloud \
321322
bash integration_oidc_setup.sh
322323
```
323324

324-
- [ ] Upon success, try Smoke [Test No B14](#B14-Verify-Connection-in-nextcloud).
325+
- [ ] Upon success, try step [Test No B14](#B14-Verify-Connection-in-nextcloud).
325326
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
326327
- [ ] In nextcloud, delete the `OpenProject` user, group and team folder from the nextcloud (if they exist).
327328
- [ ] Then, reset the Nextcloud config.

0 commit comments

Comments
 (0)