Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Bressi <[email protected]>
  • Loading branch information
puffitos committed Sep 14, 2024
1 parent 9cfc6af commit 3eb2a0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions test/framework/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func (f *Framework) Cleanup(t testing.TB) {
// cleanupDeployments removes all deployments from the testing namespace
// if they exist
func (f *Framework) cleanupDeployments(t testing.TB) {

if f.k8s == nil {
t.Logf("k8s client is nil")
return
Expand Down Expand Up @@ -104,7 +103,6 @@ func (f *Framework) cleanupDeployments(t testing.TB) {

// cleanupSecrets removes all secrets from the testing namespace
func (f *Framework) cleanupSecrets(t testing.TB) {

if f.k8s == nil {
t.Logf("k8s client is nil")
return
Expand Down
5 changes: 3 additions & 2 deletions test/framework/cosign.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"github.com/sigstore/cosign/v2/cmd/cosign/cli/importkeypair"
"github.com/sigstore/cosign/v2/cmd/cosign/cli/options"
"os"
"regexp"
"testing"
"time"

"github.com/sigstore/cosign/v2/cmd/cosign/cli/importkeypair"
"github.com/sigstore/cosign/v2/cmd/cosign/cli/options"

"github.com/sigstore/cosign/v2/cmd/cosign/cli"
"github.com/sigstore/cosign/v2/cmd/cosign/cli/sign"
)
Expand Down
2 changes: 0 additions & 2 deletions test/framework/cosign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ func TestFramework_CreateRSAKeyPair(t *testing.T) {
if err != nil || coPubStat.Size() == 0 {
t.Fatal("failed to create cosign public key")
}

})
}
}

// TestFramework_SignContainer_RSA generates an RSA keypair and signs a container image
// with the private key. The key is generated using the CreateRSAKeyPair function.
func TestFramework_SignContainer_RSA(t *testing.T) {

if os.Getenv("COSIGN_INTEGRATION") == "" {
t.Skip()
}
Expand Down

0 comments on commit 3eb2a0e

Please sign in to comment.