Skip to content

Commit

Permalink
Fixing tests in order to pass validation with deployment and cronjobs…
Browse files Browse the repository at this point in the history
… false
  • Loading branch information
gizas committed Oct 6, 2023
1 parent 295cd10 commit 3b2630a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions kubernetes/metadata/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,10 @@ func TestPod_Generate(t *testing.T) {
"ip": "127.0.0.5",
},
"namespace": defaultNs,
"deployment": mapstr.M{
"name": "nginx-deployment",
},
// We comment below block because add_resource_metadata.deployment: false by default
// "deployment": mapstr.M{
// "name": "nginx-deployment",
// },
"replicaset": mapstr.M{
"name": "nginx-rs",
},
Expand Down Expand Up @@ -403,9 +404,10 @@ func TestPod_Generate(t *testing.T) {
"ip": "127.0.0.5",
},
"namespace": defaultNs,
"deployment": mapstr.M{
"name": "nginx-deployment",
},
// We comment below block because add_resource_metadata.deployment: false by default
// "deployment": mapstr.M{
// "name": "nginx-deployment",
// },
"replicaset": mapstr.M{
"name": "nginx-rs",
},
Expand Down

0 comments on commit 3b2630a

Please sign in to comment.