Skip to content

Commit f92f4c5

Browse files
author
Jan Sternagel
committed
Can't remove backend yet, due to missing kms v0.5.1 support
1 parent b63c674 commit f92f4c5

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

internal/cmd/beta/kms/key/create/create_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ import (
1616
)
1717

1818
const (
19-
testRegion = "eu01"
20-
)
21-
22-
type testCtxKey struct{}
23-
24-
var (
25-
testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
26-
testClient = &kms.APIClient{}
27-
testProjectId = uuid.NewString()
28-
testKeyRingId = uuid.NewString()
19+
testRegion = "eu01"
2920
testAlgorithm = "some_rsa_2048"
3021
testDisplayName = "my-key"
3122
testPurpose = "asymmetric_encrypt_decrypt"
@@ -34,6 +25,15 @@ var (
3425
testBackend = "notSoftware"
3526
)
3627

28+
type testCtxKey struct{}
29+
30+
var (
31+
testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
32+
testClient = &kms.APIClient{}
33+
testProjectId = uuid.NewString()
34+
testKeyRingId = uuid.NewString()
35+
)
36+
3737
// Flags
3838
func fixtureFlagValues(mods ...func(flagValues map[string]string)) map[string]string {
3939
flagValues := map[string]string{

internal/cmd/beta/kms/wrappingkey/create/create_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ import (
1616
)
1717

1818
const (
19-
testRegion = "eu01"
20-
)
21-
22-
type testCtxKey struct{}
23-
24-
var (
25-
testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
26-
testClient = &kms.APIClient{}
27-
testProjectId = uuid.NewString()
28-
testKeyRingId = uuid.NewString()
19+
testRegion = "eu01"
2920
testAlgorithm = "some_rsa_2048"
3021
testDisplayName = "my-key"
3122
testPurpose = "asymmetric_encrypt_decrypt"
3223
testDescription = "my key description"
3324
testBackend = "notSoftware"
3425
)
3526

27+
type testCtxKey struct{}
28+
29+
var (
30+
testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
31+
testClient = &kms.APIClient{}
32+
testProjectId = uuid.NewString()
33+
testKeyRingId = uuid.NewString()
34+
)
35+
3636
// Flags
3737
func fixtureFlagValues(mods ...func(flagValues map[string]string)) map[string]string {
3838
flagValues := map[string]string{

0 commit comments

Comments
 (0)