test_class.declarator: ssmStepDefinitions
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private SSMStepDefinitions ssmStepDefinitions;
test_class.type: SSMStepDefinitions
test_class.var_name: ssmStepDefinitions
test_class.declarator: ec2Raider
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private   EC2RaiderImpl ec2Raider;
test_class.type: EC2RaiderImpl
test_class.var_name: ec2Raider
test_class.declarator: ssmRaider
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private   SSMRaiderImpl ssmRaider;
test_class.type: SSMRaiderImpl
test_class.var_name: ssmRaider
test_class.declarator: executionStateCache
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ExecutionStateCache executionStateCache;
test_class.type: ExecutionStateCache
test_class.var_name: executionStateCache
test_class.file: cloudraider-core/src/test/java/com/intuit/cloudraider/cucumber/steps/SSMStepDefinitionsTest.java
test_class.identifier: SSMStepDefinitionsTest
test_case.body: @Test
      public void testBlockPort() throws Exception
      {
          executionStateCache.setInstances(createInstances());
          try {
              ssmStepDefinitions.blockPort(8080, 1);
          }
          catch (Throwable t)
          {
           //   t.printStackTrace();
          }
          Assert.assertEquals(executionStateCache.getCommandId(), "1234");
          Assert.assertTrue(executionStateCache.getInstances().size()>0);
          Assert.assertTrue(executionStateCache.getPortNums().contains(8080));
          Assert.assertTrue(executionStateCache.isBlockPort());
          Assert.assertTrue(executionStateCache.getSsmCommandInvocationInstances().size() > 0);
  
      }
test_case.class_method_signature: SSMStepDefinitionsTest.testBlockPort()
test_case.full_signature: @Test public void testBlockPort()
test_case.identifier: testBlockPort
test_case.invocations: setInstances createInstances blockPort assertEquals getCommandId assertTrue size getInstances assertTrue contains getPortNums assertTrue isBlockPort assertTrue size getSsmCommandInvocationInstances
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBlockPort()
focal_class.declarator: ssmRaider
focal_class.modifier: @Autowired
      @Qualifier("ssmRaiderBean")
      private
focal_class.original_string: @Autowired
      @Qualifier("ssmRaiderBean")
      private SSMRaider ssmRaider;
focal_class.type: SSMRaider
focal_class.var_name: ssmRaider
focal_class.declarator: logger = LoggerFactory.getLogger(this.getClass())
focal_class.original_string: Logger logger = LoggerFactory.getLogger(this.getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: executionStateCache
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ExecutionStateCache executionStateCache;
focal_class.type: ExecutionStateCache
focal_class.var_name: executionStateCache
focal_class.file: cloudraider-core/src/main/java/com/intuit/cloudraider/cucumber/steps/SSMStepDefinitions.java
focal_class.identifier: SSMStepDefinitions
focal_class.interfaces: implements EC2StepFunctions
focal_class.class_method_signature: SSMStepDefinitions.SSMStepDefinitions()
focal_class.full_signature: public  SSMStepDefinitions()
focal_class.identifier: SSMStepDefinitions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SSMStepDefinitions()
focal_class.class_method_signature: SSMStepDefinitions.getExecutionStateCache()
focal_class.full_signature: public ExecutionStateCache getExecutionStateCache()
focal_class.identifier: getExecutionStateCache
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ExecutionStateCache
focal_class.signature: ExecutionStateCache getExecutionStateCache()
focal_class.class_method_signature: SSMStepDefinitions.setExecutionStateCache(ExecutionStateCache executionStateCache)
focal_class.full_signature: public void setExecutionStateCache(ExecutionStateCache executionStateCache)
focal_class.identifier: setExecutionStateCache
focal_class.modifiers: public
focal_class.parameters: (ExecutionStateCache executionStateCache)
focal_class.return: void
focal_class.signature: void setExecutionStateCache(ExecutionStateCache executionStateCache)
focal_class.class_method_signature: SSMStepDefinitions.executeCommandOnHealthyInstances(String command, int numHosts)
focal_class.full_signature: @When("^executeCommand \"([^\"]*)\" on (\\d+) instance$") public SSMStepDefinitions executeCommandOnHealthyInstances(String command, int numHosts)
focal_class.identifier: executeCommandOnHealthyInstances
focal_class.modifiers: @When("^executeCommand \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String command, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions executeCommandOnHealthyInstances(String command, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.terminateProcessGivenInstance(String processName, String instanceID, String instanceIP)
focal_class.full_signature: @Override public void terminateProcessGivenInstance(String processName, String instanceID, String instanceIP)
focal_class.identifier: terminateProcessGivenInstance
focal_class.modifiers: @Override public
focal_class.parameters: (String processName, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void terminateProcessGivenInstance(String processName, String instanceID, String instanceIP)
focal_class.class_method_signature: SSMStepDefinitions.terminateCommandOnHealthyInstances(String processName, int numHosts)
focal_class.full_signature: @When("^SSM terminate process \"([^\"]*)\" on (\\d+) instance$") public SSMStepDefinitions terminateCommandOnHealthyInstances(String processName, int numHosts)
focal_class.identifier: terminateCommandOnHealthyInstances
focal_class.modifiers: @When("^SSM terminate process \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String processName, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions terminateCommandOnHealthyInstances(String processName, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.assertCommandExecutionStatus(final String expectedCommandStatus)
focal_class.full_signature: @When("^assertCommand execution status = \"([^\"]*)\"$") public void assertCommandExecutionStatus(final String expectedCommandStatus)
focal_class.identifier: assertCommandExecutionStatus
focal_class.modifiers: @When("^assertCommand execution status = \"([^\"]*)\"$") public
focal_class.parameters: (final String expectedCommandStatus)
focal_class.return: void
focal_class.signature: void assertCommandExecutionStatus(final String expectedCommandStatus)
focal_class.class_method_signature: SSMStepDefinitions.terminateProcessInAvailabilityZone(String processName, int numHosts, String zoneId)
focal_class.full_signature: @When("^SSM terminate process \"([^\"]*)\" on (\\d+) instance in zone \"([^\"]*)\"$") public SSMStepDefinitions terminateProcessInAvailabilityZone(String processName, int numHosts, String zoneId)
focal_class.identifier: terminateProcessInAvailabilityZone
focal_class.modifiers: @When("^SSM terminate process \"([^\"]*)\" on (\\d+) instance in zone \"([^\"]*)\"$") public
focal_class.parameters: (String processName, int numHosts, String zoneId)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions terminateProcessInAvailabilityZone(String processName, int numHosts, String zoneId)
focal_class.class_method_signature: SSMStepDefinitions.spikeCPUGivenInstance(int cores, String instanceID, String instanceIP)
focal_class.full_signature: @Override public void spikeCPUGivenInstance(int cores, String instanceID, String instanceIP)
focal_class.identifier: spikeCPUGivenInstance
focal_class.modifiers: @Override public
focal_class.parameters: (int cores, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void spikeCPUGivenInstance(int cores, String instanceID, String instanceIP)
focal_class.class_method_signature: SSMStepDefinitions.spikeCPUOnHealthyInstances(int numHosts, int cores)
focal_class.full_signature: @When("^SSM CPU spike on (\\d+) instances for (\\d+) cores$") public SSMStepDefinitions spikeCPUOnHealthyInstances(int numHosts, int cores)
focal_class.identifier: spikeCPUOnHealthyInstances
focal_class.modifiers: @When("^SSM CPU spike on (\\d+) instances for (\\d+) cores$") public
focal_class.parameters: (int numHosts, int cores)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions spikeCPUOnHealthyInstances(int numHosts, int cores)
focal_class.class_method_signature: SSMStepDefinitions.terminateProcessOnAllHealthyInstances(String processName)
focal_class.full_signature: @When("^SSM terminate process \"([^\"]*)\"$") public SSMStepDefinitions terminateProcessOnAllHealthyInstances(String processName)
focal_class.identifier: terminateProcessOnAllHealthyInstances
focal_class.modifiers: @When("^SSM terminate process \"([^\"]*)\"$") public
focal_class.parameters: (String processName)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions terminateProcessOnAllHealthyInstances(String processName)
focal_class.class_method_signature: SSMStepDefinitions.diskFullGivenInstance(String volumeType, int size, String instanceID, String instanceIP)
focal_class.full_signature: @Override public void diskFullGivenInstance(String volumeType, int size, String instanceID, String instanceIP)
focal_class.identifier: diskFullGivenInstance
focal_class.modifiers: @Override public
focal_class.parameters: (String volumeType, int size, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void diskFullGivenInstance(String volumeType, int size, String instanceID, String instanceIP)
focal_class.class_method_signature: SSMStepDefinitions.diskFullOnInstance(String volumeType, int size, int numHosts)
focal_class.full_signature: @When("^SSM \"([^\"]*)\" disk full with (\\d+) GB on (\\d+) instance$") public SSMStepDefinitions diskFullOnInstance(String volumeType, int size, int numHosts)
focal_class.identifier: diskFullOnInstance
focal_class.modifiers: @When("^SSM \"([^\"]*)\" disk full with (\\d+) GB on (\\d+) instance$") public
focal_class.parameters: (String volumeType, int size, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions diskFullOnInstance(String volumeType, int size, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.ramDiskFullOnInstance(int size, int numHosts)
focal_class.full_signature: @When("^SSM RAM disk full with (\\d+) GB on (\\d+) instance$") public SSMStepDefinitions ramDiskFullOnInstance(int size, int numHosts)
focal_class.identifier: ramDiskFullOnInstance
focal_class.modifiers: @When("^SSM RAM disk full with (\\d+) GB on (\\d+) instance$") public
focal_class.parameters: (int size, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions ramDiskFullOnInstance(int size, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.blockDomain(String domainName, int numHosts)
focal_class.full_signature: @When("^SSM block domain \"([^\"]*)\" on (\\d+) instances$") public SSMStepDefinitions blockDomain(String domainName, int numHosts)
focal_class.identifier: blockDomain
focal_class.modifiers: @When("^SSM block domain \"([^\"]*)\" on (\\d+) instances$") public
focal_class.parameters: (String domainName, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions blockDomain(String domainName, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.blockDynamoDB( int numHosts)
focal_class.full_signature: @When("^SSM block DynamoDB on (\\d+) instances$") public SSMStepDefinitions blockDynamoDB( int numHosts)
focal_class.identifier: blockDynamoDB
focal_class.modifiers: @When("^SSM block DynamoDB on (\\d+) instances$") public
focal_class.parameters: ( int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions blockDynamoDB( int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.blockS3(int numHosts)
focal_class.full_signature: @When("^SSM block S3 on (\\d+) instances$") public SSMStepDefinitions blockS3(int numHosts)
focal_class.identifier: blockS3
focal_class.modifiers: @When("^SSM block S3 on (\\d+) instances$") public
focal_class.parameters: (int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions blockS3(int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.stopProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.full_signature: @When("^SSM stop (service|process) \"([^\"]*)\" on (\\d+) instance$") public SSMStepDefinitions stopProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.identifier: stopProcessOnHealthyInstances
focal_class.modifiers: @When("^SSM stop (service|process) \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String serviceOrProcessType, String processName, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions stopProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.startProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.full_signature: @When("^SSM start (service|process) \"([^\"]*)\" on (\\d+) instance$") public SSMStepDefinitions startProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.identifier: startProcessOnHealthyInstances
focal_class.modifiers: @When("^SSM start (service|process) \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String serviceOrProcessType, String processName, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions startProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.corruptNetwork(int corruptPercent, int numHosts)
focal_class.full_signature: @When("^SSM corrupt network (\\d+) percent on (\\d+) instances$") public SSMStepDefinitions corruptNetwork(int corruptPercent, int numHosts)
focal_class.identifier: corruptNetwork
focal_class.modifiers: @When("^SSM corrupt network (\\d+) percent on (\\d+) instances$") public
focal_class.parameters: (int corruptPercent, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions corruptNetwork(int corruptPercent, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.injectNetworkLatencyGivenInstance(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.full_signature: @Override public void injectNetworkLatencyGivenInstance(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.identifier: injectNetworkLatencyGivenInstance
focal_class.modifiers: @Override public
focal_class.parameters: (int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void injectNetworkLatencyGivenInstance(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.class_method_signature: SSMStepDefinitions.injectNetworkLatency(int lowerBound, int upperBound, int numHosts)
focal_class.full_signature: @When("^SSM inject network latency (\\d+) ms to (\\d+) ms on (\\d+) instances$") public SSMStepDefinitions injectNetworkLatency(int lowerBound, int upperBound, int numHosts)
focal_class.identifier: injectNetworkLatency
focal_class.modifiers: @When("^SSM inject network latency (\\d+) ms to (\\d+) ms on (\\d+) instances$") public
focal_class.parameters: (int lowerBound, int upperBound, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions injectNetworkLatency(int lowerBound, int upperBound, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.injectPacketLoss(int percentLoss, int numHosts)
focal_class.full_signature: @When("^SSM inject network packet loss (\\d+) percent on (\\d+) instances$") public SSMStepDefinitions injectPacketLoss(int percentLoss, int numHosts)
focal_class.identifier: injectPacketLoss
focal_class.modifiers: @When("^SSM inject network packet loss (\\d+) percent on (\\d+) instances$") public
focal_class.parameters: (int percentLoss, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions injectPacketLoss(int percentLoss, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.blockPortGivenInstance(int portNum, String instanceID, String instanceIP)
focal_class.full_signature: @Override public void blockPortGivenInstance(int portNum, String instanceID, String instanceIP)
focal_class.identifier: blockPortGivenInstance
focal_class.modifiers: @Override public
focal_class.parameters: (int portNum, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void blockPortGivenInstance(int portNum, String instanceID, String instanceIP)
focal_class.class_method_signature: SSMStepDefinitions.blockPort(int portNum, int numHosts)
focal_class.full_signature: @When("^SSM block network port (\\d+) on (\\d+) instances$") public SSMStepDefinitions blockPort(int portNum, int numHosts)
focal_class.identifier: blockPort
focal_class.modifiers: @When("^SSM block network port (\\d+) on (\\d+) instances$") public
focal_class.parameters: (int portNum, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions blockPort(int portNum, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.blockOutboundPort(int portNum, int numHosts)
focal_class.full_signature: @When("^SSM block outbound network port (\\d+) on (\\d+) instances$") public SSMStepDefinitions blockOutboundPort(int portNum, int numHosts)
focal_class.identifier: blockOutboundPort
focal_class.modifiers: @When("^SSM block outbound network port (\\d+) on (\\d+) instances$") public
focal_class.parameters: (int portNum, int numHosts)
focal_class.return: SSMStepDefinitions
focal_class.signature: SSMStepDefinitions blockOutboundPort(int portNum, int numHosts)
focal_class.class_method_signature: SSMStepDefinitions.executeCommand(int numHosts, Command command, String... params)
focal_class.full_signature: private void executeCommand(int numHosts, Command command, String... params)
focal_class.identifier: executeCommand
focal_class.modifiers: private
focal_class.parameters: (int numHosts, Command command, String... params)
focal_class.return: void
focal_class.signature: void executeCommand(int numHosts, Command command, String... params)
focal_class.class_method_signature: SSMStepDefinitions.getInstancesForExecution(int numHosts)
focal_class.full_signature: private List<EC2InstanceTO> getInstancesForExecution(int numHosts)
focal_class.identifier: getInstancesForExecution
focal_class.modifiers: private
focal_class.parameters: (int numHosts)
focal_class.return: List<EC2InstanceTO>
focal_class.signature: List<EC2InstanceTO> getInstancesForExecution(int numHosts)
focal_method.body: @When("^SSM block network port (\\d+) on (\\d+) instances$")
      public SSMStepDefinitions blockPort(int portNum, int numHosts) {
          this.executeCommand(numHosts, Command.BLOCKPORT, String.valueOf(portNum));
          executionStateCache.setBlockPort(true);
          executionStateCache.addPortNum(portNum);
          return this;
      }
focal_method.class_method_signature: SSMStepDefinitions.blockPort(int portNum, int numHosts)
focal_method.full_signature: @When("^SSM block network port (\\d+) on (\\d+) instances$") public SSMStepDefinitions blockPort(int portNum, int numHosts)
focal_method.identifier: blockPort
focal_method.invocations: executeCommand valueOf setBlockPort addPortNum
focal_method.modifiers: @When("^SSM block network port (\\d+) on (\\d+) instances$") public
focal_method.parameters: (int portNum, int numHosts)
focal_method.return: SSMStepDefinitions
focal_method.signature: SSMStepDefinitions blockPort(int portNum, int numHosts)