Skip to content

Commit

Permalink
Adjust BWC after elastic#64677
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann committed Nov 6, 2020
1 parent f06ca33 commit 38191db
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Basic test for upgrade indices < 8.0.0":
"Basic test for upgrade indices < 7.11.0":
- skip:
version: "8.0.0 - "
reason: "_upgrade api has deprecation header since 8.0.0"
version: "7.11.0 - "
reason: "_upgrade api has deprecation header since 7.11.0"
features: "node_selector"

- do:
Expand All @@ -17,16 +17,16 @@
indices.upgrade:
index: test_index
node_selector:
version: " - 7.99.99"
version: " - 7.10.99"

- match: {upgraded_indices.test_index.oldest_lucene_segment_version: '/(\d\.)+\d/'}
- is_true: upgraded_indices.test_index.upgrade_version

---
"Upgrade indices ignore unavailable < 8.0.0":
"Upgrade indices ignore unavailable < 7.11.0":
- skip:
version: "8.0.0 - "
reason: "_upgrade api has deprecation header since 8.0.0"
version: "7.11.0 - "
reason: "_upgrade api has deprecation header since 7.11.0"
features: "node_selector"

- do:
Expand All @@ -43,17 +43,17 @@
index: ["does_not_exist", "test_index"]
ignore_unavailable: true
node_selector:
version: " - 7.99.99"
version: " - 7.10.99"

- match: {_shards.total: 1}
- is_true: upgraded_indices.test_index.upgrade_version
- is_false: upgraded_indices.does_not_exist

---
"Upgrade indices allow no indices < 8.0.0":
"Upgrade indices allow no indices < 7.11.0":
- skip:
version: "8.0.0 - "
reason: "_upgrade api has deprecation header since 8.0.0"
version: "7.11.0 - "
reason: "_upgrade api has deprecation header since 7.11.0"
features: "node_selector"

- do:
Expand All @@ -62,15 +62,15 @@
ignore_unavailable: true
allow_no_indices: true
node_selector:
version: " - 7.99.99"
version: " - 7.10.99"

- match: {_shards.total: 0}

---
"Upgrade indices disallow no indices < 8.0.0":
"Upgrade indices disallow no indices < 7.11.0":
- skip:
version: "8.0.0 - "
reason: "_upgrade api has deprecation header since 8.0.0"
version: "7.11.0 - "
reason: "_upgrade api has deprecation header since 7.11.0"
features: "node_selector"

- do:
Expand All @@ -80,13 +80,13 @@
ignore_unavailable: true
allow_no_indices: false
node_selector:
version: " - 7.99.99"
version: " - 7.10.99"

---
"Upgrade indices disallow unavailable < 8.0.0":
"Upgrade indices disallow unavailable < 7.11.0":
- skip:
version: "8.0.0 - "
reason: "_upgrade api has deprecation header since 8.0.0"
version: "7.11.0 - "
reason: "_upgrade api has deprecation header since 7.11.0"
features: "node_selector"

- do:
Expand All @@ -99,4 +99,4 @@
index: ["test_index", "does_not_exist"]
ignore_unavailable: false
node_selector:
version: " - 7.99.99"
version: " - 7.10.99"

0 comments on commit 38191db

Please sign in to comment.