Skip to content

Commit

Permalink
snapshot get 1 -> 2
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Mierzwa <[email protected]>
  • Loading branch information
MaciejMierzwa committed Nov 9, 2023
1 parent 14a4487 commit f88c1fa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ public void shouldCreateSnapshot_positive() throws IOException {
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(PUT, "/_snapshot/test-snapshot-repository/snapshot-positive-test")
);
auditLogsRule.assertExactly(
1,
2,
userAuthenticated(LIMITED_WRITE_USER).withEffectiveUser(LIMITED_WRITE_USER).withRestRequest(GET, "/_snapshot/test-snapshot-repository/snapshot-positive-test")
);
auditLogsRule.assertExactly(1, grantedPrivilege(LIMITED_WRITE_USER, "PutRepositoryRequest"));
Expand Down Expand Up @@ -1830,7 +1830,7 @@ public void shouldDeleteSnapshot_positive() throws IOException {
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(DELETE, "/_snapshot/test-snapshot-repository/delete-snapshot-positive")
);
auditLogsRule.assertExactly(
1,
2,
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(GET, "/_snapshot/test-snapshot-repository/delete-snapshot-positive")
);
auditLogsRule.assertExactly(1, grantedPrivilege(LIMITED_WRITE_USER, "PutRepositoryRequest"));
Expand Down Expand Up @@ -1862,7 +1862,7 @@ public void shouldDeleteSnapshot_negative() throws IOException {
userAuthenticated(LIMITED_READ_USER).withRestRequest(DELETE, "/_snapshot/test-snapshot-repository/delete-snapshot-negative")
);
auditLogsRule.assertExactly(
1,
2,
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(GET, "/_snapshot/test-snapshot-repository/delete-snapshot-negative")
);
auditLogsRule.assertExactly(1, grantedPrivilege(LIMITED_WRITE_USER, "PutRepositoryRequest"));
Expand Down Expand Up @@ -1941,7 +1941,7 @@ public void shouldRestoreSnapshot_positive() throws IOException {
auditLogsRule.assertAtLeast(1, userAuthenticated(LIMITED_WRITE_USER).withRestRequest(POST, "/restored_write_song_index/_count"));
auditLogsRule.assertExactly(2, userAuthenticated(LIMITED_WRITE_USER).withRestRequest(POST, "/_bulk"));
auditLogsRule.assertExactly(
1,
2,
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(GET, "/_snapshot/test-snapshot-repository/restore-snapshot-positive")
);
auditLogsRule.assertExactly(1, grantedPrivilege(LIMITED_WRITE_USER, "PutRepositoryRequest"));
Expand Down Expand Up @@ -2003,7 +2003,7 @@ public void shouldRestoreSnapshot_failureForbiddenIndex() throws IOException {
);
auditLogsRule.assertExactlyOne(userAuthenticated(LIMITED_WRITE_USER).withRestRequest(POST, "/_bulk"));
auditLogsRule.assertExactly(
1,
2,
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(
GET,
"/_snapshot/test-snapshot-repository/restore-snapshot-negative-forbidden-index"
Expand Down Expand Up @@ -2068,7 +2068,7 @@ public void shouldRestoreSnapshot_failureOperationForbidden() throws IOException
);
auditLogsRule.assertExactlyOne(userAuthenticated(LIMITED_WRITE_USER).withRestRequest(POST, "/_bulk"));
auditLogsRule.assertExactly(
1,
2,
userAuthenticated(LIMITED_WRITE_USER).withRestRequest(
GET,
"/_snapshot/test-snapshot-repository/restore-snapshot-negative-forbidden-operation"
Expand Down

0 comments on commit f88c1fa

Please sign in to comment.