As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 5e2be298 authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Ensure build tags are used when testing

parent 3c500091
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -65,10 +65,10 @@ test_ruby:
bundle exec rspec --color --format d spec
test_golang:
go test -cover -coverprofile=cover.out -count 1 ./...
go test -cover -coverprofile=cover.out -count 1 -tags "$(BUILD_TAGS)" ./...
test_golang_fancy: ${GOTESTSUM_FILE}
@./${GOTESTSUM_FILE} --junitfile ./cover.xml --format pkgname -- -coverprofile=./cover.out -covermode=atomic -count 1 ./...
@./${GOTESTSUM_FILE} --junitfile ./cover.xml --format pkgname -- -coverprofile=./cover.out -covermode=atomic -count 1 -tags "$(BUILD_TAGS)" ./...
${GOTESTSUM_FILE}:
mkdir -p $(shell dirname ${GOTESTSUM_FILE})
Loading
Loading
Loading
Loading
@@ -134,6 +134,7 @@ func TestRunGitalyCommandMetadata(t *testing.T) {
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
cmd := tt.gc
Loading
Loading
Loading
Loading
@@ -29,6 +29,7 @@ func (*OSGSSAPIServer) AcceptSecContext([]byte) ([]byte, string, bool, error) {
func (*OSGSSAPIServer) VerifyMIC([]byte, []byte) error {
return errors.New("gssapi is unsupported")
}
func (*OSGSSAPIServer) DeleteSecContext() error {
return errors.New("gssapi is unsupported")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment