Skip to content

Commit

Permalink
Asserts the deprecation warning after adding to allow list in test
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Downs <[email protected]>
  • Loading branch information
downsrob committed Feb 17, 2022
1 parent a906040 commit 8125bb8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class ManagedIndexRunnerIT : IndexStateManagementRestTestCase() {
.filter { actionType -> actionType != ReadOnlyAction.name }
.joinToString(prefix = "[", postfix = "]") { string -> "\"$string\"" }
updateClusterSetting(ManagedIndexSettings.ALLOW_LIST.key, allowedActions, escapeValue = false)
// Note that the setting is expected to throw a deprecation warning so we don't fail the test
assertSettingDeprecationsAndWarnings(arrayOf(ManagedIndexSettings.ALLOW_LIST.key))
}

// speed up to fifth execution that should try to set index to read only and fail because the action is not allowed
Expand Down

0 comments on commit 8125bb8

Please sign in to comment.