Skip to content

Commit 75e5d35

Browse files
committed
cleanup
1 parent 2ea1c35 commit 75e5d35

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

supportedBackends/google/batch/src/main/scala/cromwell/backend/google/batch/api/GcpBatchRequestFactoryImpl.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ class GcpBatchRequestFactoryImpl()(implicit gcsTransferConfiguration: GcsTransfe
241241
val logsPolicy = data.gcpBatchParameters.batchAttributes.logsPolicy match {
242242
case GcpBatchLogsPolicy.CloudLogging =>
243243
LogsPolicy.newBuilder.setDestination(Destination.CLOUD_LOGGING).build
244-
case GcpBatchLogsPolicy.Path =>
245-
???
246244
}
247245

248246
val googleLabels = data.createParameters.googleLabels.map(l => Label(l.key, l.value))

supportedBackends/google/batch/src/main/scala/cromwell/backend/google/batch/models/GcpBatchConfigurationAttributes.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ object GcpBatchConfigurationAttributes extends GcpBatchReferenceFilesMappingOper
216216
val logsPolicy: ErrorOr[GcpBatchLogsPolicy] = validate {
217217
backendConfig.as[Option[String]]("batch.logs-policy").getOrElse("CLOUD_LOGGING") match {
218218
case "CLOUD_LOGGING" => GcpBatchLogsPolicy.CloudLogging
219-
case "PATH" => GcpBatchLogsPolicy.Path
220219
case other =>
221220
throw new IllegalArgumentException(
222221
s"Unrecognized logs policy entry: $other. Supported strategies are CLOUD_LOGGING and PATH."

supportedBackends/google/batch/src/main/scala/cromwell/backend/google/batch/models/GcpBatchLogsPolicy.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ sealed trait GcpBatchLogsPolicy extends Product with Serializable
44

55
object GcpBatchLogsPolicy {
66
case object CloudLogging extends GcpBatchLogsPolicy
7-
case object Path extends GcpBatchLogsPolicy
87
}

supportedBackends/google/batch/src/test/scala/cromwell/backend/google/batch/models/GcpBatchConfigurationAttributesSpec.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ class GcpBatchConfigurationAttributesSpec
135135
gcpBatchAttributes.logsPolicy should be(GcpBatchLogsPolicy.CloudLogging)
136136
}
137137

138-
it should "parse logs-policy = PATH" in {
139-
val backendConfig = ConfigFactory.parseString(configString(batch = "logs-policy = PATH"))
140-
val gcpBatchAttributes = GcpBatchConfigurationAttributes(googleConfig, backendConfig, "batch")
141-
gcpBatchAttributes.logsPolicy should be(GcpBatchLogsPolicy.Path)
142-
}
143-
144138
it should "reject invalid logs-policy" in {
145139
val expected =
146140
"Google Cloud Batch configuration is not valid: Errors:\nUnrecognized logs policy entry: INVALID. Supported strategies are CLOUD_LOGGING and PATH."

0 commit comments

Comments
 (0)