---
"Basic test for index open/close":
  - do:
      indices.create:
        index: test_index

  - do:
      cluster.health:
        wait_for_status: yellow

  - do:
      indices.close:
        index: test_index

  - do:
      catch: forbidden
      search:
        index: test_index

  - do:
      indices.open:
        index: test_index

  - do:
      cluster.health:
        wait_for_status: yellow

  - do:
      search:
        index: test_index

