DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
DCD-1238: Add database type mapping for oracle which supports oracle 12c and 19c in Confluence 7.3.1+
Approved-by: Steve Smith
Approved-by: Nasser Ghazali-Beiklar
DCKUBE-111 security scan
* DCKUBE-111 - Applied security scan to bitbucket pipeline - passed the test script to run.py and also directly ran snyk scanner on custom releases
* DCKUBE-111 - as script test has a default then no need to pass it as a parameter
* DCKUBE-111 - removed snyk auth
* DCKUBE-111 - Added snyk authentication before scan
* DCKUBE-111 - Fixed typo in image names
* DCKUBE-111 - Set environment variable as part of applying the review point on docker release maker to changed push_image and test to env var instead of parameters to run.py
* DCKUBE-111 - removed PUSH_IMAGE and INTEGRATION_TEST_SCRIPT from pipeline yaml file because are default values and are not needed to override with the same value
Approved-by: Adam Brokes