Skip to content

Commit

Permalink
updated spire unit test based on grpc update
Browse files Browse the repository at this point in the history
Signed-off-by: pxp928 <parth.psu@gmail.com>
  • Loading branch information
pxp928 committed Feb 14, 2023
1 parent 1b21213 commit ae3cb57
Show file tree
Hide file tree
Showing 111 changed files with 4,013 additions and 3,571 deletions.
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ require (
github.com/google/gnostic v0.6.9 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.3.1 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
Expand Down Expand Up @@ -118,7 +119,7 @@ require (
)

require (
cloud.google.com/go/compute v1.14.0 // indirect
cloud.google.com/go/compute v1.15.1 // indirect
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d // indirect
contrib.go.opencensus.io/exporter/prometheus v0.4.0 // indirect
github.com/Azure/azure-sdk-for-go v67.3.0+incompatible // indirect
Expand Down Expand Up @@ -148,8 +149,8 @@ require (
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/blendle/zapdriver v1.3.1 // indirect
github.com/bluekeyes/go-gitdiff v0.7.0 // indirect
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chrismellard/docker-credential-acr-env v0.0.0-20221002210726-e883f69e0206 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.12.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand All @@ -173,7 +174,6 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-containerregistry/pkg/authn/kubernetes v0.0.0-20221017135236-9b4fdd506cdd // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
Expand Down Expand Up @@ -217,8 +217,8 @@ require (
golang.org/x/tools v0.5.0 // indirect
google.golang.org/api v0.107.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 // indirect
google.golang.org/grpc v1.51.0
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.28.1
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
23 changes: 13 additions & 10 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/spire/spire_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func TestTaskRunSign(t *testing.T) {

cfg := &config.SpireConfig{}
cfg.SocketPath = wl.Addr()
cfg.ServerAddr = "notImplemented"
cfg.TrustDomain = trustDomain

cc := GetControllerAPIClient(ctx)
Expand Down Expand Up @@ -105,6 +106,7 @@ func TestCheckSpireVerifiedFlag(t *testing.T) {

cfg := &config.SpireConfig{}
cfg.SocketPath = wl.Addr()
cfg.ServerAddr = "notImplemented"
cfg.TrustDomain = trustDomain

cc := GetControllerAPIClient(ctx)
Expand Down Expand Up @@ -145,6 +147,7 @@ func TestCheckHashSimilarities(t *testing.T) {

cfg := &config.SpireConfig{}
cfg.SocketPath = wl.Addr()
cfg.ServerAddr = "notImplemented"
cfg.TrustDomain = trustDomain

cc := GetControllerAPIClient(ctx)
Expand Down Expand Up @@ -199,6 +202,7 @@ func TestCheckTamper(t *testing.T) {

cfg := &config.SpireConfig{}
cfg.SocketPath = wl.Addr()
cfg.ServerAddr = "notImplemented"
cfg.TrustDomain = trustDomain

cc := GetControllerAPIClient(ctx)
Expand Down Expand Up @@ -360,6 +364,7 @@ func TestBadPodIdentity(t *testing.T) {

cfg := &config.SpireConfig{}
cfg.SocketPath = wl.Addr()
cfg.ServerAddr = "notImplemented"
cfg.TrustDomain = trustDomain

ec := NewEntrypointerAPIClient(cfg)
Expand Down Expand Up @@ -406,6 +411,7 @@ func TestSignTaskRunResults(t *testing.T) {

cfg := &config.SpireConfig{
SocketPath: wl.Addr(),
ServerAddr: "notImplemented",
TrustDomain: trustDomain,
}

Expand Down Expand Up @@ -453,6 +459,7 @@ func TestTaskRunResultsSignTamper(t *testing.T) {

cfg := &config.SpireConfig{}
cfg.SocketPath = wl.Addr()
cfg.ServerAddr = "notImplemented"
cfg.TrustDomain = trustDomain

ec := NewEntrypointerAPIClient(cfg)
Expand Down
2 changes: 1 addition & 1 deletion vendor/cloud.google.com/go/compute/internal/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ae3cb57

Please sign in to comment.