Skip to content

Commit

Permalink
fixing flaky tests (#696)
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh authored Nov 26, 2024
1 parent 4615564 commit 3b6eb57
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
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

0 comments on commit 3b6eb57

Please sign in to comment.