---
"clear_cache test":
  - do:
      indices.clear_cache: {}

---
"clear_cache with request set to false":
  - skip:
      version: " - 5.4.99"
      reason: this name was added in 5.4 - temporarilly skipping 5.4 until snapshot is finished

  - do:
      indices.clear_cache:
        request: false

---
"clear_cache with request_cache set to false":
  - skip:
      version: " - 5.4.99"
      reason: request_cache was deprecated in 5.4.0 - temporarilly skipping 5.4 until snapshot is finished
      features: "warnings"

  - do:
      warnings:
        - 'Deprecated field [request_cache] used, expected [request] instead'
      indices.clear_cache:
        request_cache: false

---
"clear_cache test":
  - do:
      indices.clear_cache: {}

---
"clear_cache with request set to false":
  - skip:
      version: " - 5.3.99"
      reason: this name was added in 5.4

  - do:
      indices.clear_cache:
        request: false

---
"clear_cache with request_cache set to false":
  - skip:
      version: " - 5.3.99"
      reason: request_cache was deprecated in 5.4.0
      features: "warnings"

  - do:
      warnings:
        - 'Deprecated field [request_cache] used, expected [request] instead'
      indices.clear_cache:
        request_cache: false

Revert "Skip 5.4 bwc test for new name for now"
Revert "Skip 5.4 bwc test for new name for now"

This reverts commit 490d29f4fc15d8d156d814a49194e619b687b96a.
We should be able to run the 5.4 tests now that we have
8c53555b2896f5ecbe583209baec300b066d65bb.
