Skip to content

Commit a4d4a08

Browse files
committed
numbering standard
Signed-off-by: nabim777 <[email protected]>
1 parent 60272ac commit a4d4a08

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

docs/testing/smoke_testing.md

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

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

1717
- [Common Smoke Test Steps](#common-smoke-test-steps)
1818
- [1. Link/Unlink a work package for a file/folder in Nextcloud](#1-linkunlink-a-work-package-for-a-filefolder-in-nextcloud)
@@ -92,9 +92,9 @@ bash integration_setup.sh
9292

9393
## Section B: Single-Sign-On through OpenID Connect Identity Provider
9494

95-
## Section 1: Nextcloud Hub
95+
### Section B.1: Nextcloud Hub
9696

97-
### B1. Configure Nextcloud (IdP Setup)
97+
#### B.1.1. Configure Nextcloud (IdP Setup)
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:
@@ -109,7 +109,7 @@ bash integration_setup.sh
109109
- Save
110110
- Copy the Client ID and Client secret (you will need these later in OpenProject and integration_openproject)
111111

112-
### B2. Add Nextcloud IDP in OpenProject
112+
#### B.1.2. Add Nextcloud IDP in OpenProject
113113
- [ ] In OpenProject, go to `Administration > Authentication > OpenID providers`
114114
- [ ] Add a new custom OpenID provider:
115115
- Display name: `nextcloud` (use this name as redirect URL in Nextcloud: <idp-displayname-from-OP>)
@@ -120,43 +120,43 @@ bash integration_setup.sh
120120
- [ ] Select the file storage type called Nextcloud (created earlier in previous test)
121121
- [ ] Under `OAuth configuration`, select `Use access token obtained during user log in`
122122

123-
### B3. Setup integration (Without project folder setup)
124-
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-Setup).
125-
- [ ] Complete step [Test No B2](#b2-Add-Nextcloud-Idp-in-OpenProject).
123+
#### B.1.3. Setup integration (Without project folder setup)
124+
- [ ] Complete step [Test No B.1.1](#B11-Configure-Nextcloud-IdP-Setup).
125+
- [ ] Complete step [Test No B.1.2](#B12-Add-Nextcloud-Idp-in-OpenProject).
126126
- [ ] In nextcloud, go to `Administration > OpenProject`.
127127
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`.
128128
- [ ] In `Authentication settings`, select `provider Type` as `Nextcloud Hub`.
129129
- [ ] Set Openproject `client ID` by Client ID copied earlier in **Test No B1**.
130130

131-
### B4. Login to OpenProject using Nextcloud user
132-
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-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).
131+
#### B.1.4. Login to OpenProject using Nextcloud user
132+
- [ ] Complete step [Test No B.1.1](#B11-Configure-Nextcloud-IdP-Setup)
133+
- [ ] Complete step [Test No B.1.2](#B12-Add-Nextcloud-Idp-in-OpenProject).
134+
- [ ] Complete step [Test No B.1.3](#b13-Setup-integration-Without-project-folder-setup).
135135
- [ ] In `nextcloud`, login as nextcloud-created user.
136136
- [ ] In `openproject`, use the SSO button on the login page to sign in as the nextcloud-created user.
137137
- [ ] Login should be successful in `openproject`.
138138
- [ ] Login should be successful in `openproject` with username having created-nextcloud user's display name.
139139
- [ ] The OpenProject username must match the Nextcloud-created user’s name.
140140

141-
### B5. Verify Connection of Nextcloud user with OpenProject
142-
- [ ] Complete step [Test No B1](#b1-Configure-Nextcloud-IdP-Setup).
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).
141+
#### B.1.5. Verify Connection of Nextcloud user with OpenProject
142+
- [ ] Complete step [Test No B.1.1](#B11-Configure-Nextcloud-IdP-Setup).
143+
- [ ] Complete step [Test No B.1.2](#B12-Add-Nextcloud-Idp-in-OpenProject).
144+
- [ ] Complete step [Test No B.1.3](#b13-Setup-integration-Without-project-folder-setup).
145+
- [ ] Complete step [Test No B.1.4](#b14-Login-to-OpenProject-using-Nextcloud-user).
146146
- [ ] In nextcloud, login as nextcloud-created user.
147147
- [ ] Navigate to `Settings > Openproject`
148148
- [ ] Should show user is connected as an OpenProject user.
149149

150-
### B6. Complete the common smoke tests
150+
#### B.1.6. Complete the common smoke tests
151151
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
152152

153-
## Section 2: External Provider
153+
### Section B.2: External Provider
154154
> Here keycloak is an External Provider
155155
156-
### B7. Configure Keycloak (IdP Setup)
156+
#### B.2.1. Configure Keycloak (IdP Setup)
157157
- [ ] Set up Keycloak using this guide: [Keycloak Setup](https://www.openproject-edge.com/docs/system-admin-guide/integrations/nextcloud/oidc-sso/#keycloak)
158158

159-
### B8. Configure Nextcloud (Client)
159+
#### B.2.2. Configure Nextcloud (Client)
160160
- [ ] In **nextcloud**, go to `Administration > OpenID Connect`.
161161
- [ ] Enable `store login tokens` options.
162162
- [ ] Register a new providers with following data:
@@ -170,7 +170,7 @@ bash integration_setup.sh
170170
- [ ] Login Should be successful
171171
- [ ] Logout
172172

173-
### B9. Add Keycloak IDP in OpenProject
173+
#### B.2.3. Add Keycloak IDP in OpenProject
174174
- [ ] In **OpenProject**, go to `Administration > Authentication > OpenID providers`
175175
- [ ] Add a new custom OpenID provider:
176176
- Display name: `keycloak`
@@ -181,47 +181,47 @@ bash integration_setup.sh
181181
- [ ] Log out, then Login as admin in `Openproject`.
182182
- [ ] As an `OpenProject` admin, add keycloak-created user as a member in one of the project.
183183

184-
### B10. Setup integration (token exchange disabled)
184+
#### B.2.4. Setup integration (token exchange disabled)
185185
- [ ] In nextcloud, go to `Administration > OpenProject`.
186186
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`.
187187
- [ ] In `Authentication settings`, select `provider Type` as `Keycloak`.
188188
- [ ] Disable `token exchange`
189189

190-
### B11. Verify Connection in nextcloud
191-
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
192-
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
193-
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
194-
- [ ] Complete step [Test No B10](#b10-Setup-integration-token-exchange-disabled).
190+
#### B.2.5. Verify Connection in nextcloud
191+
- [ ] Complete step [Test No B.2.1](#b21-Configure-Keycloak-IdP-Setup).
192+
- [ ] Complete step [Test No B.2.2](#b22-Configure-Nextcloud-Client).
193+
- [ ] Complete step [Test No B.2.3](#b23-Add-Keycloak-IDP-in-OpenProject).
194+
- [ ] Complete step [Test No B.2.4](#b24-Setup-integration-token-exchange-disabled).
195195
- [ ] In nextcloud, login as keycloak-created user.
196196
- [ ] Navigate to `Settings > Openproject`
197197
- [ ] Should show user is connected as an OpenProject user.
198198

199-
### B12. Complete the common smoke tests
199+
#### B.2.6. Complete the common smoke tests
200200
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
201201

202-
### B13.Setup integration (token exchange enabled)
203-
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
204-
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
205-
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
202+
#### B.2.7.Setup integration (token exchange enabled)
203+
- [ ] Complete step [Test No B.2.1](#b21-Configure-Keycloak-IdP-Setup).
204+
- [ ] Complete step [Test No B.2.2](#b22-Configure-Nextcloud-Client).
205+
- [ ] Complete step [Test No B.2.3](#b23-Add-Keycloak-IDP-in-OpenProject).
206206
- [ ] Go to `Administration > OpenProject` in nextcloud
207207
- [ ] Under `Authentication Method`, select `Single-Sign-On through OpenID Connect Identity Provider`
208208
- [ ] In `Authentication settings`, select `provider Type` as `Keycloak`
209209
- [ ] Enable `token exchange`
210210
- [ ] Set `OpenProject client ID *` as `Openproject`
211211

212-
### B14. Verify Connection in nextcloud
213-
- [ ] Complete step [Test No B7](#b7-Configure-Keycloak-IdP-Setup).
214-
- [ ] Complete step [Test No B8](#b8-Configure-Nextcloud-Client).
215-
- [ ] Complete step [Test No B9](#b9-Add-Keycloak-IDP-in-OpenProject).
216-
- [ ] Complete step [Test No B11](#b11-Verify-Connection-in-nextcloud).
212+
#### B.2.8. Verify Connection in nextcloud
213+
- [ ] Complete step [Test No B.2.1](#b21-Configure-Keycloak-IdP-Setup).
214+
- [ ] Complete step [Test No B.2.2](#b22-Configure-Nextcloud-Client).
215+
- [ ] Complete step [Test No B.2.3](#b23-Add-Keycloak-IDP-in-OpenProject).
216+
- [ ] Complete step [Test No B.2.5](#b25-Verify-Connection-in-nextcloud).
217217
- [ ] In nextcloud, login as keycloak-created user.
218218
- [ ] Navigate to `settings > Openproject`
219219
- [ ] Should show user is connected as an OpenProject user.
220220

221-
### B15. Complete the common smoke tests
221+
#### B.2.9. Complete the common smoke tests
222222
- [ ] Complete [smoke tests 1-6](#common-smoke-test-steps).
223223

224-
### B16. Check the integration script for sso setup (Nextcloud Hub)
224+
#### B.2.10. Check the integration script for sso setup (Nextcloud Hub)
225225

226226
> Before Running the script make sure that your `Nextcloud` and `OpenProject` instance is up and running
227227
> If you're using Nextcloud as the Identity Provider (OIDC), make sure the following apps are installed and enabled in Nextcloud:
@@ -234,8 +234,8 @@ bash integration_setup.sh
234234
>
235235
> To add the Nextcloud storage, delete the 'nextcloud' file storage from OpenProject, reset the Nextcloud config, and run the script again.
236236
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-Add-Nextcloud-Idp-in-OpenProject) (only the first and second steps are required).
237+
- [ ] Complete step [Test No B.1.1](#B11-Configure-Nextcloud-IdP-Setup) (only the first , second and thrid steps are required).
238+
- [ ] Complete step [Test No B.1.2](#B12-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-Login-to-OpenProject-using-Nextcloud-user).
257-
- [ ] Upon success, try step [Test No B5](#b5-Verify-Connection-of-Nextcloud-user-with-OpenProject).
256+
- [ ] Upon success, try step [Test No B.1.4](#b14-Login-to-OpenProject-using-Nextcloud-user).
257+
- [ ] Upon success, try step [Test No B.1.5](#b15-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 the integration script for sso setup (External provider without token exchange)
264+
#### Check the integration script for sso setup (External provider without token exchange)
265265
> Before running the script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the integration settings in Nextcloud.
266266
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-Add-Keycloak-IDP-in-OpenProject).
267+
- [ ] Complete step [Test No B.2.1](#b21-Configure-Keycloak-IdP-Setup).
268+
- [ ] Complete step [Test No B.2.2](#b22-Configure-Nextcloud-Client).
269+
- [ ] Complete step [Test No B.2.3](#b23-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
@@ -288,20 +288,20 @@ bash integration_oidc_setup.sh
288288

289289
```
290290

291-
- [ ] Upon success, try step [Test No B11](#B11-Verify-Connection-in-nextcloud).
291+
- [ ] Upon success, try step [Test No B.2.5](#B25-Verify-Connection-in-nextcloud).
292292
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
293293
- [ ] In nextcloud, delete the `OpenProject` user, group and team folder from the nextcloud (if they exist).
294294
- [ ] Then, reset the Nextcloud config.
295295
- [ ] set environment `SETUP_PROJECT_FOLDER=true` and run the script.
296296
- [ ] Run the script again after it is already setup (Should not give any error).
297297

298298

299-
### Check the integration script for sso setup (External provider with token exchange)
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
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-Add-Keycloak-IDP-in-OpenProject).
302+
- [ ] Complete step [Test No B.2.1](#b21-Configure-Keycloak-IdP-Setup).
303+
- [ ] Complete step [Test No B.2.2](#b22-Configure-Nextcloud-Client).
304+
- [ ] Complete step [Test No B.2.3](#b23-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
@@ -322,7 +322,7 @@ OP_STORAGE_AUDIENCE=nextcloud \
322322
bash integration_oidc_setup.sh
323323
```
324324

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

0 commit comments

Comments
 (0)