Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Add E2E test for Chocolatey package for PR changes #2232

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

karuppiah7890
Copy link
Contributor

@karuppiah7890 karuppiah7890 commented Oct 13, 2021

What this PR does / why we need it

Fixes #2229

The test checks

  • TCE installation using Chocolatey
  • TCE uninstallation using Chocolatey

Details for the Release Notes

E2E test for PR changes to Chocolatey package

Which issue(s) this PR fixes

Fixes: #2229

Describe testing done for PR

Sample pipelines testing the script are here -

https://github.com/karuppiah7890/community-edition/runs/3881589631

https://github.com/karuppiah7890/community-edition/runs/3871557248

Special notes for your reviewer

I have some more ideas to improve this E2E test. Let me know what you folks think -

  • In packpush.ps1, we can add a feature to override the local directory it pushes the chocolatey package to. Currently it pushes to one directory -
    choco push --source ${HOME}\tce-pkg
    We can add the ${HOME}\tce-pkg as a default and allow overrides. With the directory path override feature in place, in the E2E tests we can use a temporary directory to push the chocolatey package to and use that temporary directory for installation too. This can keep the E2E test related files in a separate place not affecting the user's / developer's workflow of using ${HOME}\tce-pkg by default for their manual testing etc.

The test checks
- TCE installation
- TCE uninstallation

Signed-off-by: Karuppiah Natarajan <karuppiahn@vmware.com>
@karuppiah7890 karuppiah7890 requested a review from a team as a code owner October 13, 2021 09:32
@github-actions github-actions bot added the owner/release-eng Work executed by VMware release engineering team label Oct 13, 2021
Copy link
Contributor

@nrb nrb left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for this!

@nrb nrb merged commit 97feac0 into vmware-tanzu:main Oct 19, 2021
@karuppiah7890 karuppiah7890 deleted the chocolatey-package-e2e branch October 20, 2021 02:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-not-required owner/release-eng Work executed by VMware release engineering team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automated test for Chocolatey package as part of PR changes
3 participants