Skip to content

Commit

Permalink
Merge pull request kubernetes#106226 from NikhilSharmaWe/betterOutput…
Browse files Browse the repository at this point in the history
…Lifecycle

Changed code to improve output for files under test/e2e/lifecycle
  • Loading branch information
k8s-ci-robot authored Nov 10, 2021
2 parents 91ff1f9 + fc0ec62 commit ebf6823
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/lifecycle/bootstrap/bootstrap_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package bootstrap

import (
"context"

"github.com/onsi/ginkgo"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -83,7 +84,9 @@ var _ = lifecycle.SIGDescribe("[Feature:BootstrapTokens]", func() {
cfgMap, err := f.ClientSet.CoreV1().ConfigMaps(metav1.NamespacePublic).Get(context.TODO(), bootstrapapi.ConfigMapClusterInfo, metav1.GetOptions{})
framework.ExpectNoError(err)
signedToken, ok := cfgMap.Data[bootstrapapi.JWSSignatureKeyPrefix+tokenID]
framework.ExpectEqual(ok, true)
if !ok {
framework.Failf("expected signed token with key %q not found in %+v", bootstrapapi.JWSSignatureKeyPrefix+tokenID, cfgMap.Data)
}

ginkgo.By("update the cluster-info ConfigMap")
originalData := cfgMap.Data[bootstrapapi.KubeConfigKey]
Expand Down

0 comments on commit ebf6823

Please sign in to comment.