Skip to content

Commit b08eaa1

Browse files
committed
e2e: use the new config action for tokenmasking tests
Signed-off-by: Stanislav Láznička <slznika@microsoft.com>
1 parent 9859893 commit b08eaa1

File tree

8 files changed

+6
-112
lines changed

8 files changed

+6
-112
lines changed

test/e2e/tokenmasking.go

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ import (
2020
"bufio"
2121
"context"
2222
"fmt"
23+
"strings"
24+
"testing"
25+
2326
"github.com/brancz/kube-rbac-proxy/test/kubetest"
2427
corev1 "k8s.io/api/core/v1"
2528
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2629
"k8s.io/client-go/kubernetes"
27-
"strings"
28-
"testing"
2930
)
3031

3132
func testTokenMasking(client kubernetes.Interface) kubetest.TestSuite {
@@ -40,16 +41,9 @@ func testTokenMasking(client kubernetes.Interface) kubetest.TestSuite {
4041
`,
4142

4243
Given: kubetest.Actions(
43-
kubetest.CreatedManifests(
44-
client,
45-
"tokenmasking/clusterRole.yaml",
46-
"tokenmasking/clusterRoleBinding.yaml",
47-
"tokenmasking/deployment.yaml",
48-
"tokenmasking/service.yaml",
49-
"tokenmasking/serviceAccount.yaml",
50-
"tokenmasking/clusterRole-client.yaml",
51-
"tokenmasking/clusterRoleBinding-client.yaml",
52-
),
44+
kubetest.NewBasicKubeRBACProxyTestConfig().
45+
UpdateFlags(map[string]string{"logtostderr": "true"}).
46+
Launch(client),
5347
),
5448
When: kubetest.Actions(
5549
kubetest.PodsAreReady(

test/e2e/tokenmasking/clusterRole-client.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/e2e/tokenmasking/clusterRole.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/e2e/tokenmasking/clusterRoleBinding-client.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

test/e2e/tokenmasking/clusterRoleBinding.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/e2e/tokenmasking/deployment.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

test/e2e/tokenmasking/service.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/e2e/tokenmasking/serviceAccount.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)