Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing flaky replication tests #696

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions tests/plugins/replication/autofollow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ prologues:
- path: /{index}
method: PUT
parameters:
index: books
index: movies
request:
payload: {}
- path: /_bulk
method: POST
request:
content_type: application/x-ndjson
payload:
- {create: {_index: books, _id: book_1392214}}
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960}
- {create: {_index: books, _id: book_1392215}}
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991}
- {create: {_index: movies, _id: movie_1392214}}
- {director: Bennett Miller, title: Moneyball, year: 2011}
- {create: {_index: movies, _id: movie_1392215}}
- {director: Badge Dale, title: The Secret Soldiers, year: 2016}
- path: /{index}/_refresh
method: POST
parameters:
index: books
index: movies
- path: /_cluster/settings
method: PUT
request:
Expand All @@ -34,25 +34,25 @@ prologues:
version: '>= 1.1'
method: PUT
parameters:
index: books-names
index: movies-names
request:
payload:
leader_alias: leader-cluster
leader_index: books
leader_index: movies
use_roles:
leader_cluster_role: all_access
follower_cluster_role: all_access
epilogues:
- path: /_plugins/_replication/{index}/_stop
method: POST
parameters:
index: books-names
index: movies-names
request:
payload: {}
- path: /books-names
- path: /movies-names
method: DELETE
status: [200, 404]
- path: /books
- path: /movies
method: DELETE
status: [200, 404]
chapters:
Expand All @@ -63,8 +63,8 @@ chapters:
request:
payload:
leader_alias: leader-cluster
name: books
pattern: 'books-*'
name: movies
pattern: 'movies-*'
use_roles:
leader_cluster_role: leader_role
follower_cluster_role: admin
Expand All @@ -83,6 +83,6 @@ chapters:
request:
payload:
leader_alias: leader-cluster
name: books
name: movies
response:
status: 200
24 changes: 12 additions & 12 deletions tests/plugins/replication/stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ prologues:
- path: /{index}
method: PUT
parameters:
index: books
index: music
request:
payload: {}
- path: /_bulk
method: POST
request:
content_type: application/x-ndjson
payload:
- {create: {_index: books, _id: book_1392214}}
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960}
- {create: {_index: books, _id: book_1392215}}
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991}
- {create: {_index: music, _id: music_1392214}}
- {author: Selena Gomez, title: Love you like a love song, year: 2011}
- {create: {_index: music, _id: music_1392215}}
- {author: Justin Bieber, title: Baby, year: 2010}
- path: /{index}/_refresh
method: POST
parameters:
index: books
index: music
- path: /_cluster/settings
method: PUT
request:
Expand All @@ -34,25 +34,25 @@ prologues:
version: '>= 1.1'
method: PUT
parameters:
index: books-names
index: music-names
request:
payload:
leader_alias: leader-cluster
leader_index: books
leader_index: music
use_roles:
leader_cluster_role: all_access
follower_cluster_role: all_access
epilogues:
- path: /_plugins/_replication/{index}/_stop
method: POST
parameters:
index: books-names
index: music-names
request:
payload: {}
- path: /books-names
- path: /music-names
method: DELETE
status: [200, 404]
- path: /books
- path: /music
method: DELETE
status: [200, 404]
chapters:
Expand All @@ -61,7 +61,7 @@ chapters:
version: '>= 1.1'
method: GET
parameters:
index: books-names
index: music-names
response:
status: 200
- synopsis: Get leader stats.
Expand Down
Loading