Skip to content

Commit

Permalink
chore(pipeline): Improve task description for pipeline intent (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Mar 30, 2018
1 parent f624629 commit abe0353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class PipelineIntentProcessor(

return ConvergeResult(listOf(
OrchestrationRequest(
name = (if (currentState == null) "Create" else "Update") + " pipeline '${intent.spec.name}'",
name = "Upsert pipeline",
application = intent.spec.application,
description = "Converging on desired pipeline state",
description = (if (currentState == null) "Create" else "Update") + " pipeline '${intent.spec.name}'",
job = pipelineConverter.convertToJob(ConvertPipelineToJob(intent.spec, currentState?.id), changeSummary),
trigger = OrchestrationTrigger(intent.id())
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ object PipelineIntentProcessorTest {
val result = subject.converge(intent)

result.orchestrations.size shouldMatch equalTo(1)
result.orchestrations[0].name shouldMatch equalTo("Create pipeline 'bar'")
result.orchestrations[0].description shouldMatch equalTo("Create pipeline 'bar'")
result.orchestrations[0].application shouldMatch equalTo("foo")
result.orchestrations[0].job[0]["type"] shouldMatch equalTo<Any>("savePipeline")

Expand Down

0 comments on commit abe0353

Please sign in to comment.