Skip to content

Commit

Permalink
Add the preparation for SOAP tests
Browse files Browse the repository at this point in the history
Signed-off-by: Danielle Barda <dbarda@redhat.com>
  • Loading branch information
bardielle committed Mar 3, 2024
1 parent 3df33ef commit 3ebef03
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install requirements
run: ansible-galaxy collection install -r requirements.yml

- name: Run ansible-lint
uses: ansible/ansible-lint@v6.22.0

Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace: redhat_cop
namespace: cloud
name: vmware_ops
version: 1.0.0
readme: README.md
Expand Down
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
collections:
- name: community.vmware
- name: vmware.vmware_rest
20 changes: 20 additions & 0 deletions tests/integration/targets/prepare_soap/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Install dependencies
ansible.builtin.pip:
name:
- requests
- aiohttp

- name: Run rest
community.docker.docker_container:
name: vmwaresoap
image: vmware/vcsim
state: started
recreate: yes
ports:
- 8989:8989
command: "vcsim -dc 2 -folder 1 -ds 4 -pod 1 -nsx 2 -pool 2 -app 1"

- name: Pause
ansible.builtin.pause:
seconds: 10
2 changes: 1 addition & 1 deletion tests/integration/targets/provision_vm_test/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
tasks:
- name: Vcsim
ansible.builtin.import_role:
name: prepare_rest
name: prepare_soap

- name: Import provision VM role
ansible.builtin.import_role:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/provision_vm_test/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- name: Security role
ansible.builtin.import_role:
name: redhat_cop.vmware_ops.provision_vm
name: cloud.vmware_ops.provision_vm
2 changes: 1 addition & 1 deletion tests/integration/targets/security_test/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- name: Security role
ansible.builtin.import_role:
name: redhat_cop.vmware_ops.security
name: cloud.vmware_ops.security
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- name: System settings role
ansible.builtin.import_role:
name: redhat_cop.vmware_ops.system_settings
name: cloud.vmware_ops.system_settings

0 comments on commit 3ebef03

Please sign in to comment.