Skip to content

Commit 04abd67

Browse files
sajaganalhercot
authored andcommitted
[ignore] Updated the inventory.networking file and removed cloud related tasks from mso_schema_site_external_epg, mso_schema_site_anp_epg
1 parent 5fcc36a commit 04abd67

File tree

4 files changed

+8
-175
lines changed
  • tests/integration/targets

4 files changed

+8
-175
lines changed

tests/integration/targets/mso_schema_site_anp_epg/tasks/main.yml

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -583,66 +583,3 @@
583583
site: '{{ mso_site | default("ansible_test") }}'
584584
template: 'Template 1'
585585
state: absent
586-
587-
- name: Add new EPG service type parameters (for version greater than 3.3)
588-
cisco.mso.mso_schema_template_anp_epg:
589-
<<: *mso_info
590-
schema: '{{ mso_schema | default("ansible_test") }}'
591-
template: Template 1
592-
anp: ANP
593-
epg: ansible_test_1
594-
vrf:
595-
name: VRF1
596-
schema: ansible_test
597-
template: Template 1
598-
epg_type: 'service'
599-
deployment_type: 'cloud_native'
600-
service_type: 'Azure-Storage'
601-
access_type: 'private'
602-
state: present
603-
604-
- name: Add private link label to the EPG (for version greater than 3.3)
605-
cisco.mso.mso_schema_site_anp_epg:
606-
<<: *mso_info
607-
schema: '{{ mso_schema | default("ansible_test") }}'
608-
template: Template 3
609-
anp: ANP_3
610-
epg: ansible_test_3
611-
site: '{{ mso_site | default("ansible_test") }}'
612-
private_link_label: 'New_Private_Link_Label'
613-
state: present
614-
register: add_private_link_label
615-
616-
- name: Change private link label in the EPG (for version greater than 3.3)
617-
cisco.mso.mso_schema_site_anp_epg:
618-
<<: *mso_info
619-
schema: '{{ mso_schema | default("ansible_test") }}'
620-
template: Template 3
621-
anp: ANP_3
622-
epg: ansible_test_3
623-
site: '{{ mso_site | default("ansible_test") }}'
624-
private_link_label: 'PLL'
625-
state: present
626-
register: change_private_link_label
627-
628-
- name: Verify site application profile EPG private link label
629-
ansible.builtin.assert:
630-
that:
631-
- add_private_link_label is changed
632-
- add_private_link_label.current.epgRef.anpName == "ANP_3"
633-
- add_private_link_label.current.epgRef.epgName == "ansible_test_3"
634-
- add_private_link_label.current.epgRef.templateName == "Template3"
635-
- add_private_link_label.current.privateLinkLabel.name == "New_Private_Link_Label"
636-
- add_private_link_label.current.shutdown == false
637-
- add_private_link_label.previous.epgRef.anpName == "ANP_3"
638-
- add_private_link_label.previous.epgRef.epgName == "ansible_test_3"
639-
- add_private_link_label.previous.epgRef.templateName == "Template3"
640-
- change_private_link_label is changed
641-
- change_private_link_label.current.epgRef.anpName == "ANP_3"
642-
- change_private_link_label.current.epgRef.epgName == "ansible_test_3"
643-
- change_private_link_label.current.epgRef.templateName == "Template3"
644-
- change_private_link_label.current.privateLinkLabel.name == "PLL"
645-
- change_private_link_label.previous.epgRef.anpName == "ANP_3"
646-
- change_private_link_label.previous.epgRef.epgName == "ansible_test_3"
647-
- change_private_link_label.previous.epgRef.templateName == "Template3"
648-
- change_private_link_label.previous.privateLinkLabel.name == "New_Private_Link_Label"

tests/integration/targets/mso_schema_site_bd_l3out/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
- non_existing_template is not changed
354354
- non_existing_template.msg == "Provided template 'non_existing_template' not matching existing template(s){{':'}} Template1, Template2, TemplateL3out"
355355
- non_existing_bd is not changed
356-
- non_existing_bd.msg == "Provided BD 'BD1' not matching existing bd(s){{':'}} ansible_test_1"
356+
- non_existing_bd.msg == "Provided BD 'BD1' not matching existing bd(s){{':'}} ansible_test_1"
357357
- non_existing_l3out is not changed
358358
- non_existing_l3out.msg == "L3out 'non_existing_L3out' not found"
359359

tests/integration/targets/mso_schema_site_external_epg/tasks/main.yml

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -968,94 +968,3 @@
968968
- cm_no_site_associated is not changed
969969
- nm_no_site_associated is not changed
970970
- cm_no_site_associated.msg == nm_no_site_associated.msg == "Provided site 'ansible_test' not associated with template 'Template4'. Site is currently associated with template(s){{':'}} Template1, Template2, Template3"
971-
972-
# Verify route_reachability argument when template_external_epg is associated with ansible_test site and
973-
# template_external_epg type argument is set to cloud
974-
- name: Ensure ANP exists
975-
cisco.mso.mso_schema_template_anp:
976-
<<: *mso_info
977-
schema: '{{ mso_schema | default("ansible_test") }}'
978-
template: Template4
979-
anp: ANP4
980-
state: present
981-
982-
- name: Ensure VRF4 exists
983-
cisco.mso.mso_schema_template_vrf:
984-
<<: *mso_info
985-
schema: '{{ mso_schema | default("ansible_test") }}'
986-
template: Template4
987-
vrf: VRF4
988-
state: present
989-
990-
- name: Ensure L3Out4 Exists
991-
cisco.mso.mso_schema_template_l3out:
992-
<<: *mso_info
993-
schema: '{{ mso_schema | default("ansible_test") }}'
994-
template: Template4
995-
vrf:
996-
name: VRF4
997-
l3out: L3out4
998-
state: present
999-
1000-
- name: Add external EPG4 at template4 level type cloud (normal mode)
1001-
cisco.mso.mso_schema_template_external_epg:
1002-
<<: *mso_info
1003-
schema: '{{ mso_schema | default("ansible_test") }}'
1004-
template: Template4
1005-
external_epg: ext_epg_4
1006-
type: cloud
1007-
vrf:
1008-
name: VRF4
1009-
schema: '{{ mso_schema | default("ansible_test") }}'
1010-
template: Template4
1011-
anp:
1012-
name: ANP4
1013-
schema: '{{ mso_schema | default("ansible_test") }}'
1014-
template: Template4
1015-
state: present
1016-
register: nm_add_ext_epg_4
1017-
1018-
- name: Add site to a schema Template4
1019-
cisco.mso.mso_schema_site:
1020-
<<: *mso_info
1021-
schema: '{{ mso_schema | default("ansible_test") }}'
1022-
site: '{{ mso_site | default("ansible_test") }}'
1023-
template: Template4
1024-
state: present
1025-
1026-
- name: Add external EPG to site (normal mode)
1027-
cisco.mso.mso_schema_site_external_epg:
1028-
<<: *mso_info
1029-
schema: '{{ mso_schema | default("ansible_test") }}'
1030-
site: '{{ mso_site | default("ansible_test") }}'
1031-
template: Template4
1032-
external_epg: ext_epg_4
1033-
l3out: L3out4
1034-
route_reachability: site-ext
1035-
state: present
1036-
register: nm_add_ext_epg_site
1037-
1038-
- name: Verify nm_add_ext_epg_site
1039-
ansible.builtin.assert:
1040-
that:
1041-
- nm_add_ext_epg_site.current.externalEpgRef.externalEpgName == "ext_epg_4"
1042-
- nm_add_ext_epg_site.current.routeReachabilityInternetType == "site-ext"
1043-
1044-
- name: Add external EPG to site again(normal mode)
1045-
cisco.mso.mso_schema_site_external_epg:
1046-
<<: *mso_info
1047-
schema: '{{ mso_schema | default("ansible_test") }}'
1048-
site: '{{ mso_site | default("ansible_test") }}'
1049-
template: Template4
1050-
external_epg: ext_epg_4
1051-
l3out: L3out4
1052-
route_reachability: site-ext
1053-
state: present
1054-
register: nm_add_ext_epg_site_again
1055-
1056-
- name: Verify nm_add_ext_epg_site_again
1057-
ansible.builtin.assert:
1058-
that:
1059-
- nm_add_ext_epg_site_again is not changed
1060-
- nm_add_ext_epg_site_again.current.externalEpgRef.externalEpgName == "ext_epg_4"
1061-
- nm_add_ext_epg_site_again.current.routeReachabilityInternetType == "site-ext"

tests/integration/targets/mso_tenant/tasks/main.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use_proxy: '{{ mso_use_proxy | default(true) }}'
2222
output_level: '{{ mso_output_level | default("info") }}'
2323

24-
- name: Query MSO version
24+
- name: Query MSO version # Used to create the remote user - r_ansible_github_ci login entry. Which allows to map remote user with tenant.
2525
cisco.mso.mso_version:
2626
<<: *mso_info
2727
username: r_ansible_github_ci
@@ -94,7 +94,6 @@
9494
- ansible_test2
9595
- ansible_test3
9696
- tenant_with_site
97-
ignore_errors: true
9897

9998
# ADD TENANT
10099
- name: Add tenant (check_mode)
@@ -219,14 +218,10 @@
219218

220219
# ADD TENANT WITH REMOTE USERS
221220
- name: Add tenant 3 (check_mode)
222-
cisco.mso.mso_tenant: &remote_user_login
223-
<<: *mso_info
224-
username: '{{ mso_remote_username | default(mso_username) }}'
225-
password: '{{ mso_remote_password | default(mso_password) }}'
226-
login_domain: '{{ mso_remote_login_domain | default("") }}'
221+
cisco.mso.mso_tenant:
222+
<<: *tenant_present
227223
tenant: ansible_test3
228224
display_name: null
229-
description: Ansible test tenant
230225
remote_users:
231226
- name: r_ansible_github_ci
232227
login_domain: test
@@ -241,7 +236,7 @@
241236

242237
- name: Add tenant 3 (normal_mode)
243238
cisco.mso.mso_tenant:
244-
<<: *remote_user_login
239+
<<: *tenant_present
245240
tenant: ansible_test3
246241
display_name: null
247242
remote_users:
@@ -293,7 +288,7 @@
293288

294289
- name: Add tenant 3 (normal mode)
295290
cisco.mso.mso_tenant:
296-
<<: *remote_user_login
291+
<<: *tenant_present
297292
tenant: ansible_test3
298293
users:
299294
- '{{ mso_username }}'
@@ -304,17 +299,10 @@
304299
state: present
305300
register: nm_add_tenant3
306301

307-
- name: Verify nm_add_tenant3 - mso_username is admin
308-
ansible.builtin.assert:
309-
that:
310-
- nm_add_tenant3 is not changed
311-
when: mso_username == "admin"
312-
313-
- name: Verify nm_add_tenant3 - mso_username is not admin
302+
- name: Verify nm_add_tenant3
314303
ansible.builtin.assert:
315304
that:
316305
- nm_add_tenant3 is changed
317-
when: mso_username != "admin"
318306

319307
- name: Verify nm_add_tenant3 (when mso_username != admin)
320308
ansible.builtin.assert:
@@ -325,7 +313,7 @@
325313
- name: Verify nm_add_tenant3 (when mso_username == admin)
326314
ansible.builtin.assert:
327315
that:
328-
- nm_add_tenant3.current.userAssociations | length == 2
316+
- nm_add_tenant3.current.userAssociations | length == 1
329317
when: mso_username == 'admin'
330318

331319
# CHANGE TENANT
@@ -517,7 +505,6 @@
517505
<<: *tenant_present
518506
tenant: common
519507
display_name: common
520-
# sites: ['{{ mso_site | default("ansible_test") }}', 'aws_{{ mso_site | default("ansible_test") }}']
521508
sites: ['{{ mso_site | default("ansible_test") }}']
522509
register: nm_add_common_tenant
523510

0 commit comments

Comments
 (0)