Skip to content

Commit

Permalink
Disable unit tests (#2)
Browse files Browse the repository at this point in the history
mongodb doesn't have any unit tests, so remove that CI job

Also correct community.general collection name typo I made.
Integration tests will still fail for the moment till that collection is
live.
  • Loading branch information
gundalow authored Feb 17, 2020
1 parent fc32278 commit 21cbdc8
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 31 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,6 @@ jobs:
- name: Run sanity tests
run: ansible-test sanity --docker -v --color --python 3.6

units:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
with:
path: ansible_collections/community/mongodb

- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6

- name: Install ansible-base
run: pip install git+https://github.com/ansible-collection-migration/ansible-base.git --disable-pip-version-check

- name: Run unit tests
run: ansible-test units --docker -v --color --python 3.6 --coverage

- name: Upload Coverage data
run: tests/coverage.sh

integration:
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: null
license_file: null
tags: null
dependencies:
community._general: '>=1.0'
community.general: '>=1.0'
ansible.windows: '>=1.0'
repository: [email protected]:ansible-collections/mongodb.git
documentation: https://github.com/ansible-collections/mongodb/tree/master/docs
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/mongodb_parameter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
ignore_errors: true
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ignore_errors: true
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
shell: pkill -{{ kill_signal }} mongod;
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ignore_errors: true
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/mongodb_shard/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
shell: pkill -{{ kill_signal }} mongod || true;
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ignore_errors: true
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/mongodb_user/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
ignore_errors: true
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ignore_errors: true
- name: Getting pids for mongod
register: pids_of_mongod
community._general.pids:
community.general.pids:
name: mongod
- name: Wait for all mongod processes to exit
wait_for:
Expand Down

0 comments on commit 21cbdc8

Please sign in to comment.