Skip to content

Commit

Permalink
Workaround for saml ipds test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavbansal29 committed Dec 10, 2024
1 parent 4728116 commit 8420a42
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@
fail_msg: " Unable to Verify spec generation for identity providers with check_mode "
success_msg: " Verify spec generation for identity providers with check_mode finished successfully "

- name: Read content from file

Check failure on line 59 in tests/integration/targets/ntnx_saml_identity_providers_v2/tasks/all_operation.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (set_fact).
set_fact:
xml_file_content: "{{ lookup('file', xml_content.dest + '/content.txt') }}"

- name: Create saml
ntnx_saml_identity_providers_v2:
name: "{{ full_name }}1"
username_attribute: "{{ user_name }}1"
email_attribute: email
groups_attribute: groups
groups_delim: ","
idp_metadata_xml: "{{ xml_content }}"
idp_metadata_xml: "{{ xml_file_content }}"
state: present
register: result
ignore_errors: true
Expand Down
22 changes: 14 additions & 8 deletions tests/integration/targets/prepare_env/playbooks/prepare_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,17 @@
mode: "0644"
url: "{{ disk_image.url }}"
dest: "{{ disk_image.dest }}"
# # - name: create address group for network security policy related tests
# # nutanix.ncp.ntnx_address_groups:
# # state: present
# # name: dest
# # desc: dest
# # subnets:
# # - network_ip: "10.1.1.0"
# # network_prefix: 24
# # - name: create address group for network security policy related tests
# # nutanix.ncp.ntnx_address_groups:
# # state: present
# # name: dest
# # desc: dest
# # subnets:
# # - network_ip: "10.1.1.0"
# # network_prefix: 24

- name: Downloading xml content for saml tests
ansible.builtin.get_url:
mode: "0644"
url: "{{ xml_content.url }}"
dest: "{{ xml_content.dest }}"

0 comments on commit 8420a42

Please sign in to comment.