Skip to content

Commit 39b4a60

Browse files
authored
Merge pull request #27 from koef/add-lb-modules
Add new modules for managing LB instances
2 parents 1226542 + fbfe0cf commit 39b4a60

File tree

12 files changed

+3021
-13
lines changed

12 files changed

+3021
-13
lines changed

.github/workflows/tests.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,41 @@ jobs:
158158
sync
159159
sync
160160
161+
integration_tests_lb_instances:
162+
runs-on: ubuntu-20.04
163+
needs: integration_tests_l2
164+
concurrency: API
165+
steps:
166+
- name: Checkout
167+
uses: actions/checkout@v3
168+
- name: Set up Python
169+
uses: actions/setup-python@v2
170+
with:
171+
python-version: "3.13"
172+
- name: Install dependencies
173+
run: |
174+
python -m pip install --upgrade pip
175+
pip install -r requirements.txt
176+
- name: Configure integration tests
177+
run: |
178+
envsubst < integration_config.yml.template > ansible_collections/serverscom/sc_api/tests/integration/integration_config.yml
179+
env:
180+
SC_TOKEN: "${{ secrets.SC_TOKEN }}"
181+
- name: Integration tests
182+
run: ansible-test integration --requirements --python 3.13
183+
sc_load_balancer_instance_info
184+
sc_load_balancer_instance_l4
185+
sc_load_balancer_instance_l7
186+
sc_load_balancer_instances_list
187+
188+
working-directory: ansible_collections/serverscom/sc_api
189+
- name: Cleanup secrets
190+
if: always()
191+
run: |
192+
dd if=/dev/zero bs=4k count=4 of=ansible_collections/serverscom/sc_api/tests/integration/integration_config.yml
193+
sync
194+
sync
195+
161196
build:
162197
runs-on: ubuntu-20.04
163198
needs: integration_tests_l2

0 commit comments

Comments
 (0)