Skip to content

Commit

Permalink
fix unt test
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Shankar <vshankar@progress.com>
  • Loading branch information
vivekshankar1 committed Jul 15, 2023
1 parent 6dfe11b commit 3b17e20
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ func HardwareNil(checkType, message string, includeOPENSEARCH bool, includePOSTG
NodeType: constants.BASTION,
CheckType: checkType,
Result: models.ApiResult{
Passed: false,
Skipped: true,
Message: message,
Check: checkType,
Passed: false,
Skipped: true,
SkipMessage: message,
Check: checkType,
},
Host: constants.LOCALHOST,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,19 +508,21 @@ func TestNilResp(t *testing.T) {
NodeType: constants.AUTOMATE,
CheckType: checkType,
Result: models.ApiResult{
Passed: false,
Skipped: true,
Check: checkType,
Passed: false,
Skipped: true,
SkipMessage: constants.SKIP_MISSING_HARDWARE_MESSAGE,
Check: checkType,
},
Host: constants.UNKNOWN_HOST,
},
{
NodeType: constants.CHEF_INFRA_SERVER,
CheckType: checkType,
Result: models.ApiResult{
Passed: false,
Skipped: true,
Check: checkType,
Passed: false,
Skipped: true,
SkipMessage: constants.SKIP_MISSING_HARDWARE_MESSAGE,
Check: checkType,
},
Host: constants.UNKNOWN_HOST,
},
Expand All @@ -534,9 +536,10 @@ func TestNilResp(t *testing.T) {
NodeType: constants.OPENSEARCH,
CheckType: checkType,
Result: models.ApiResult{
Passed: false,
Skipped: true,
Check: checkType,
Passed: false,
Skipped: true,
SkipMessage: constants.SKIP_MISSING_HARDWARE_MESSAGE,
Check: checkType,
},
Host: constants.UNKNOWN_HOST,
})
Expand All @@ -549,18 +552,20 @@ func TestNilResp(t *testing.T) {
NodeType: constants.POSTGRESQL,
CheckType: checkType,
Result: models.ApiResult{
Passed: false,
Skipped: true,
Check: checkType,
Passed: false,
Skipped: true,
SkipMessage: constants.SKIP_MISSING_HARDWARE_MESSAGE,
Check: checkType,
},
Host: constants.UNKNOWN_HOST,
}, models.CheckTriggerResponse{
NodeType: constants.BASTION,
CheckType: checkType,
Result: models.ApiResult{
Passed: false,
Skipped: true,
Check: checkType,
Passed: false,
Skipped: true,
SkipMessage: constants.SKIP_MISSING_HARDWARE_MESSAGE,
Check: checkType,
},
Host: constants.LOCALHOST,
})
Expand Down

0 comments on commit 3b17e20

Please sign in to comment.