Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for saml ipds test cases. #527

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
ansible.builtin.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 }}"
Loading