Skip to content

Commit 2e56fa1

Browse files
committed
Expecting this test suite to fail !
1 parent 1e8bd34 commit 2e56fa1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

generic/auth-secret.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: secret-ssh-auth
5+
type: kubernetes.io/ssh-auth
6+
data:
7+
# the data is abbreviated in this example
8+
ssh-privatekey: |
9+
UG91cmluZzYlRW1vdGljb24lU2N1YmE=
10+
---
11+
apiVersion: v1
12+
kind: Secret
13+
metadata:
14+
name: sample-secret
15+
labels:
16+
findme: "yea"
17+
type: Opaque
18+
data:
19+
# base64 encoded: my super cool \n multiline \ secret
20+
secret.world: bXkgc3VwZXIgY29vbAptdWx0aWxpbmUKc2VjcmV0

generic/patterns.yml

+7
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ patterns:
119119
data: password="AAAAAAAAAAAa00=="
120120
start_offset: 10
121121
end_offset: 26
122+
expected:
123+
- name: auth-secret.yaml
124+
start_offset: 14
125+
end_offset: 25
126+
- name: auth-secret.yaml
127+
start_offset: 41
128+
end_offset: 62
122129
comments:
123130
- "The Base64 must contain numbers, upper case and lower case and be at least 12 characters long"
124131
- "`password`, `secret`, `key`, or password like prefix (fuzzy)"

0 commit comments

Comments
 (0)