Skip to content

Add tests for migration-manager #8

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
merged 11 commits into from
Dec 12, 2024
Merged

Add tests for migration-manager #8

merged 11 commits into from
Dec 12, 2024

Conversation

breml
Copy link
Contributor

@breml breml commented Dec 10, 2024

@stgraber , @gibmat
I added some first tests for the source command in migration-manager. For this I used the vCenter Simulator from https://github.com/vmware/govmomi/simulator for the connection test to the source. This works pretty well.

@breml breml added the wip label Dec 10, 2024
@breml breml requested a review from gibmat December 10, 2024 11:42
@breml breml force-pushed the migration-manager-tests branch 2 times, most recently from 47a658a to d710e92 Compare December 10, 2024 12:07
@stgraber
Copy link
Contributor

Can you split this PR up a bit into more commits?

I'd at likely have done:

  • internal/testcert: Copy from Go stdlib
  • golangci: Ignore internal/testcert
  • tests: Add go-generate-up-to-date
  • tests: Add generated files exception to newline-after-block
  • migration-manager: Refactor to aide with testing
  • migration-manager: Add initial tests
  • gomod: Refresh gomod

@breml breml force-pushed the migration-manager-tests branch from d710e92 to 7d390ab Compare December 10, 2024 16:32
@breml breml force-pushed the migration-manager-tests branch from 7d390ab to 4b29320 Compare December 11, 2024 10:18
@breml breml self-assigned this Dec 11, 2024
@breml breml requested a review from gibmat December 11, 2024 10:22
@breml breml force-pushed the migration-manager-tests branch 2 times, most recently from f737152 to 9233656 Compare December 11, 2024 15:53
@breml breml force-pushed the migration-manager-tests branch 2 times, most recently from 83ce777 to 9df76bc Compare December 12, 2024 09:27
@breml breml removed the wip label Dec 12, 2024
@breml breml requested a review from stgraber December 12, 2024 10:17
@breml breml force-pushed the migration-manager-tests branch 2 times, most recently from 851f816 to d5d5577 Compare December 12, 2024 10:34
Ensure generated code is up to date

Signed-off-by: Lucas Bremgartner <[email protected]>
Signed-off-by: Lucas Bremgartner <[email protected]>
Signed-off-by: Lucas Bremgartner <[email protected]>
@breml breml force-pushed the migration-manager-tests branch from d5d5577 to 29d8011 Compare December 12, 2024 15:55
for communication with sources

Signed-off-by: Lucas Bremgartner <[email protected]>
Add tests for error cases.
Remove unnecessary code in render CSV.

Signed-off-by: Lucas Bremgartner <[email protected]>
@breml breml force-pushed the migration-manager-tests branch from 29d8011 to 78e059f Compare December 12, 2024 15:59
@breml breml merged commit 826603b into main Dec 12, 2024
4 checks passed
@breml breml deleted the migration-manager-tests branch December 12, 2024 16:07
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.

3 participants