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 additional tests for kpt pkg update #1848

Merged
merged 2 commits into from
May 4, 2021

Conversation

mortent
Copy link
Contributor

@mortent mortent commented Apr 30, 2021

Adds two additional tests:

  • Verifies that a user can update the Upstream section of the Kptfile manually and then use the kpt pkg update command to actually update the package.
  • Tests handling of symlinks during update. It also addresses a problem with the test for symlinks with kpt pkg get.

@mortent mortent changed the title Test for manual update of the upstream section in Kptfile Add additional tests for kpt pkg update Apr 30, 2021
@mortent mortent added this to In Review in kpt kanban board May 3, 2021
@@ -815,6 +815,125 @@ func TestCommand_Run_failInvalidRef(t *testing.T) {
}
}

func TestCommand_Run_manualChange(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What if user changes Kptfile and also triggers cli command with different version ? Cli command takes precedence ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the information provided through flags will be written to the Kptfile and then we go through the update process same as if it was updated manually.

@mortent mortent merged commit 8719185 into kptdev:next May 4, 2021
kpt kanban board automation moved this from In Review to Done May 4, 2021
frankfarzan pushed a commit to frankfarzan/kpt that referenced this pull request Jun 3, 2021
* Test for manual update of the upstream section in Kptfile

* Test for symlinks in upstream package during updates
@mortent mortent deleted the AddManualUpstreamChangeTest branch June 11, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants