Skip to content
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

Merged
merged 9 commits into from
Mar 13, 2025

Conversation

alex0chan
Copy link
Contributor

Description of your changes

Generate provider resources and tests for artifactory user and group

Fixes #

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Name: &userName,
Email: ptr.To(email),
},
ResourceSpec: v1.ResourceSpec{

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jaswalkiranavtar
Copy link

jaswalkiranavtar commented Mar 12, 2025

we should also add examples for User and Group resources

Copy link

@jaswalkiranavtar jaswalkiranavtar left a 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) {
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

@amrcoder amrcoder left a 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?

Expect(err).NotTo(HaveOccurred())
// err = v1alpha1permission.AddToScheme(scheme)
Copy link
Contributor

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?

@ramekris3163
Copy link
Contributor

we should also add examples for User and Group resources

added examples.

@jeffw17 jeffw17 merged commit 0746fae into main Mar 13, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants