forked from hashicorp/go-kms-wrapping
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rework GitHub workflow tests Many of these were testing the go-kms-wrapping/kms package, which is unused in OpenBao and thus slated for removal in a future PR. Signed-off-by: Alexander Scheel <[email protected]> * Add test target to Makefile Each wrapper operates in a separate module space and thus isn't captured by `go test ./...`. Signed-off-by: Alexander Scheel <[email protected]> * Remove linting as main protobuf predates linting Fixing this would require changing many publicly accessible constants, which would break many usages (in OpenBao). Signed-off-by: Alexander Scheel <[email protected]> --------- Signed-off-by: Alexander Scheel <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
test: | ||
go test ./... $(TESTARGS) | ||
cd entropy && go test ./... $(TESTARGS) | ||
cd plugin && go test ./... $(TESTARGS) | ||
cd wrappers/aead && go test ./... $(TESTARGS) | ||
cd wrappers/alicloudkms && go test ./... $(TESTARGS) | ||
cd wrappers/awskms && go test ./... $(TESTARGS) | ||
cd wrappers/azurekeyvault && go test ./... $(TESTARGS) | ||
cd wrappers/gcpckms && go test ./... $(TESTARGS) | ||
cd wrappers/huaweicloudkms && go test ./... $(TESTARGS) | ||
cd wrappers/ocikms && go test ./... $(TESTARGS) | ||
cd wrappers/tencentcloudkms && go test ./... $(TESTARGS) | ||
cd wrappers/transit && go test ./... $(TESTARGS) | ||
|
||
.PHONY: proto | ||
proto: | ||
find . -type f -name "*.pb.go" -delete | ||
# buf lint | ||
buf generate | ||
buf format -w | ||
|
||
# inject classification tags (see: https://github.com/hashicorp/go-eventlogger/tree/main/filters/encrypt) | ||
@protoc-go-inject-tag -input=./github.com.openbao.go.kms.wrapping.v2.types.pb.go | ||
|
||
.PHONY: proto | ||
|
||
|
||
.PHONY: tools | ||
tools: | ||
tools: | ||
go install github.com/favadi/[email protected] | ||
go install github.com/bufbuild/buf/cmd/[email protected] |