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

Fix Go Tests for V2 #392

Merged
merged 3 commits into from Oct 27, 2022
Merged

Fix Go Tests for V2 #392

merged 3 commits into from Oct 27, 2022

Conversation

claire-labry
Copy link
Contributor

@claire-labry claire-labry commented Oct 27, 2022

Being new to this codebase, it was brought to my attention that the go-tests weren't properly testing the packages used (i.e. gcs and s3) This PR fixes that by adding s3, gcs, and top-level go-tests and they are being run properly now. Some of the changes to the s3 and gcs test files were borrowed from the updates that Security made in the main version of go-getter.

update test s3 bucket name

let see if s3 tests work now

try matrix for multiple directories

try to fix GCS tests

move go tests after GCS auth

Revert "move go tests after GCS auth"

This reverts commit 7adfd47.

move go tests after GCS auth

comment out other workflows

go mod tidy

go mod tidy

comment out go cmd for now

Revert "go mod tidy"

This reverts commit 416722c.

remove helper directory

revert go mod

add go cmd

go mod tidy for GCS

go mod tidy for cmd
Copy link
Member

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the quick fix.

}
return func() {}
}
// Note for external contributors: In order to run the GCS test suite, you will only be able to be run
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@@ -9,11 +9,9 @@ replace (
)

require (
github.com/cheggaaa/pb v1.0.28
github.com/fatih/color v1.9.0 // indirect
github.com/cheggaaa/pb v1.0.29
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for addressing. I have this change in the 1.18 PR.

@claire-labry claire-labry merged commit 049d4d0 into v2 Oct 27, 2022
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

2 participants