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

UpdateSelector: tests #245

Merged
merged 20 commits into from
Apr 23, 2024
Merged

UpdateSelector: tests #245

merged 20 commits into from
Apr 23, 2024

Conversation

l0kix2
Copy link
Collaborator

@l0kix2 l0kix2 commented Apr 16, 2024

Fixes #211

Added the tests for each of the used selectors with checking which pods exactly was updated (and which are not).

@l0kix2 l0kix2 force-pushed the add_master_only_release branch 2 times, most recently from 535e74b to 0637d74 Compare April 17, 2024 07:36
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch from 1f18196 to f13a341 Compare April 17, 2024 07:38
@l0kix2 l0kix2 changed the title fix requeue UpdateStrategy: tests Apr 17, 2024
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch 5 times, most recently from a8161a3 to d6d1529 Compare April 18, 2024 09:10
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch 2 times, most recently from 3279513 to 35dd6d6 Compare April 18, 2024 10:01
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch from 35dd6d6 to afd8fc1 Compare April 18, 2024 10:02
@l0kix2 l0kix2 marked this pull request as ready for review April 18, 2024 10:52
@l0kix2 l0kix2 force-pushed the add_master_only_release branch 2 times, most recently from 120e794 to a9d88ae Compare April 18, 2024 15:12
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch from afd8fc1 to 1ad14fd Compare April 18, 2024 15:12
@l0kix2 l0kix2 changed the title UpdateStrategy: tests UpdateSelector: tests Apr 18, 2024
@l0kix2 l0kix2 requested a review from koct9i April 19, 2024 11:31
@l0kix2 l0kix2 force-pushed the add_master_only_release branch 2 times, most recently from 65666f2 to 7984dc0 Compare April 22, 2024 08:38
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch from 7483911 to c430733 Compare April 22, 2024 08:47
@@ -261,7 +260,156 @@ var _ = Describe("Basic test for Ytsaurus controller", func() {
"Should run and update Ytsaurus to the next major version",
getSimpleUpdateScenario("test-major-update", ytv1.CoreImageNextVer),
)
It(
"Should be updated according to UpdateSelector=Everything",
func(ctx context.Context) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Weird indentation. You can put It("description", func(...) {" into one line.

If linter complains about long line we can tweak it for tests.

Base automatically changed from add_master_only_release to main April 23, 2024 10:53
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch from c430733 to 2c096f9 Compare April 23, 2024 10:58
@l0kix2 l0kix2 force-pushed the add_master_only_release_tests branch from 2c096f9 to f784277 Compare April 23, 2024 10:59
@l0kix2 l0kix2 merged commit 072474e into main Apr 23, 2024
5 checks passed
@l0kix2 l0kix2 deleted the add_master_only_release_tests branch April 23, 2024 11:43
leo-astorsky pushed a commit to leo-astorsky/yt-k8s-operator that referenced this pull request Aug 13, 2024
* Add UpdateStrategy field

* Strategy = selector + flow

* Unspecified + flow comment

* regenerate

* Selectors impl

* Unspecified

* Strategy > Selector

* Selector & Flow

* UpdateStrategy implementation

* Strategy > Selector in impl

* Strategy > Selector in impl #2

* Split selector & flow

* Tests

* Support selector in tests

* Add exec nodes test

* Fix test

* Split tests

* Fix indentation

* Fix test after rebase

* Fix test after rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Implement master update without full update
2 participants