-
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
Simplify Test_LDAP #505
Simplify Test_LDAP #505
Conversation
* Remove VM and network creation from LDAP test * Replace ephemeral VM with permanent LDAP server in the testing VCD * Remove functions that were only used to create the VM for this test Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
First review, all good imho! I'll run the tests and then approve. |
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.
LGTM! One ask only: for our own reference please add the explanation "why" we're doing this change in PR description. Thanks!
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.
I ran the tests with the user
tag and all passed OK. They're much faster now that they don't spin-up the LDAP container. Thanks!
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.
Tests worked great. The only query I have is to remove Misc.LdapContainer
variable from TestConfig
struct and from sample_govcd_test_config.yml
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
This is similar to the change of
TestAccVcdOrgGroup
in PR-909The reason for this change is that what we are testing within TestLDAP is quite fast, but the preparation takes a long time, so much that we added a tag
skipLong
to avoid such test in given circumstances. Moreover, creating a LDAP server (which requires routing to the VM) would fail for environmental reasons that add nothing to our testing experience.The change requires a pre-set LDAP server, which is created only once per each VCD in a separate –automated– task, thus allowing us to test the intended feature without waiting for the server to be up.