Skip to content

Commit 5fed7d7

Browse files
committed
cleanup
1 parent 893df18 commit 5fed7d7

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
@@ -242,8 +242,6 @@ class GcpBatchRequestFactoryImpl()(implicit gcsTransferConfiguration: GcsTransfe
242242
val logsPolicy = data.gcpBatchParameters.batchAttributes.logsPolicy match {
243243
case GcpBatchLogsPolicy.CloudLogging =>
244244
LogsPolicy.newBuilder.setDestination(Destination.CLOUD_LOGGING).build
245-
case GcpBatchLogsPolicy.Path =>
246-
???
247245
}
248246

249247
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
@@ -227,7 +227,6 @@ object GcpBatchConfigurationAttributes
227227
val logsPolicy: ErrorOr[GcpBatchLogsPolicy] = validate {
228228
backendConfig.as[Option[String]]("batch.logs-policy").getOrElse("CLOUD_LOGGING") match {
229229
case "CLOUD_LOGGING" => GcpBatchLogsPolicy.CloudLogging
230-
case "PATH" => GcpBatchLogsPolicy.Path
231230
case other =>
232231
throw new IllegalArgumentException(
233232
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
@@ -137,12 +137,6 @@ class GcpBatchConfigurationAttributesSpec
137137
gcpBatchAttributes.logsPolicy should be(GcpBatchLogsPolicy.CloudLogging)
138138
}
139139

140-
it should "parse logs-policy = PATH" in {
141-
val backendConfig = ConfigFactory.parseString(configString(batch = "logs-policy = PATH"))
142-
val gcpBatchAttributes = GcpBatchConfigurationAttributes(googleConfig, backendConfig, "batch")
143-
gcpBatchAttributes.logsPolicy should be(GcpBatchLogsPolicy.Path)
144-
}
145-
146140
it should "reject invalid logs-policy" in {
147141
val expected =
148142
"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)