This file consists of some smoke testing to be done before the release (major and minor) of integration_application
application.
The need for this smoke testing (manual) is that we do not have e2e test setup to automate that involves both OpenProject
and Nextcloud
.
- In
OpenProject
, navigate toAdministration > Files
. - Create a file storage type
Nextcloud
and name it asNextcloud
inOpenProject
. - In admin setting of
Nextcloud
, navigate toAdministration Settings > OpenProject
. - Copy
OpenProject
Oauth Credential (client_id and client_secret) and save them inNextcloud
. - Copy
Nextcloud
Oauth Credential (client_id and client_secret) and save them inOpenProject
.
- Complete Smoke Test No 1.
- In
Nextcloud
, navigate toPersonal Settings > Openproject
and click onConnect to OpenProject
button. -
Nextcloud
admin should be connected as anOpenProject
admin. - Also, create a user in both
Nextcloud
as well asOpenProject
. - From the personal section of the created user in
Nextcloud
, connect toOpenProject
. -
Nextcloud
user should be connected as anOpenProject
user.
- Complete Smoke Test No 1.
- Select an
OpenProject
Project (for example,Demo Project
) inOpenProject
. - Navigate to
Project settings > Files
ofDemo Project
. - Add a file storage name
Nextcloud
( chooseNo specific Folder
option ) forDemo Project
.
- Complete Smoke Test No 1.
- Complete Smoke Test No 3.
- Navigate to
Demo Project > Work Packages
and double click any one of the work packages available. - Navigate to
Files
tab, and login toNextcloud
. -
OpenProject
admin is connected toNextcloud
as aNextcloud
admin. - Also, create a user in both
Nextcloud
as well asOpenProject
. - Add the created
OpenProject
user as the member ofDemo Project
project (admin can add members to a project). - Try to connect the created
OpenProject
user as createdNextcloud
user. -
OpenProject
user should be connected as aNextcloud
user.
- Complete Smoke Test No 1.
- Enable
groupfolders
application inNextcloud
. - Enable
Automatically managed folders
switch in admin setting and set project folder. - Application password should be generated.
-
OpenProject
user and group are created such that userOpenProject
is admin of the group. - Try deleting
OpenProject
user and group, those should not be deleted.
- Complete Smoke Test No 1.
- Complete Smoke Test No 2.
- Complete Smoke Test No 3.
- Select a file, navigate to sidebar
OpenProject
tab. - Search for any of the work packages in the
Demo Project
. - Work packages are listed.
- Link to any one of the work packages appeared in the search lists.
- Linked work package appears in the
OpenProject
Tab with a successful message. - Also, try linking other work packages, reload the browser and all the linked ones should appear in the
OpenProject
Tab. - Hover to a work package to be unlinked, unlink button is visible.
- Unlink a work package and it should be deleted from the
OpenProject
Tab with a successful message.
- Complete Smoke Test No 1.
- Complete Smoke Test No 3.
- Complete Smoke Test No 4.
- Navigate to
Demo Project > Work Packages
and double click any one of the work packages available. - Navigate to
Files
tab, clicklink existing files
, select available files (for example, welcome.txt) from Nextcloud and link it to the work package. - Selected file is linked to the work package in
OpenProject
- Also Navigate to nextcloud and see in the
OpenProject
tab for file (welcome.txt), the work package should be linked.
- Complete Smoke Test No 1.
- Complete Smoke Test No 3.
- Complete Smoke Test No 4.
- Navigate to
Demo Project > Work Packages
and double click any one of the work packages available. - Navigate to
Files
tab, clickUpload files
, select available files from your local system (for example, local.txt) and upload choosing the upload location. - Uploaded file is linked to the work package in
OpenProject
- Also Navigate to
Nextcloud
and see in theOpenProject
tab for file (local.txt), the work package should be linked.
- Complete Smoke Test No 1.
- Complete Smoke Test No 2.
- Complete Smoke Test No 3.
- Open the form to create work package from Nextcloud in the
OpenProject
tab for a file/folder. - Select
Demo Project
, fill up the modal form and create. - Work package should be created and linked to the selected file.
Make sure your
OpenProject
is running along withworker
instance
- Complete Smoke Test No 1.
- Complete Smoke Test No 2.
- Complete Smoke Test No 3.
- Complete Smoke Test No 4.
- Create a separate user in both
Nextcloud
as well asOpenProject
. - Connect
Nextcloud
user toOpenProject
user and vice-versa (OpenProject
user toNextcloud
user). - Now as an
OpenProject
admin, assign any of theDemo Project
work packages to the createdOpenProject
user. - The
Nextcloud
user should receive a notification regarding the assignment.
- Complete Smoke Test No 1.
- Complete Smoke Test No 3 (Make sure to choose
New folder with automatically managed permissions
while creatingFile storage
). - Complete Smoke Test No 4.
- Navigate to
Demo Project > Work Packages
and double click any one of the work packages available. - Navigate to
Files
tab, clicklink existing files
. - In a modal,
Nextcloud > OpenProject > Demo project(1)
should be visible. - Also Navigate to
Nextcloud
and in FilesOpenProject > Demo project(1)
folder is created. - Try to delete
OpenProject
orOpenProject > Demo project(1)
. They should not be deleted.
Before Running the script make sure that your
Nextcloud
andOpenProject
instance is up and running
- Run the
integration_setup.sh
script to set up integration without project folder with the following command:
SETUP_PROJECT_FOLDER=true \
NEXTCLOUD_HOST=<nextcloud_instance_url> \
OPENPROJECT_HOST=<openproject_instance_url> \
OP_ADMIN_USERNAME=admin \
OP_ADMIN_PASSWORD=admin \
NC_ADMIN_USERNAME=admin \
NC_ADMIN_PASSWORD=admin \
OPENPROJECT_STORAGE_NAME=Nextcloud \
bash integration_setup.sh
- Upon success, try Smoke Test No 2 (Skip first check).
- Upon success, try Smoke Test No 4 (Skip first check).
- Also, to set up the integration configuration with project folder setup, just set environment
SETUP_PROJECT_FOLDER=true
and run the script. - Re-run the script again after it is already setup (Should not give any error).