-
Notifications
You must be signed in to change notification settings - Fork 38
test: E2E for Work-API #1 #246
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2141b6a
Initial Commit
aagusuab 6b36414
edits from the comments
aagusuab ec33ada
Pushing changes based on comments
aagusuab 8ec22a6
lint fix
aagusuab 0cd18fa
Removing one of the namespaces for duplicate namespace error
aagusuab 5e0c348
lint fixes
aagusuab 9380dcc
debug + fixed the error
aagusuab 714fa65
debug + fixed the error
aagusuab e8032d2
lint fix
aagusuab 361a143
debugging
aagusuab 88607f9
more formatting
aagusuab 1978699
more formatting
aagusuab 85ec2b5
fixes based on comments
aagusuab f29b8e5
fixes based on comments
aagusuab 952ea65
fixes based on comments / Before adding more.
aagusuab 2b1ad7b
addressed all the comments.
aagusuab 68f0641
lint checks
aagusuab adab939
fixes from comments
aagusuab 1f9e6db
Added comment for expectation
aagusuab e66112b
using .string() for namesapceType for easier readability, and removed…
aagusuab 3a85194
removing a period
aagusuab 56b2590
added more validation
aagusuab d16123b
fixed the validation
aagusuab 69a0441
fix comment + import
aagusuab 05216b2
add error handling
aagusuab 403d2f8
import lint fix
aagusuab 4bcb9f3
removing some things that weren't there
aagusuab cd29a19
Added comment for GenerateSpecHash
aagusuab ed8d58d
edited comment for generateSpecHash
aagusuab 019d8a0
fixed based on comments.
aagusuab c018ce4
ensuring the MemberCluster CR is deleted.
aagusuab 4a88163
lint fix
aagusuab b76a09a
go update to fix vulnerability
aagusuab 4c7f8ea
trying changing just the trivy
aagusuab c23c8de
undoing trivy +updating specific module
aagusuab ab70608
updating go.mod
aagusuab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/e2e/manifests/test-configmap.ns.yaml → test/e2e/manifests/test-configmap2.ns.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: test-configmap | ||
| name: test-configmap2 | ||
| namespace: test-namespace | ||
| data: | ||
| fielda: one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: test-configmap2 | ||
| namespace: default | ||
| data: | ||
| fielda: one | ||
| fieldb: two | ||
| fieldc: three |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ apiVersion: v1 | |
| kind: ServiceAccount | ||
| metadata: | ||
| name: test-serviceaccount | ||
| namespace: default | ||
| namespace: default | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This probably belongs to the work api E2E 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.
What we discussed was that we can move the namespace creation to work-api-e2e test since this namespace only belongs to the work-api testing.
However, when we are creating Hub and Member for testing, the works will be created in a specific namespace defined by the work-api on the hubCluster (Hence the workNamespace).
Therefore, we cannot create multiple namespaces for works, and we will be using one single namespace for the entire work-api test.
The WorkResource namespace however, I will move it to the work-api-e2e-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.
I wonder if it is possible to separate out the work-api e2e setup from the fleet e2e (which includes hub/member cluster join/leave and placement) setup. In this way, we can create any number of namespaces for works