-
Notifications
You must be signed in to change notification settings - Fork 77
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
Catalog and LDAP tests fix #458
Conversation
…o VCD Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
…the Org catalog publishing bug Signed-off-by: Miguel Sama <msama@vmware.com>
Not sure if I should include changelog for this @lvirbalas @Didainius @vbauzysvmware @adambarreiro @datacharmer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I have ran catalog
test twice and it worked and also didn't clear down catalog publishing settings at Org level.
Yes, please. As this is purely testing, you can add to the IMPROVEMENTS section. LGTM, otherwise :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Just a changelog entry is needed.)
Signed-off-by: Miguel Sama <msama@vmware.com>
This PR is not associated with any issue.
Description
Fix issues with Catalog tests, as well as LDAP test framework.
Detailed description
This PR addresses two issues that were impacting tests.
Issues solved related Catalog
There were some Catalog tests that were not removing the CatalogItems being upload to Catalogs. These tests were leveraging the function
AddToCleanupList
to delete those CatalogItems. This was leading to issues because the clean-up function is executed at the end of the test framework, and other tests might not be aware about the changes being done there.The fix introduced here is to make every tests responsible of cleaning up whatever it has uploaded to Catalogs after the testing part has been done and right before the test returns. Hence, the
AddToCleanupList
function lays as last resort for cleaning-up the environment at the end of the tests if something fails.Issues solved related LDAP
Turns out that when configuring LDAP settings, for whatever reason, two Org catalog publishing vars gets disable (these are
Publish external catalogs
andSubscribe to external catalogs
). This is a know issue and VCD team is addressing it to be solved. This interference with more tests as it makes the environment non-consistent.In the meantime, this workaround what it does is, before doing any configuration, it grabs those two values, and when all LDAP testing sub-framework is closing up, is sets those vars again to the Org and finishes.
Tested and working in VCD 10.2.2 and 10.3.2