-
Notifications
You must be signed in to change notification settings - Fork 67
🌱 [Monorepo]: Move e2e tests from catalogd to operator-controller #1726
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
camilamacedo86
merged 3 commits into
operator-framework:main
from
camilamacedo86:catalogd-e2e
Feb 10, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
4679fed
[Monorepo]: Move e2e tests from catalogd to operator-controller
camilamacedo86 773d4a7
[Monorepo]: Move catalogd upgrade e2e tests to operator-controller an…
camilamacedo86 f0c952e
[Monorepo]: Delete catalogd/scripts/install.tpl.sh since it is no lon…
camilamacedo86 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 was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
catalogd/test/e2e/e2e_suite_test.go → test/catalogd-e2e/e2e_suite_test.go
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,4 +1,4 @@ | ||
package e2e | ||
package catalogde2e | ||
|
||
import ( | ||
"fmt" | ||
|
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,4 +1,4 @@ | ||
package e2e | ||
package catalogde2e | ||
|
||
import ( | ||
"context" | ||
|
@@ -79,7 +79,7 @@ var _ = Describe("ClusterCatalog Unpacking", func() { | |
actualFBC, err := ReadTestCatalogServerContents(ctx, catalog, c, kubeClient) | ||
Expect(err).To(Not(HaveOccurred())) | ||
|
||
expectedFBC, err := os.ReadFile("../../testdata/catalogs/test-catalog/expected_all.json") | ||
expectedFBC, err := os.ReadFile("../../catalogd/testdata/catalogs/test-catalog/expected_all.json") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We cannot move now the testdata/catalogs to the root because it will broke the sync: |
||
Expect(err).To(Not(HaveOccurred())) | ||
Expect(cmp.Diff(expectedFBC, actualFBC)).To(BeEmpty()) | ||
|
||
|
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,4 +1,4 @@ | ||
package e2e | ||
package catalogde2e | ||
|
||
import ( | ||
"context" | ||
|
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
catalogd/test/upgrade/upgrade_suite_test.go → ...atalogd-upgrade-e2e/upgrade_suite_test.go
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,4 +1,4 @@ | ||
package upgradee2e | ||
package catalogdupgradee2e | ||
|
||
import ( | ||
"os" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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.
If I'm reading the Makefile correctly, we have:
test-e2e
- runsoperator-controller
e2e onlycatalogd-e2e
- runscatalogd
e2e onlyI think we need some more clear separation between the e2e for the two components. I'd prefer this as a follow-up if we do change it, but IMO we should have:
test-e2e
- runs bothoperator-controller
andcatalogd
e2ecatalogd-e2e
- runscatalogd
e2e onlyoperator-controller-e2e
- runsoperator-controller
e2e onlyWe could then have the github actions run the
catalogd-e2e
andoperator-controller-e2e
in two separate jobs as it does now, but with slightly more clear job names. WDYT?Again though, don't do that on this PR if you agree, I think this one is big enough already :)
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.
HI @dtfranz
I also want :-) That is what I expected we have at some point:
But that needs to be follow ups.
We need to do step by step
We need to split. Otherwise, it is too much for a single go