Skip to content

Commit

Permalink
build: fix warning about missing shade plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Oct 27, 2023
1 parent 7e39102 commit 56a253e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog


## v1.0.13

- Fix "Response Contains" check

## v1.0.12

- Possibility to exclude attributes from discovery
Expand Down
5 changes: 3 additions & 2 deletions exthttpcheck/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ func requestWorker(executionRunData *ExecutionRunData, state *HTTPCheckState, ch
responseBodyWasSuccessful = false
} else {
bodyString := string(bodyBytes)
metricMap["response_constraints_fulfilled"] = strconv.FormatBool(strings.Contains(bodyString, state.ResponsesContains))
responseBodyWasSuccessful = true
responseConstraintFulfilled := strings.Contains(bodyString, state.ResponsesContains)
metricMap["response_constraints_fulfilled"] = strconv.FormatBool(responseConstraintFulfilled)
responseBodyWasSuccessful = responseConstraintFulfilled
}
}
}
Expand Down

0 comments on commit 56a253e

Please sign in to comment.