-
Notifications
You must be signed in to change notification settings - Fork 0
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
Provider artifactory user and group #4
Provider artifactory user and group #4
Conversation
Signed-off-by: Jeffrey Wong <[email protected]>
Signed-off-by: Jeffrey Wong <[email protected]>
… as it is deprecated Signed-off-by: Jeffrey Wong <[email protected]>
Signed-off-by: Alex <[email protected]>
Signed-off-by: Alex <[email protected]>
Signed-off-by: Alex <[email protected]>
Signed-off-by: Alex <[email protected]>
Name: &userName, | ||
Email: ptr.To(email), | ||
}, | ||
ResourceSpec: v1.ResourceSpec{ |
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.
We should also add a password here
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.
done
we should also add examples for User and Group resources |
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.
Lets add an example CR and add a password in the CreateUser test
Expect(retrievedUser.Email).To(Equal(email)) | ||
}) | ||
|
||
AfterEach(func(ctx SpecContext) { |
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.
Do we also clean up the group resource created in these tests somewhere?
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.
Yes it is cleaned up in the DeferCleanup block which runs in every test case.
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.
Could you please add examples for user and group resources?
e2e/e2e_suite_test.go
Outdated
Expect(err).NotTo(HaveOccurred()) | ||
// err = v1alpha1permission.AddToScheme(scheme) |
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.
Can this be removed from here?
added examples. |
Description of your changes
Generate provider resources and tests for artifactory user and group
Fixes #
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested