Skip to content

Commit

Permalink
opensearchapi: skip render search template test if secure and version…
Browse files Browse the repository at this point in the history
… 2.11 or 2.10

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD committed Mar 14, 2024
1 parent 854e2e2 commit bd45879
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions opensearchapi/api_render_search_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ func TestRenderSearchTemplate(t *testing.T) {
client, err := ostest.NewClient()
require.Nil(t, err)

if ostest.IsSecure() {
major, patch, _, err := ostest.GetVersion(client)
assert.Nil(t, err)
if major == 2 && (patch == 10 || patch == 11) {
t.Skipf("Skiping %s due to: https://github.com/opensearch-project/security/issues/3672", t.Name())
}
}

testScript := "test-search-template"
t.Cleanup(func() {
client.Script.Delete(nil, opensearchapi.ScriptDeleteReq{ScriptID: testScript})
Expand Down

0 comments on commit bd45879

Please sign in to comment.