diff --git a/cmd/verify_test.go b/cmd/verify_test.go index d94cefaa..c4e08311 100644 --- a/cmd/verify_test.go +++ b/cmd/verify_test.go @@ -37,6 +37,7 @@ import ( "github.com/in-toto/go-witness/signer/file" "github.com/in-toto/witness/options" "github.com/stretchr/testify/require" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func TestRunVerifyCA(t *testing.T) { @@ -313,7 +314,7 @@ func makepolicy(t *testing.T, functionary policy.Functionary, publicKey policy.P } p := policy.Policy{ - Expires: time.Now().Add(1 * time.Hour), + Expires: metav1.Time{Time: time.Now().Add(1 * time.Hour)}, PublicKeys: map[string]policy.PublicKey{}, Steps: map[string]policy.Step{}, } diff --git a/go.mod b/go.mod index 759e26cf..894b6a05 100644 --- a/go.mod +++ b/go.mod @@ -9,6 +9,7 @@ require ( github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.15.0 github.com/stretchr/testify v1.8.4 + k8s.io/apimachinery v0.26.11 ) require ( @@ -103,7 +104,6 @@ require ( gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apimachinery v0.26.11 // indirect k8s.io/klog/v2 v2.90.0 // indirect k8s.io/utils v0.0.0-20230115233650-391b47cb4029 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect