Skip to content

Commit 73ded68

Browse files
committed
Adjust test names to reflect HTTP semantics (403 vs 404)
Signed-off-by: Rob Syme <rob.syme@gmail.com>
1 parent a7bf83a commit 73ded68

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/test/java/io/seqera/tower/cli/computeenvs/ComputeEnvsCmdTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void testDeleteInvalidAuth(MockServerClient mock) {
9696
}
9797

9898
@Test
99-
void testDeleteNotFound(MockServerClient mock) {
99+
void testDeleteForbidden(MockServerClient mock) {
100100
mock.when(
101101
request().withMethod("DELETE").withPath("/compute-envs/vYOK4vn7spw7bHHWBDXZ3"), exactly(1)
102102
).respond(
@@ -253,7 +253,7 @@ void testViewAwsManual(OutputType format, MockServerClient mock) throws JsonProc
253253
}
254254

255255
@Test
256-
void testViewNotFound(MockServerClient mock) {
256+
void testViewForbidden(MockServerClient mock) {
257257

258258
mock.when(
259259
request().withMethod("GET").withPath("/compute-envs/isnEDBLvHDAIteOEF44or"), exactly(1)

src/test/java/io/seqera/tower/cli/credentials/CredentialsCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void testDelete(OutputType format, MockServerClient mock) {
6565
}
6666

6767
@Test
68-
void testDeleteNotFound(MockServerClient mock) {
68+
void testDeleteForbidden(MockServerClient mock) {
6969
mock.when(
7070
request().withMethod("DELETE").withPath("/credentials/1cz5A8cuBkB5iKKiCwJCFU"), exactly(1)
7171
).respond(

src/test/java/io/seqera/tower/cli/runs/RunsCmdTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void testDelete(OutputType format, MockServerClient mock) {
9494
}
9595

9696
@Test
97-
void testDeleteNotFound(MockServerClient mock) {
97+
void testDeleteForbidden(MockServerClient mock) {
9898
mock.when(
9999
request().withMethod("DELETE").withPath("/workflow/5dAZoXrcmZXRO4"), exactly(1)
100100
).respond(
@@ -122,7 +122,7 @@ void testCancel(OutputType format, MockServerClient mock) {
122122
}
123123

124124
@Test
125-
void testCancelNotFound(MockServerClient mock) {
125+
void testCancelForbidden(MockServerClient mock) {
126126
mock.when(
127127
request().withMethod("POST").withPath("/workflow/5dAZoXrcmZXRO4/cancel"), exactly(1)
128128
).respond(
@@ -483,7 +483,7 @@ void testView(OutputType format, MockServerClient mock) throws JsonProcessingExc
483483
}
484484

485485
@Test
486-
void testViewNotFound(MockServerClient mock) {
486+
void testViewForbidden(MockServerClient mock) {
487487
mock.when(
488488
request().withMethod("GET").withPath("/workflow/5dAZoXrcmZXRO4"), exactly(1)
489489
).respond(

0 commit comments

Comments
 (0)