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

🌱 Add File and RuleSet API tests #410

Merged
merged 4 commits into from
Jun 22, 2023
Merged

Conversation

aufi
Copy link
Member

@aufi aufi commented Jun 19, 2023

Moving File and RuleSet-related functions from addon package to binding package and adding basic API tests for both.

Related to konveyor/go-konveyor-tests#2

Moving File and RuleSet-related functions from addon package to binding package and adding
basic API tests for both.

Related to konveyor/go-konveyor-tests#2

Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi aufi added the test/api Hub API tests-related work label Jun 19, 2023
Signed-off-by: Marek Aufart <maufart@redhat.com>
addon/adapter.go Outdated
//
// Setting client in binding package via setter method.
adapter.File.SetClient(client)
adapter.RuleSet.SetClient(client)
Copy link
Member Author

@aufi aufi Jun 19, 2023

Choose a reason for hiding this comment

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

Since client is not available outside the package (binding in this case), I added SetClient methods to allow set the client from addon package. Expecting its deletion when addon is migrated to binding.

Copy link
Contributor

@jortel jortel Jun 21, 2023

Choose a reason for hiding this comment

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

In the binding package, we could just make the client in all of the endpoint handlers public instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, we can, will update.

@aufi aufi requested a review from jortel June 19, 2023 12:29
aufi added 2 commits June 22, 2023 09:24
Signed-off-by: Marek Aufart <maufart@redhat.com>
Signed-off-by: Marek Aufart <maufart@redhat.com>
Copy link
Contributor

@jortel jortel left a comment

Choose a reason for hiding this comment

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

LGTM

@aufi aufi merged commit e7a5936 into konveyor:main Jun 22, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test/api Hub API tests-related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants