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 integration tests for etc-snapshot server flags and refactor /tests/integration/integration.go/K3sStartServer #7300

Merged
merged 1 commit into from Apr 28, 2023

Conversation

osodracnai
Copy link
Contributor

Proposed Changes

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to receive as argument a string slice instead of a variadic arg and stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Types of Changes

Verification

Testing

sudo -E env "PATH=$PATH" go test ./tests/integration/...

Linked Issues

#6057

User-Facing Change

NONE

Further Comments

@osodracnai osodracnai requested a review from a team as a code owner April 17, 2023 19:48
@dereknola dereknola self-assigned this Apr 17, 2023
@osodracnai osodracnai force-pushed the etcdsnapshot-integration-test branch 3 times, most recently from 7df5064 to 1ac4c84 Compare April 18, 2023 17:51
…ts/integration/integration.go/K3sStartServer

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
@osodracnai osodracnai force-pushed the etcdsnapshot-integration-test branch from 1ac4c84 to dbd006f Compare April 19, 2023 16:49
Copy link
Collaborator

@cwayne18 cwayne18 left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@osodracnai osodracnai merged commit 1ac03aa into k3s-io:master Apr 28, 2023
6 checks passed
osodracnai added a commit to osodracnai/k3s that referenced this pull request Apr 28, 2023
…ts/integration/integration.go/K3sStartServer (k3s-io#7300)

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 1ac03aa)
osodracnai added a commit to osodracnai/k3s that referenced this pull request Apr 28, 2023
…ts/integration/integration.go/K3sStartServer (k3s-io#7300)

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 1ac03aa)
osodracnai added a commit to osodracnai/k3s that referenced this pull request Apr 28, 2023
…ts/integration/integration.go/K3sStartServer (k3s-io#7300)

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 1ac03aa)
osodracnai added a commit that referenced this pull request May 2, 2023
…ts/integration/integration.go/K3sStartServer (#7300)

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 1ac03aa)
osodracnai added a commit that referenced this pull request May 2, 2023
…ts/integration/integration.go/K3sStartServer (#7300)

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 1ac03aa)
osodracnai added a commit that referenced this pull request May 2, 2023
…ts/integration/integration.go/K3sStartServer (#7300) (#7377)

This adds integration tests for the following flags: "--etcd-snapshot-name","--etcd-snapshot-dir","--etcd-snapshot-retention","--etcd-snapshot-schedule-cron" and "--etcd-snapshot-compress". It also refactors K3sStartServer to stop applying strings.Fields() into inputArgs, so it can accept arguments that have space in their definition.

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 1ac03aa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants