File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
ansible/roles/operator-pipeline/templates/openshift/tasks Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 7373 exit 0
7474 fi
7575
76+ # configure git to enable operations on unowned repository
77+ git config --global --add safe.directory $(workspaces.source.path)
78+
7679 cat replacements.json
7780 REPLACEMENT_COUNT=$(jq length replacements.json)
7881
Original file line number Diff line number Diff line change @@ -49,6 +49,23 @@ ansible-pull \
4949 ansible/playbooks/operator-pipeline-integration-tests.yml
5050```
5151
52+ To manually run the integration tests from the local environment:
53+ - prerequisites:
54+ - logged-in to OC cluster
55+ - export NAMESPACE - new is created if not exist,
56+ careful for duplicity (can override existing projects)
57+ - SSH key need to be set in GitHub account for local user
58+ (Ansible use SSH to clone/manipulate repositories)
59+ - Python dependencies (mentioned above) need to be installed globally
60+
61+ ``` bash
62+ ansible-playbook -v \
63+ -i " ansible/inventory/operator-pipeline-integration-tests" \
64+ -e " oc_namespace=$NAMESPACE " \
65+ --vault-password-file $VAULT_PASSWORD_PATH \
66+ ansible/playbooks/operator-pipeline-integration-tests.yml
67+ ```
68+
5269Tags can be used to run select portions of the playbook. For example, the test
5370resources will be cleaned up at the end of every run. Skipping the ` clean ` tag
5471will leave the resources behind for debugging.
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ ansible-playbook -v \
7272 --vault-password-file $VAULT_PASSWORD_PATH \
7373 ansible/playbooks/deploy.yml
7474```
75-
75+ #### Integration tests
76+ See [ integration tests section in ci-cd.md] ( ci-cd.md#integration-tests )
7677#### Install tkn
7778
7879You should install the [ tkn] ( https://docs.openshift.com/container-platform/4.7/cli_reference/tkn_cli/installing-tkn.html )
You can’t perform that action at this time.
0 commit comments