unit tests
This commit is contained in:
Родитель
c07ee2ca08
Коммит
83f7df70e5
|
@ -125,7 +125,7 @@ teardown(){
|
|||
enable_count="$(echo "$output" | grep -c 'event=enabled')"
|
||||
echo "Enable count=$enable_count"
|
||||
[ "$enable_count" -eq 1 ]
|
||||
[[ "$output" == *"this script configuration is already processed, will not run again"* ]] # not processed again
|
||||
[[ "$output" == *"the script configuration has already been processed, will not run again"* ]] # not processed again
|
||||
}
|
||||
|
||||
@test "handler command: enable - parses protected settings" {
|
||||
|
|
|
@ -40,7 +40,7 @@ func Test_checkAndSaveSeqNum_fails(t *testing.T) {
|
|||
// pass in invalid seqnum format
|
||||
_, err := checkAndSaveSeqNum(log.NewNopLogger(), 0, "/non/existing/dir")
|
||||
require.NotNil(t, err)
|
||||
require.Contains(t, err.Error(), `failed to save the sequence number`)
|
||||
require.Contains(t, err.Error(), `failed to save sequence number`)
|
||||
}
|
||||
|
||||
func Test_checkAndSaveSeqNum(t *testing.T) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче