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

Contract for cloud apic #62

Open
wants to merge 56 commits into
base: acc-test
Choose a base branch
from
Open

Conversation

RutvikS-crest
Copy link
Owner

$ go test -v -run TestAccAciContract_ -timeout=60m
=== RUN TestAccAciContract_Basic
=== STEP Basic: testing contract creation without creating tenant
=== STEP Basic: testing contract creation without name
=== STEP testing contract creation with required arguments only
=== STEP testing contract creation with optional parameters without filter parameter
=== STEP testing contract creation with optional parameters
=== STEP Basic: testing contract updation without required fields
=== STEP Basic: testing contract's filter without required parameter
=== STEP Basic: testing contract's filter_entry without required parameter
=== STEP testing contract creation with optional parameters of filter resources
=== STEP Basic: testing contract creation with tenant name acctest_sm2kj name 6zmbfrmbluz6pmohz622fa6dutl6kzhxgbwcmgekag19avi7rvvuhxyyvi3e3nal4
=== STEP Basic: testing contract creation with tenant name acctest_sm2kj name acctest_e417g
=== STEP testing contract creation with required arguments only
=== STEP Basic: testing contract creation with tenant name acctest_01jn1 name acctest_sm2kj
=== STEP testing contract destroy
--- PASS: TestAccAciContract_Basic (102.65s)
=== RUN TestAccAciContract_Update
=== STEP testing contract creation with required arguments only
=== STEP testing contract updation with prio = level2
=== STEP testing contract updation with prio = level3
=== STEP testing contract updation with prio = level4
=== STEP testing contract updation with prio = level5
=== STEP testing contract updation with prio = level6
=== STEP testing contract updation with scope = global
=== STEP testing contract updation with scope = application-profile
=== STEP testing contract updation with target_dscp = CS1
=== STEP testing contract updation with target_dscp = AF11
=== STEP testing contract updation with target_dscp = CS2
=== STEP testing contract updation with target_dscp = AF21
=== STEP testing contract updation with target_dscp = VA
=== STEP testing contract updation with target_dscp = EF
=== STEP testing contract by updating filter_entry's attribute with ether_t = ip
=== STEP testing contract by updating filter_entry's attribute with apply_to_frag = yes
=== STEP testing contract by updating filter_entry's attribute with apply_to_frag = no
=== STEP testing contract by updating filter_entry's attribute with arp_opc = unspecified
=== STEP testing contract by updating filter_entry's attribute with ether_t = ipv4
=== STEP testing contract by updating filter_entry's attribute with ether_t = ipv6
=== STEP testing contract by updating filter_entry's attribute with icmpv4_t = dst-unreach
=== STEP testing contract by updating filter_entry's attribute with icmpv4_t = echo
=== STEP testing contract by updating filter_entry's attribute with icmpv4_t = time-exceeded
=== STEP testing contract by updating filter_entry's attribute with icmpv4_t = src-quench
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = time-exceeded
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = echo-req
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = echo-rep
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = nbr-solicit
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = nbr-advert
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = redirect
=== STEP testing contract by updating filter_entry's attribute with match_dscp = CS1
=== STEP testing contract by updating filter_entry's attribute with match_dscp = AF11
=== STEP testing contract by updating filter_entry's attribute with match_dscp = CS2
=== STEP testing contract by updating filter_entry's attribute with match_dscp = AF21
=== STEP testing contract by updating filter_entry's attribute with match_dscp = VA
=== STEP testing contract by updating filter_entry's attribute with match_dscp = EF
=== STEP testing contract by updating filter_entry's attribute with prot = icmp
=== STEP testing contract by updating filter_entry's attribute with prot = igmp
=== STEP testing contract by updating filter_entry's attribute with prot = egp
=== STEP testing contract by updating filter_entry's attribute with prot = igp
=== STEP testing contract by updating filter_entry's attribute with prot = icmpv6
=== STEP testing contract by updating filter_entry's attribute with prot = eigrp
=== STEP testing contract by updating filter_entry's attribute with prot = ospfigp
=== STEP testing contract by updating filter_entry's attribute with prot = pim
=== STEP testing contract by updating filter_entry's attribute with prot = l2tp
=== STEP testing contract by updating filter_entry's attribute with prot = udp
=== STEP testing contract by updating filter_entry's attribute with prot = tcp
=== STEP testing contract by updating filter_entry's attribute with tcp_rules = syn
=== STEP testing contract by updating filter_entry's attribute with tcp_rules = ack
=== STEP testing contract by updating filter_entry's attribute with tcp_rules = fin
=== STEP testing contract by updating filter_entry's attribute with tcp_rules = rst
=== PAUSE TestAccAciContract_Update
=== RUN TestAccAciContract_NegativeCases
=== STEP testing contract creation with required arguments only
=== STEP Negative Case: testing contract creation with invalid tenant_dn
=== STEP testing contract updation with description = oxfurnna1bovqadd2i6b17ex60d6h3fzsyfd8mwi7vhycemmcgsytt7xp49ldz8j2absfjcmu04r2rrc2c4xne0md7u44i8fr8tdoov9pvoqvip7fgsf0oeq1kvvzdvrz
=== STEP testing contract updation with annotation = oxfurnna1bovqadd2i6b17ex60d6h3fzsyfd8mwi7vhycemmcgsytt7xp49ldz8j2absfjcmu04r2rrc2c4xne0md7u44i8fr8tdoov9pvoqvip7fgsf0oeq1kvvzdvrz
=== STEP testing contract updation with name_alias = imyfzmtpi8fgq89bvc1b2dyxvz8slcpgdsivy24mx01d3c7renjq0xma70jojocoa
=== STEP testing contract updation with prio = sim3s
=== STEP testing contract updation with target_dscp = sim3s
=== STEP testing contract updation with scope = sim3s
=== STEP testing contract updation with svxqx = sim3s
=== STEP testing contract's filter updation with description = oxfurnna1bovqadd2i6b17ex60d6h3fzsyfd8mwi7vhycemmcgsytt7xp49ldz8j2absfjcmu04r2rrc2c4xne0md7u44i8fr8tdoov9pvoqvip7fgsf0oeq1kvvzdvrz
=== STEP testing contract's filter updation with annotation = oxfurnna1bovqadd2i6b17ex60d6h3fzsyfd8mwi7vhycemmcgsytt7xp49ldz8j2absfjcmu04r2rrc2c4xne0md7u44i8fr8tdoov9pvoqvip7fgsf0oeq1kvvzdvrz
=== STEP testing contract's filter updation with name_alias = imyfzmtpi8fgq89bvc1b2dyxvz8slcpgdsivy24mx01d3c7renjq0xma70jojocoa
=== STEP testing contract's filter updation with svxqx = sim3s
=== STEP testing contract's filter creation with name = 1errum2bf2s8ss9totbezjcq7o2ms2xzjw6ukbettoshq1dx9tvzdirpkxb2t7hea
=== STEP testing contract's filter_entry creation with name = 1errum2bf2s8ss9totbezjcq7o2ms2xzjw6ukbettoshq1dx9tvzdirpkxb2t7hea
=== STEP testing contract by updating filter_entry's attribute with entry_annotation = oxfurnna1bovqadd2i6b17ex60d6h3fzsyfd8mwi7vhycemmcgsytt7xp49ldz8j2absfjcmu04r2rrc2c4xne0md7u44i8fr8tdoov9pvoqvip7fgsf0oeq1kvvzdvrz
=== STEP testing contract by updating filter_entry's attribute with entry_description = oxfurnna1bovqadd2i6b17ex60d6h3fzsyfd8mwi7vhycemmcgsytt7xp49ldz8j2absfjcmu04r2rrc2c4xne0md7u44i8fr8tdoov9pvoqvip7fgsf0oeq1kvvzdvrz
=== STEP testing contract by updating filter_entry's attribute with entry_name_alias = imyfzmtpi8fgq89bvc1b2dyxvz8slcpgdsivy24mx01d3c7renjq0xma70jojocoa
=== STEP testing contract by updating filter_entry's attribute with apply_to_frag = sim3s
=== STEP testing contract by updating filter_entry's attribute with arp_opc = sim3s
=== STEP testing contract by updating filter_entry's attribute with ether_t = sim3s
=== STEP testing contract by updating filter_entry's attribute with icmpv4_t = sim3s
=== STEP testing contract by updating filter_entry's attribute with icmpv6_t = sim3s
=== STEP testing contract by updating filter_entry's attribute with match_dscp = sim3s
=== STEP testing contract by updating filter_entry's attribute with prot = sim3s
=== STEP testing contract by updating filter_entry's attribute with stateful = sim3s
=== STEP testing contract by updating filter_entry's attribute with tcp_rules = sim3s
=== STEP testing contract by updating filter_entry's attribute with svxqx = sim3s
=== STEP testing contract by updating filter_entry's attribute with ether_t = ip
=== STEP testing contract by updating filter_entry's attribute with prot = tcp
=== STEP testing contract by updating filter_entry's attribute with d_from_port = 65536
=== STEP testing contract by updating filter_entry's attribute with d_to_port = 65536
=== STEP testing contract by updating filter_entry's attribute with s_from_port = 65536
=== STEP testing contract by updating filter_entry's attribute with s_to_port = 65536
=== STEP testing contract by updating filter_entry's attribute with arp_opc = req
=== STEP testing contract by updating filter_entry's attribute with arp_opc = reply
=== STEP testing contract by updating filter_entry's attribute with apply_to_frag = yes
=== STEP testing contract by updating filter_entry's attribute with prot = unspecified
=== STEP testing contract by updating filter_entry's attribute with d_from_port = http
=== STEP testing contract by updating filter_entry's attribute with d_to_port = http
=== STEP testing contract by updating filter_entry's attribute with ether_t = unspecified
=== STEP testing contract by updating filter_entry's attribute with tcp_rules = est
=== STEP testing contract creation with required arguments only
=== PAUSE TestAccAciContract_NegativeCases
=== RUN TestAccAciContract_MultipleCreateDestroy
=== STEP testing multiple contract creation with required arguments only
=== STEP testing contract destroy
--- PASS: TestAccAciContract_MultipleCreateDestroy (14.26s)
=== CONT TestAccAciContract_Update
=== CONT TestAccAciContract_NegativeCases
=== STEP testing contract destroy
--- PASS: TestAccAciContract_NegativeCases (228.44s)
=== STEP testing contract destroy
--- PASS: TestAccAciContract_Update (743.24s)
PASS
ok github.com/terraform-providers/terraform-provider-aci/testacc 862.257s
$ go test -v -run TestAccAciContractDataSource_Basic -timeout=60m
=== RUN TestAccAciContractDataSource_Basic
=== STEP Basic: testing contract data source creation without creating tenant
=== STEP Basic: testing contract data source creation without name
=== STEP Basic: testing contract data source creation with required arguments only
=== STEP Basic: testing contract data source creation with random attributes
=== STEP Basic: testing contract data source with updated resource
=== STEP Basic: testing contract data source with invalid name
=== STEP testing contract destroy
--- PASS: TestAccAciContractDataSource_Basic (34.09s)
PASS
ok github.com/terraform-providers/terraform-provider-aci/testacc 36.084s

harshthakkar_crest and others added 30 commits December 27, 2021 08:15
* Added acctest script for resource any

* Updated Test Script for Any resource

* update acctest any

Co-authored-by: atulsharma_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* initial commit for epg_to_static_path

* added negative cases and datasource for epg_to_static_path

* deleted old test files

Co-authored-by: harshthakkar_crest <[email protected]>
* imported_contract

* removed log

* updated imported contract

Co-authored-by: Kanchi Shukla <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* L3Outside Test Script

* updated l3outside

* updated l3outside_test

* updated l3outside_test

* updated epg_to_static_path docs

Co-authored-by: atulsharma_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
#22)

* updated l3_outside, testcase name, duplication message and added external_network_instance_profile

* updated name in subnet

Co-authored-by: harshthakkar_crest <[email protected]>
* Test Script for Logical Interface Profile

* updated logical_interface_profile

* removed older test file for logical_interface_profile

Co-authored-by: atulsharma_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* added testfiles for endpoint_security_group_selector

* modified data source

Co-authored-by: harshthakkar_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* Created_logical_node_profile

* modified package name and logical_node_profile

Co-authored-by: Kanchi Shukla <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* initial commit for l3extSubnet

* updated LogicalInterfaceProfile and added files for L3ExtSubnet

Co-authored-by: harshthakkar_crest <[email protected]>
* initial commit for contract

* added test cases for filter_entry in contract

* updated l3_ext_subnet

Co-authored-by: harshthakkar_crest <[email protected]>
#32)

* Added test support for hsrp interface policy and updated epg to contract & L3 out ospf interface profile

* Updated resource hsrpIfPol

Co-authored-by: hussainsadikot_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* added data_source and resource for aaa_domain

* final commit aaa_domain

* updated multiple create delete statement

Co-authored-by: harshthakkar_crest <[email protected]>
RutvikS-crest and others added 26 commits December 28, 2021 11:40
Co-authored-by: Kanchi Shukla <[email protected]>
* Script for Bgp Route Control Profile

* Updated Script bgp_route_control_profile

Co-authored-by: atulsharma_crest <[email protected]>
* initial commit for aci_l3out_hsrp_interface_group

* final commit for aci_l3out_hsrp_interface_group

* updated typo of argument

* initial commit for aci_l3out_hsrp_interface_group

* final commit for aci_l3out_hsrp_interface_group

* updated typo of argument

Co-authored-by: harshthakkar_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
* Resources pushed to repo

* Added support for L3out Floating SVI

* Updated Debug Message

Co-authored-by: hussainsadikot_crest <[email protected]>
…esource index file (#45)

Co-authored-by: harshthakkar_crest <[email protected]>
* added cases for group_id in l3out_hsrp_interface_group_updates

* updated negative test case for invalid parent dn

Co-authored-by: harshthakkar_crest <[email protected]>
* updated logic for invalid ip in hsrpsecvip

* update typo in invalid ip check of hsrpsecvip

Co-authored-by: harshthakkar_crest <[email protected]>
* initial commit for epg_to_domain

* added data source file for epg_to_domain and updated negative testcases for same

* updated to ProviderFactories

* updated resource index file

Co-authored-by: harshthakkar_crest <[email protected]>
Co-authored-by: harshthakkar_crest <[email protected]>
Co-authored-by: Vishwa Patel <[email protected]>
* added update without required arguement in epg_to_domain

* updated import block in resource index file of epg_to_domain

Co-authored-by: harshthakkar_crest <[email protected]>
* initial commit for hsrpifp

* added test script for hsrpifp

Co-authored-by: harshthakkar_crest <[email protected]>
Base automatically changed from s2-dev to acceptance-testing December 31, 2021 10:17
Base automatically changed from acceptance-testing to acc-test February 16, 2022 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant