Skip to content

Commit

Permalink
fix(workflow): tests integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di committed Oct 15, 2024
1 parent 932c033 commit 302ede9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ansible-test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,11 @@ jobs:
- name: Perform testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
pre-test-cmd: >-
SCW_ACCESS_KEY=${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY=${{ secrets.SCW_SECRET_KEY }}
SCW_DEFAULT_PROJECT_ID=${{ secrets.SCW_DEFAULT_PROJECT_ID }}
eval
"echo \"$(cat "tests/integration/integration_config.yml.template")\""
> tests/integration/integration_config.yml
target-python-version: 3.9
controller-python-version: auto
target: ${{ matrix.module }}
testing-type: integration
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
scaleway.scaleway.scaleway_registry_namespace:
name: "{{ resource_name }}"
region: "{{ resource_region }}"
project_id: "{{ scw_default_project_id }}"
access_key: "{{ scw_access_key }}"
secret_key: "{{ scw_secret_key }}"
project_id: "{{ lookup('env', 'SCW_DEFAULT_PROJECT_ID') }}"
access_key: "{{ lookup('env', 'SCW_ACCESS_KEY') }}"
secret_key: "{{ lookup('env', 'SCW_SECRET_KEY') }}"
state: present
description: "{{ resource_description }}"
is_public: "{{ resource_is_public }}"
Expand All @@ -37,9 +37,9 @@
scaleway.scaleway.scaleway_registry_namespace:
name: "{{ resource_name }}"
region: "{{ resource_region }}"
project_id: "{{ scw_default_project_id }}"
access_key: "{{ scw_access_key }}"
secret_key: "{{ scw_secret_key }}"
project_id: "{{ lookup('env', 'SCW_DEFAULT_PROJECT_ID') }}"
access_key: "{{ lookup('env', 'SCW_ACCESS_KEY') }}"
secret_key: "{{ lookup('env', 'SCW_SECRET_KEY') }}"
state: absent
description: "{{ resource_description }}"
is_public: "{{ resource_is_public }}"
Expand All @@ -50,9 +50,9 @@
scaleway.scaleway.scaleway_registry_namespace:
name: "{{ resource_name }}"
region: "{{ resource_region }}"
project_id: "{{ scw_default_project_id }}"
access_key: "{{ scw_access_key }}"
secret_key: "{{ scw_secret_key }}"
project_id: "{{ lookup('env', 'SCW_DEFAULT_PROJECT_ID') }}"
access_key: "{{ lookup('env', 'SCW_ACCESS_KEY') }}"
secret_key: "{{ lookup('env', 'SCW_SECRET_KEY') }}"
state: present
description: "{{ resource_description }}"
is_public: "{{ resource_is_public }}"
Expand Down

0 comments on commit 302ede9

Please sign in to comment.