mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Add new credential entry point discovery (#15685)
* - add new entry points - add logic to check what version of the project is running * remove former discovery method * update custom_injectors and remove unused import * fix how we load external creds * remove stale code to match devel * fix cloudforms test and move credential loading * add load credentials method to get tests passing * Conditionalize integration tests if the cred is present * remove inventory source test * inventory source is covered in the workflow job template target
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
set_fact:
|
||||
inv_name1: "AWX-Collection-tests-inventory-inv1-{{ test_id }}"
|
||||
inv_name2: "AWX-Collection-tests-inventory-inv2-{{ test_id }}"
|
||||
cred_name1: "AWX-Collection-tests-inventory-cred1-{{ test_id }}"
|
||||
group_name1: "AWX-Collection-tests-instance_group-group1-{{ test_id }}"
|
||||
|
||||
- block:
|
||||
@@ -23,21 +22,6 @@
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Create an Insights Credential
|
||||
credential:
|
||||
name: "{{ cred_name1 }}"
|
||||
organization: Default
|
||||
credential_type: Insights
|
||||
inputs:
|
||||
username: joe
|
||||
password: secret
|
||||
state: present
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Create an Inventory
|
||||
inventory:
|
||||
name: "{{ inv_name1 }}"
|
||||
@@ -227,10 +211,3 @@
|
||||
instance_group:
|
||||
name: "{{ group_name1 }}"
|
||||
state: absent
|
||||
|
||||
- name: Delete Insights Credential
|
||||
credential:
|
||||
name: "{{ cred_name1 }}"
|
||||
organization: "Default"
|
||||
credential_type: Insights
|
||||
state: absent
|
||||
|
||||
Reference in New Issue
Block a user