mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Added organization in the scm_credential get (#49884)
* Added organization in the scm_credential get * Fallback looking for cred in project org * Tests project with multi org credential * Fixed CI issue * Added changelog fragment
This commit is contained in:
committed by
John R Barker
parent
afdd4e2343
commit
65c7424a35
@@ -47,3 +47,32 @@
|
||||
organization: Default
|
||||
scm_type: git
|
||||
scm_url: https://github.com/ansible/ansible
|
||||
|
||||
- name: "Create {{ item }}"
|
||||
tower_organization:
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- TestOrg1
|
||||
- TestOrg2
|
||||
|
||||
- name: "Create credential"
|
||||
tower_credential:
|
||||
kind: scm
|
||||
name: TestCred1
|
||||
organization: "{{ item }}"
|
||||
loop:
|
||||
- TestOrg2
|
||||
- TestOrg1
|
||||
|
||||
- name: Create project TestProject
|
||||
tower_project:
|
||||
name: TestProject
|
||||
organization: TestOrg1
|
||||
scm_type: git
|
||||
scm_url: "https://github.com/ansible/ansible"
|
||||
scm_credential: TestCred1
|
||||
register: multi_org_cred_project
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "multi_org_cred_project is changed"
|
||||
|
||||
Reference in New Issue
Block a user