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

Improve Test_InsertOrEjectMedia, address gosec issues #608

Merged
merged 12 commits into from
Aug 17, 2023

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Aug 17, 2023

This PR improves Test_InsertOrEjectMedia which sometimes fails.
The reason is - in rare cases VCD lags to update VM structure after media is ejected. The hardware item still persists. In my experimentation, this could happen once in 6-8hours when the test is run in a loop.

Additionally:

  • Addresses new gosec reported issues
  • Bumps GitHub actions to use Go 1.21 by default

Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius marked this pull request as ready for review August 17, 2023 05:34
@Didainius Didainius removed the request for review from adambarreiro August 17, 2023 05:42
govcd/vm_test.go Outdated Show resolved Hide resolved
govcd/vm_test.go Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius changed the title Improve Test_InsertOrEjectMedia Improve Test_InsertOrEjectMedia, address gosec issues Aug 17, 2023
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius merged commit 54ccef7 into vmware:main Aug 17, 2023
@Didainius Didainius deleted the improve_test branch August 17, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants