Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <[email protected]>
  • Loading branch information
crenshaw-dev committed Nov 24, 2024
1 parent ad276a9 commit 3234247
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ discoveryTests:
disabled: false
- name: restart
disabled: false
displayName: Restart Pods
- name: abort
disabled: false
- name: retry
Expand All @@ -15,6 +16,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand All @@ -27,6 +29,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand All @@ -39,6 +42,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: false
- name: abort
Expand All @@ -51,6 +55,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand All @@ -63,6 +68,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand All @@ -75,6 +81,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand All @@ -87,6 +94,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand All @@ -99,6 +107,7 @@ discoveryTests:
result:
- name: restart
disabled: false
displayName: Restart Pods
- name: resume
disabled: true
- name: abort
Expand Down
3 changes: 1 addition & 2 deletions util/lua/custom_actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ func TestLuaResourceActionsScript(t *testing.T) {
}
require.NoError(t, err)
dir := filepath.Dir(path)
// TODO: Change to path
yamlBytes, err := os.ReadFile(dir + "/action_test.yaml")
yamlBytes, err := os.ReadFile(filepath.Join(dir, "action_test.yaml"))
require.NoError(t, err)
var resourceTest ActionTestStructure
err = yaml.Unmarshal(yamlBytes, &resourceTest)
Expand Down

0 comments on commit 3234247

Please sign in to comment.