Skip to content

Commit

Permalink
chore(deprecate): Remove resizeAsg stage/task (spinnaker#3831)
Browse files Browse the repository at this point in the history
Reapply changes in spinnaker#3786

It has been deprecated in September 2015, pretty sure nothing uses it.
If anyone is using it, they should migrate to resizeServerGroup instead
  • Loading branch information
marchello2000 authored Jul 23, 2020
1 parent 669f0e6 commit 20fbb60
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 608 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class WaitForCapacityMatchTaskSpec extends Specification {
oort.getServerGroup("test", "us-east-1", "kato-main-v000") >> { new Response('kato', 200, 'ok', [], new TypedString(mapper.writeValueAsString(serverGroup))) }
task.oortService = oort
def context = [account: "test", "deploy.server.groups": ["us-east-1": ["kato-main-v000"]]]
def stage = new StageExecutionImpl(PipelineExecutionImpl.newOrchestration("orca"), "resizeAsg", context)
def stage = new StageExecutionImpl(PipelineExecutionImpl.newOrchestration("orca"), "resizeServerGroup", context)

when:
def result = task.execute(stage)
Expand Down Expand Up @@ -107,7 +107,7 @@ class WaitForCapacityMatchTaskSpec extends Specification {
oort.getServerGroup("test", "us-east-1", "kato-main-v000") >> { new Response('kato', 200, 'ok', [], new TypedString(mapper.writeValueAsString(serverGroup))) }
task.oortService = oort
def context = [account: "test", "deploy.server.groups": ["us-east-1": ["kato-main-v000"]]]
def stage = new StageExecutionImpl(PipelineExecutionImpl.newOrchestration("orca"), "resizeAsg", context)
def stage = new StageExecutionImpl(PipelineExecutionImpl.newOrchestration("orca"), "resizeServerGroup", context)

when:
def result = task.execute(stage)
Expand Down Expand Up @@ -140,7 +140,7 @@ class WaitForCapacityMatchTaskSpec extends Specification {
oort.getServerGroup("test", "us-east-1", "kato-main-v000") >> { new Response('kato', 200, 'ok', [], new TypedString(mapper.writeValueAsString(serverGroup))) }
task.oortService = oort
def context = [account: "test", "deploy.server.groups": ["us-east-1": ["kato-main-v000"]]]
def stage = new StageExecutionImpl(PipelineExecutionImpl.newOrchestration("orca"), "resizeAsg", context)
def stage = new StageExecutionImpl(PipelineExecutionImpl.newOrchestration("orca"), "resizeServerGroup", context)

when:
def result = task.execute(stage)
Expand Down
Loading

0 comments on commit 20fbb60

Please sign in to comment.