Skip to content

Commit d6dfd51

Browse files
committed
fix tests
Signed-off-by: Sinelnikov Michail <mikhail.sinelnikov@flant.com>
1 parent 2529233 commit d6dfd51

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/linters/container/rules/container_no_new_privileges_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func TestNoNewPrivilegesRule_ContainerNoNewPrivileges(t *testing.T) {
123123
errorList := errors.NewLintRuleErrorsList()
124124

125125
obj := storage.StoreObject{
126-
Path: "test.yaml",
126+
AbsPath: "test.yaml",
127127
Unstructured: unstructured.Unstructured{
128128
Object: map[string]any{
129129
"kind": tt.kind,
@@ -160,7 +160,7 @@ func TestNoNewPrivilegesRule_WithExclusions(t *testing.T) {
160160
errorList := errors.NewLintRuleErrorsList()
161161

162162
obj := storage.StoreObject{
163-
Path: "test.yaml",
163+
AbsPath: "test.yaml",
164164
Unstructured: unstructured.Unstructured{
165165
Object: map[string]any{
166166
"kind": "Deployment",

pkg/linters/container/rules/container_seccomp_profile_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func TestSeccompProfileRule_ContainerSeccompProfile(t *testing.T) {
132132
}
133133

134134
obj := storage.StoreObject{
135-
Path: "test.yaml",
135+
AbsPath: "test.yaml",
136136
Unstructured: unstructured.Unstructured{Object: objData},
137137
}
138138

@@ -169,7 +169,7 @@ func TestSeccompProfileRule_PodLevelProfile(t *testing.T) {
169169
}
170170

171171
obj := storage.StoreObject{
172-
Path: "test.yaml",
172+
AbsPath: "test.yaml",
173173
Unstructured: unstructured.Unstructured{Object: objData},
174174
}
175175

@@ -203,7 +203,7 @@ func TestSeccompProfileRule_ContainerOverridesPod(t *testing.T) {
203203
}
204204

205205
obj := storage.StoreObject{
206-
Path: "test.yaml",
206+
AbsPath: "test.yaml",
207207
Unstructured: unstructured.Unstructured{Object: objData},
208208
}
209209

@@ -236,7 +236,7 @@ func TestSeccompProfileRule_WithExclusions(t *testing.T) {
236236
errorList := errors.NewLintRuleErrorsList()
237237

238238
obj := storage.StoreObject{
239-
Path: "test.yaml",
239+
AbsPath: "test.yaml",
240240
Unstructured: unstructured.Unstructured{
241241
Object: map[string]any{
242242
"kind": "Deployment",

0 commit comments

Comments
 (0)