Skip to content

Commit

Permalink
Add _cat/snapshots deprecation warning rest test.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Jan 7, 2025
1 parent 07f7562 commit 541896e
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,28 @@
/^ snap1\s+ SUCCESS\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \S+\s+ 2\s+ 2\s+ 0\s+ 2\s*\n
snap2\s+ SUCCESS\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \d+\s+ \d\d\:\d\d\:\d\d\s+ \S+\s+ 2\s+ 2\s+ 0\s+ 2\s*\n
$/
---
"Test deprecated _cat/snapshots endpoint":
- skip:
version: " - 2.18.99"
reason: "Deprecation added in 2.19"
features: [ "warnings" ]

- do:
snapshot.create_repository:
repository: dep_test_repo
body:
type: fs
settings:
location: "dep_test_repo_loc"

- do:
warnings:
- "[/_cat/snapshots] is a deprecated endpoint. Please use [/_cat/snapshots/{repository}] instead."
cat.snapshots:
q: "repository:dep_test_repo"

- match:
$body: |
/^$/

0 comments on commit 541896e

Please sign in to comment.