Skip to content

Commit

Permalink
Modify test directory references in automation
Browse files Browse the repository at this point in the history
The test directories need to reflect the new
project test heirarchy, otherwise they will not be
able to access the correct resources.
  • Loading branch information
BradleyBoutcher committed Aug 18, 2020
1 parent 43949a8 commit 579000e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.DS_Store

# We don't care about test outputs
tests/junit/
tests/conjur.pem
tests/access_token
tests/*/junit/
tests/*/conjur.pem
tests/*/access_token

# We should never check in pycache directories
**/__pycache__/
Expand Down
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ pipeline {
stage('Run tests') {
parallel {
stage("Test Ansible-Conjur-Collection") {
agent { label 'executor-v2-large' }

steps {
sh './ci/test.sh conjur'
junit 'tests/junit/*'
junit 'tests/conjur/junit/*'
}
}

stage("Test Ansible-Conjur-Host-Identity") {
steps {
sh './ci/test.sh conjur-host-identity'
junit 'tests/junit/*'
junit 'tests/conjur-host-identity/junit/*'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/conjur-host-identity/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ services:
CONJUR_CUSTOM_AUTHN_API_KEY: ${CUSTOM_CONJUR_AUTHN_API_KEY}
COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME}
volumes:
- ..:/conjurinc/cyberark.conjur-host-identity/
- ../tests:/conjurinc/tests/
- ../..:/conjurinc/cyberark.conjur-host-identity/
- ../conjur-host-identity:/conjurinc/tests/
- /var/run/docker.sock:/var/run/docker.sock
pg:
image: postgres:9.3
Expand Down
5 changes: 0 additions & 5 deletions tests/conjur/access_token

This file was deleted.

4 changes: 2 additions & 2 deletions tests/conjur/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ services:
links:
- "conjur_https:conjur-https"
volumes:
- ../plugins:/root/.ansible/plugins
- ..:/cyberark
- ../../plugins:/root/.ansible/plugins
- ../..:/cyberark
- /var/run/docker.sock:/var/run/docker.sock

pg:
Expand Down
2 changes: 1 addition & 1 deletion tests/conjur/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function run_test_case {
fi

docker-compose exec -T ansible bash -exc "
cd tests
cd tests/conjur
# If env vars were provided, load them
if [ -e 'test_cases/${test_case}/env' ]; then
Expand Down

0 comments on commit 579000e

Please sign in to comment.