From e95072909974660fec14187a7d17629083b21f1f Mon Sep 17 00:00:00 2001 From: Miguel Covarrubias Date: Fri, 13 Sep 2024 19:49:30 -0400 Subject: [PATCH] WX-927 Proper GCP Batch failure on noAddress --- .../standardTestCases/fast_fail_noAddress.test | 4 +--- .../gcpbatch_fast_fail_noAddress.test | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 centaur/src/main/resources/standardTestCases/gcpbatch_fast_fail_noAddress.test diff --git a/centaur/src/main/resources/standardTestCases/fast_fail_noAddress.test b/centaur/src/main/resources/standardTestCases/fast_fail_noAddress.test index 37471fe319f..534e972eeb0 100644 --- a/centaur/src/main/resources/standardTestCases/fast_fail_noAddress.test +++ b/centaur/src/main/resources/standardTestCases/fast_fail_noAddress.test @@ -1,8 +1,6 @@ # NB: To request this test by name, make it lowercase, eg sbt "centaur/it:testOnly * -- -n fast_fail_noaddress" name: fast_fail_noAddress -# GCPBATCH error message is different -# Unable to complete Batch request due to a problem with the request (io.grpc.StatusRuntimeException: INVALID_ARGUMENT: no_external_ip_address field is invalid. both network and subnetwork have to be specified when no_external_ip_address is true). -backends: [Papi, Papiv2, GCPBATCH_NEEDS_ALT] +backends: [Papi, Papiv2, GCPBATCH_ALT] backendsMode: any testFormat: workflowfailure diff --git a/centaur/src/main/resources/standardTestCases/gcpbatch_fast_fail_noAddress.test b/centaur/src/main/resources/standardTestCases/gcpbatch_fast_fail_noAddress.test new file mode 100644 index 00000000000..eda2d5d3940 --- /dev/null +++ b/centaur/src/main/resources/standardTestCases/gcpbatch_fast_fail_noAddress.test @@ -0,0 +1,15 @@ +# NB: To request this test by name, make it lowercase, eg sbt "centaur/it:testOnly * -- -n gcpbatch_fast_fail_noaddress" +name: gcpbatch_fast_fail_noaddress +backends: [ GCPBATCH ] +backendsMode: any +testFormat: workflowfailure + +files { + workflow: fast_fail_noAddress/fast_fail_noAddress.wdl +} + +metadata { + workflowName: fast_fail_noAddress + "failures.0.causedBy.0.message": ~~"Unable to complete Batch request due to a problem with the request (io.grpc.StatusRuntimeException: INVALID_ARGUMENT: no_external_ip_address field is invalid. both network and subnetwork have to be specified when no_external_ip_address is true)." + status: Failed +}