Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ jobs:
- name: Add optional feature - foreman-proxy
run: |
./foremanctl deploy --add-feature foreman-proxy
- name: Add optional feature - foreman_azure_rm and foreman_google
run: |
./foremanctl deploy --add-feature foreman_azure_rm --add-feature foreman_google
- name: Run tests
run: |
./forge test --pytest-args="--certificate-source=${{ matrix.certificate_source }} --database-mode=${{ matrix.database }}"
Expand Down Expand Up @@ -211,6 +214,9 @@ jobs:
- name: Add optional feature - foreman-proxy
run: |
./foremanctl deploy --add-feature foreman-proxy
- name: Add optional feature - foreman_azure_rm and foreman_google
run: |
./foremanctl deploy --add-feature foreman_azure_rm --add-feature foreman_google
- name: Stop services
run:
vagrant ssh quadlet -- sudo systemctl stop foreman.target
Expand Down
10 changes: 10 additions & 0 deletions tests/foreman_compute_resources_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pytest

FOREMAN_HOST = 'localhost'
FOREMAN_PORT = 3000

@pytest.mark.parametrize("compute_resource", ['AzureRm', 'EC2', 'GCE', 'Libvirt', 'Openstack', 'Vmware'])
def test_foreman_compute_resources(server, compute_resource):
hammer = server.run("hammer compute-resource create --help | grep provider")
assert hammer.succeeded
assert compute_resource in hammer.stdout
6 changes: 6 additions & 0 deletions tests/foreman_plugins_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import pytest

@pytest.mark.parametrize("foreman_plugin", ['foreman_azure_rm', 'foreman_google'])
def test_foreman_compute_resources(foremanapi, foreman_plugin):
plugins = [plugin['name'] for plugin in foremanapi.list('plugins')]
assert foreman_plugin in plugins
Loading