---
"Index seal rest test":
    - do:
       indices.create:
          index: testing

    - do:
       cluster.health:
          wait_for_status: yellow
    - do:
       indices.seal:
          index: testing
    - do:
       indices.stats: {level: shards}

    - is_true: indices.testing.shards.0.0.commit.user_data.sync_id

---
"Index seal rest test":
    - do:
       indices.create:
          index: testing
          body:
            settings:
              number_of_replicas: 0
    - do:
       cluster.health:
          wait_for_status: green
    - do:
       indices.seal:
          index: testing
    - do:
       indices.stats: {level: shards}

    - is_true: indices.testing.shards.0.0.commit.user_data.sync_id

Use no replicas in REST tests since relocations prevent synced flushes and all replicas fail
[TEST] Use no replicas in REST tests since relocations prevent synced flushes and all replicas fail
