Skip to content

Commit

Permalink
remove indent vioration of tab
Browse files Browse the repository at this point in the history
  • Loading branch information
kurochan committed Jan 5, 2023
1 parent c012fe0 commit d0cae68
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions pkg/app/piped/executor/kubernetes/kubernetes_test.go
Expand Up @@ -601,7 +601,7 @@ metadata:
name: canary-by-config-change
data:
two: "2"
`,
`,
expected: `
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -645,7 +645,7 @@ metadata:
name: canary-by-config-change
data:
two: "2"
`,
`,
},
{
name: "multiple configs",
Expand Down Expand Up @@ -704,7 +704,7 @@ metadata:
type: my-type
data:
"one": "Mg=="
`,
`,
expected: `
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -762,7 +762,7 @@ metadata:
type: my-type
data:
"one": "Mg=="
`,
`,
},
}

Expand Down
12 changes: 6 additions & 6 deletions pkg/app/piped/platformprovider/kubernetes/deployment_test.go
Expand Up @@ -61,7 +61,7 @@ spec:
- server
ports:
- containerPort: 9085
`,
`,
expected: nil,
},
{
Expand Down Expand Up @@ -100,7 +100,7 @@ spec:
- name: config
configMap:
name: canary-by-config-change
`,
`,
expected: []string{
"canary-by-config-change",
},
Expand Down Expand Up @@ -164,7 +164,7 @@ spec:
- name: config2
configMap:
name: configmap-2
`,
`,
expected: []string{
"canary-by-config-change",
"configmap-1",
Expand Down Expand Up @@ -228,7 +228,7 @@ spec:
- server
ports:
- containerPort: 9085
`,
`,
expected: nil,
},
{
Expand Down Expand Up @@ -267,7 +267,7 @@ spec:
- name: config
secret:
secretName: canary-by-config-change
`,
`,
expected: []string{
"canary-by-config-change",
},
Expand Down Expand Up @@ -331,7 +331,7 @@ spec:
- name: config2
secret:
secretName: secret-2
`,
`,
expected: []string{
"canary-by-config-change",
"init-secret-1",
Expand Down
16 changes: 8 additions & 8 deletions pkg/app/piped/platformprovider/kubernetes/hasher_test.go
Expand Up @@ -42,7 +42,7 @@ apiVersion: v1
kind: ConfigMap
data: {}
binaryData: {}
`,
`,
expected: "42745tchd9",
},
{
Expand All @@ -53,7 +53,7 @@ kind: ConfigMap
data:
one: ""
binaryData: {}
`,
`,
expected: "9g67k2htb6",
},
{
Expand All @@ -66,7 +66,7 @@ data:
one: ""
three: "3"
binaryData: {}
`,
`,
expected: "f5h7t85m9b",
},
{
Expand All @@ -76,7 +76,7 @@ apiVersion: v1
kind: Secret
type: my-type
data: {}
`,
`,
expected: "t75bgf6ctb",
},
{
Expand All @@ -87,7 +87,7 @@ kind: Secret
type: my-type
data:
"one": ""
`,
`,
expected: "74bd68bm66",
},
{
Expand All @@ -100,7 +100,7 @@ data:
two: Mg==
one: ""
three: Mw==
`,
`,
expected: "dgcb6h9tmk",
},
{
Expand All @@ -119,7 +119,7 @@ type: my-type
data:
one: ""
three: Mw==
`,
`,
expected: "57hhd7795k",
},
{
Expand Down Expand Up @@ -151,7 +151,7 @@ spec:
- hello
ports:
- containerPort: 9085
`,
`,
expected: "db48kd6689",
},
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/yamlprocessor/yamlprocessor_test.go
Expand Up @@ -48,7 +48,7 @@ b: bv
c:
- 1
- 2
`,
`,
},
}
for _, tc := range testcases {
Expand Down Expand Up @@ -215,7 +215,7 @@ foo: new-text
{
name: "valid value with comment at the same line",
yml: `foo: bar # comments
`,
`,
path: "$.foo",
value: "new-text",
want: []byte("foo: new-text # comments\n"),
Expand Down

0 comments on commit d0cae68

Please sign in to comment.