-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add support for LDAP and SAML groups #314
Conversation
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.
Overall looks good ;-)
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
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! Just a question about the reasons for a big timeout increase.
@@ -7,7 +7,7 @@ default: fmtcheck vet static build | |||
# test runs the test suite and vets the code | |||
test: testunit | |||
@echo "==> Running Functional Tests" | |||
cd govcd && go test -tags "functional" -timeout=200m -check.vv . | |||
cd govcd && go test -tags "functional" -timeout=300m -check.vv . |
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.
Please tell more why are you adding additional one hundred minutes to the timeout :)
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.
It is not related to this exact group PR. I did hit timeouts in general for full suite runs in slower envs that is why I increased the "default".
This PR adds support for Org group management by introducing the following methods:
Additionally it adds two new methods for
adminOrg
-LdapConfigure
andLdapDisable
to aid automated testing.Testing
Two tests
test_GroupCRUD
andtest_GroupFinderGetGenericEntity
are added. They are both are run from main testTest_LDAP
which sets up LDAP configuration in vCD - spawns Photon OS VM and uses testing LDAP container https://github.com/rroemhild/docker-test-openldap inside it (using customization scripts.Note. These tests will not work when run separately because LDAP configuration must be present.
Note. External network with valid IPs and DNS servers must be configured because guest will not be able to pull docker image otherwise.
make test
passed on 9.5 and 10.1. Also on 10.1 using SAML authentication (and enabling SAML group related tests intest_GroupCRUD
.