-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: Add metadata and status helpers to Kyma type #2179
base: main
Are you sure you want to change the base?
Conversation
3f06f47
to
49690d4
Compare
c6d35b6
to
c440351
Compare
c440351
to
67e281c
Compare
@@ -0,0 +1,208 @@ | |||
package v1beta2_test |
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 we add this pkg to the coverage file?
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 am afraid this can't be done easily. The api module is not included in our unittests make target as we only list the package from lifecycle-manager. If you don't mind, I would propose to tackle this in a follow-up as we will require some chnages to support that I think.
.PHONY: unittest
unittest: ## Run the unit test suite.
go test `go list ./... | grep -v /tests/` -coverprofile cover.out -coverpkg=./...
@@ -8,6 +8,8 @@ require ( | |||
sigs.k8s.io/controller-runtime v0.19.4 | |||
) | |||
|
|||
require github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect |
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.
Any idea were these indirect dep changes are coming from?
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.
From adding testify/assert.
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.
Commented for some clarifications 🙌
api/go.mod
Outdated
@@ -31,6 +33,7 @@ require ( | |||
github.com/modern-go/reflect2 v1.0.2 // indirect | |||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | |||
github.com/pkg/errors v0.9.1 // indirect | |||
github.com/stretchr/testify v1.10.0 |
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.
Why is testify in the block of indirect dependencies?
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.
Good catch, fixed now.
Description
Changes proposed in this pull request:
-adds helper functions to the Kyma type
Related issue(s)