Skip to content

Commit

Permalink
Merge pull request #199 from cyberark/remove-unused-ignores
Browse files Browse the repository at this point in the history
Correct role paths and update ignore files
  • Loading branch information
gl-johnson authored Oct 16, 2023
2 parents 0b27d36 + b44489d commit 05176c8
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
# The docker container has all the pinned dependencies that are required.
# Explicitly specify the version of Python we want to test
- name: Run sanity tests
run: ansible-test sanity --docker -v --color --python ${{ matrix.python }}
run: ansible-test sanity --docker -v --color --python ${{ matrix.python }} --exclude dev/ --exclude ci/ --exclude secrets.yml
working-directory: ./ansible_collections/cyberark/conjur

###
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ reports
*.js
*.html
output/
importer_result.json

# Pycache directories and files
**/__pycache__/
Expand Down
4 changes: 2 additions & 2 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ services:
volumes:
- .:/cyberark/dev
- /cyberark/dev/conjur-intro/
- ../roles/conjur_host_identity:/roles/cyberark.conjur.conjur-host-identity/
- ../roles/conjur_host_identity/tests:/cyberark/tests/conjur-host-identity/
- ../roles/conjur_host_identity:/roles/cyberark.conjur.conjur_host_identity/
- ../roles/conjur_host_identity/tests:/cyberark/tests/conjur_host_identity/
- ../plugins:/root/.ansible/plugins
- ../tests/conjur_variable:/cyberark/tests/conjur_variable
- /var/run/docker.sock:/var/run/docker.sock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Configuring conjur identity on remote hosts
hosts: testapp
roles:
- role: "cyberark.conjur.conjur-host-identity"
- role: "cyberark.conjur.conjur_host_identity"
conjur_account: "{{lookup('env', 'CONJUR_ACCOUNT')}}"
conjur_appliance_url: "{{lookup('env', 'CONJUR_APPLIANCE_URL')}}"
conjur_host_factory_token: "{{lookup('env', 'HFTOKEN')}}"
Expand Down
4 changes: 2 additions & 2 deletions roles/conjur_host_identity/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ function run_test_case {

docker exec -e HFTOKEN="$(hf_token)" \
"$(ansible_cid)" bash -ec "
cd /cyberark/tests/conjur-host-identity
cd /cyberark/tests/conjur_host_identity
# You can add -vvvvv here for debugging
ansible-playbook test_cases/$test_case/playbook.yml
"

if [ -d "test_cases/${test_case}/tests/" ]; then
docker exec "$(ansible_cid)" bash -ec "
cd /cyberark/tests/conjur-host-identity
cd /cyberark/tests/conjur_host_identity
py.test --junitxml=./junit/${test_case} --connection docker -v test_cases/${test_case}/tests/test_default.py
"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- name: Attempt to configure Conjur identity
block:
- import_role:
name: "cyberark.conjur.conjur-host-identity"
name: "cyberark.conjur.conjur_host_identity"
vars:
conjur_account: cucumber
conjur_appliance_url: "https://conjur-proxy-nginx"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Configuring Conjur identity on remote hosts
hosts: testapp
roles:
- role: "cyberark.conjur.conjur-host-identity"
- role: "cyberark.conjur.conjur_host_identity"
conjur_account: "{{lookup('env', 'CONJUR_ACCOUNT')}}"
conjur_appliance_url: "{{lookup('env', 'CONJUR_APPLIANCE_URL')}}"
conjur_host_factory_token: "{{lookup('env', 'HFTOKEN')}}"
Expand All @@ -13,5 +13,5 @@
- name: Revoke Conjur identity from remote hosts
hosts: testapp
roles:
- role: "cyberark.conjur.conjur-host-identity"
- role: "cyberark.conjur.conjur_host_identity"
state: absent
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Configuring Conjur identity on remote hosts
hosts: testapp
roles:
- role: "cyberark.conjur.conjur-host-identity"
- role: "cyberark.conjur.conjur_host_identity"
conjur_account: "{{lookup('env', 'CONJUR_ACCOUNT')}}"
conjur_appliance_url: "{{lookup('env', 'CONJUR_APPLIANCE_URL')}}"
conjur_host_factory_token: "{{lookup('env', 'HFTOKEN')}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- name: Attempt to configure Conjur identity
block:
- import_role:
name: "cyberark.conjur.conjur-host-identity"
name: "cyberark.conjur.conjur_host_identity"
vars:
conjur_account: cucumber
# conjur_appliance_url: "https://conjur-proxy-nginx"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- name: Attempt to configure Conjur identity
block:
- import_role:
name: "cyberark.conjur.conjur-host-identity"
name: "cyberark.conjur.conjur_host_identity"
vars:
conjur_account: "{{lookup('env', 'CONJUR_ACCOUNT')}}"
conjur_appliance_url: "{{lookup('env', 'CONJUR_APPLIANCE_URL')}}"
Expand Down
6 changes: 0 additions & 6 deletions tests/sanity/ignore-2.10.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
dev/start.sh shebang
Jenkinsfile shebang
tests/conjur_variable/policy/root.yml yamllint:unparsable-with-libyaml
roles/conjur_host_identity/tests/policy/root.yml yamllint:unparsable-with-libyaml # File loaded by summon utility (in Jenkinsfile), not via Python
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang
secrets.yml yamllint:unparsable-with-libyaml # File loaded by Conjur server, not via Python
dev/policy/root.yml yamllint:unparsable-with-libyaml
6 changes: 0 additions & 6 deletions tests/sanity/ignore-2.11.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
Jenkinsfile shebang
dev/start.sh shebang
tests/conjur_variable/policy/root.yml yamllint:unparsable-with-libyaml
roles/conjur_host_identity/tests/policy/root.yml yamllint:unparsable-with-libyaml # File loaded by summon utility (in Jenkinsfile), not via Python
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang
secrets.yml yamllint:unparsable-with-libyaml # File loaded by Conjur server, not via Python
dev/policy/root.yml yamllint:unparsable-with-libyaml
6 changes: 0 additions & 6 deletions tests/sanity/ignore-2.12.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
Jenkinsfile shebang
dev/start.sh shebang
tests/conjur_variable/policy/root.yml yamllint:unparsable-with-libyaml # File loaded by Conjur server, not via Python
roles/conjur_host_identity/tests/policy/root.yml yamllint:unparsable-with-libyaml # File loaded by Conjur server, not via Python
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang
secrets.yml yamllint:unparsable-with-libyaml # File loaded by Summon utility (in Jenkinsfile), not via Python
dev/policy/root.yml yamllint:unparsable-with-libyaml
8 changes: 0 additions & 8 deletions tests/sanity/ignore-2.13.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang
dev/policy/root.yml yamllint:unparsable-with-libyaml
dev/start.sh shebang
dev/stop.sh shebang
dev/util.sh shebang
Jenkinsfile shebang
plugins/lookup/conjur_variable.py validate-modules:version-added-must-be-major-or-minor
secrets.yml yamllint:unparsable-with-libyaml
8 changes: 0 additions & 8 deletions tests/sanity/ignore-2.14.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang
dev/policy/root.yml yamllint:unparsable-with-libyaml
dev/start.sh shebang
dev/stop.sh shebang
dev/util.sh shebang
Jenkinsfile shebang
plugins/lookup/conjur_variable.py validate-modules:version-added-must-be-major-or-minor
secrets.yml yamllint:unparsable-with-libyaml
8 changes: 0 additions & 8 deletions tests/sanity/ignore-2.15.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang
dev/policy/root.yml yamllint:unparsable-with-libyaml
dev/start.sh shebang
dev/stop.sh shebang
dev/util.sh shebang
Jenkinsfile shebang
plugins/lookup/conjur_variable.py validate-modules:version-added-must-be-major-or-minor
secrets.yml yamllint:unparsable-with-libyaml
4 changes: 0 additions & 4 deletions tests/sanity/ignore-2.9.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
Jenkinsfile shebang
dev/start.sh shebang
tests/conjur_variable/test.sh shebang
roles/conjur_host_identity/tests/test.sh shebang
ci/build_release shebang
ci/publish_to_galaxy shebang
ci/test.sh shebang

0 comments on commit 05176c8

Please sign in to comment.