Closed samiib closed 11 months ago
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
324327f
) 35.32% compared to head (c6a7c6c
) 96.25%.
Files | Patch % | Lines |
---|---|---|
plugins/modules/aci_rest.py | 93.75% | 0 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
cm_add_tenant.proposed.fvTenant.attributes.annotation == "orchestrator:ansible" check is failing.
@sajagana This check in the xml_string tests should be fixed now.
Also update the
tests/integration/targets/aci_rest/tasks/error_handling.yml
task:- name: Verify error_on_input_validation
- - "error_on_input_validation.msg == 'APIC Error 801: property descr of tn-ansible_test failed validation for value \\'This is an [invalid] description\\''" + - "error_on_input_validation.msg == 'APIC Error 801: property descr of uni/tn-ansible_test failed validation for value \\'This is an [invalid] description\\''"
@sajagana, Not sure about this one because the test was passing when I ran it myself. Just wondering which APIC did you use to test on?
Also update the
tests/integration/targets/aci_rest/tasks/error_handling.yml
task:- name: Verify error_on_input_validation
- - "error_on_input_validation.msg == 'APIC Error 801: property descr of tn-ansible_test failed validation for value \\'This is an [invalid] description\\''" + - "error_on_input_validation.msg == 'APIC Error 801: property descr of uni/tn-ansible_test failed validation for value \\'This is an [invalid] description\\''"
@sajagana, Not sure about this one because the test was passing when I ran it myself. Just wondering which APIC did you use to test on?
I'm seeing the same error now when running tests ( did not see runs before ). On november 28th the APICs where upgraded as I recall, perhaps the return message has changed?
Also update the
tests/integration/targets/aci_rest/tasks/error_handling.yml
task:- name: Verify error_on_input_validation
- - "error_on_input_validation.msg == 'APIC Error 801: property descr of tn-ansible_test failed validation for value \\'This is an [invalid] description\\''" + - "error_on_input_validation.msg == 'APIC Error 801: property descr of uni/tn-ansible_test failed validation for value \\'This is an [invalid] description\\''"
@sajagana, Not sure about this one because the test was passing when I ran it myself. Just wondering which APIC did you use to test on?
I'm seeing the same error now when running tests ( did not see runs before ). On november 28th the APICs where upgraded as I recall, perhaps the return message has changed?
@sajagana & @akinross
I have updated my branch with the latest changes from master and have been able to reproduce the failed assertion.
It appears the error message has changed between different versions of APIC. Some versions include uni/
in the error and other versions don't.
To account for this difference I changed the assertion to use a simple regex so the test will pass for this message variation.
fixes #437