test_class.declarator: elastiCacheStepDefinitions
test_class.modifier: private
test_class.original_string: private ElastiCacheStepDefinitions elastiCacheStepDefinitions;
test_class.type: ElastiCacheStepDefinitions
test_class.var_name: elastiCacheStepDefinitions
test_class.declarator: elastiCacheRaider
test_class.modifier: private
test_class.original_string: private ElastiCacheRaiderImpl elastiCacheRaider;
test_class.type: ElastiCacheRaiderImpl
test_class.var_name: elastiCacheRaider
test_class.declarator: executionStateCache
test_class.modifier: private
test_class.original_string: 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/ElastiCacheStepDefinitionsTest.java
test_class.identifier: ElastiCacheStepDefinitionsTest
test_case.body: @Test
      public void testAttachElastiCacheSubnet() throws Throwable
      {
          executionStateCache.setElastiCacheClusterName("cacheCluster");
          elastiCacheStepDefinitions.attachElastiCacheSubnet("subnet-1234");
      }
test_case.class_method_signature: ElastiCacheStepDefinitionsTest.testAttachElastiCacheSubnet()
test_case.full_signature: @Test public void testAttachElastiCacheSubnet()
test_case.identifier: testAttachElastiCacheSubnet
test_case.invocations: setElastiCacheClusterName attachElastiCacheSubnet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAttachElastiCacheSubnet()
focal_class.declarator: elastiCacheRaider
focal_class.modifier: @Autowired
      @Qualifier("elastiCacheRaiderBean")
      private
focal_class.original_string: @Autowired
      @Qualifier("elastiCacheRaiderBean")
      private ElastiCacheRaider elastiCacheRaider;
focal_class.type: ElastiCacheRaider
focal_class.var_name: elastiCacheRaider
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/ElastiCacheStepDefinitions.java
focal_class.identifier: ElastiCacheStepDefinitions
focal_class.class_method_signature: ElastiCacheStepDefinitions.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: ElastiCacheStepDefinitions.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: ElastiCacheStepDefinitions.ElastiCacheStepDefinitions()
focal_class.full_signature: public  ElastiCacheStepDefinitions()
focal_class.identifier: ElastiCacheStepDefinitions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ElastiCacheStepDefinitions()
focal_class.class_method_signature: ElastiCacheStepDefinitions.givenElastiCacheCluster(String elasticCacheClusterName)
focal_class.full_signature: @Given("^ElastiCache \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName)
focal_class.identifier: givenElastiCacheCluster
focal_class.modifiers: @Given("^ElastiCache \"([^\"]*)\"$") public
focal_class.parameters: (String elasticCacheClusterName)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions givenElastiCacheCluster(String elasticCacheClusterName)
focal_class.class_method_signature: ElastiCacheStepDefinitions.rebootElastiCacheCluster(int numNodes)
focal_class.full_signature: @When("^reboot ElastiCache nodes (\\d+)$") public ElastiCacheStepDefinitions rebootElastiCacheCluster(int numNodes)
focal_class.identifier: rebootElastiCacheCluster
focal_class.modifiers: @When("^reboot ElastiCache nodes (\\d+)$") public
focal_class.parameters: (int numNodes)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions rebootElastiCacheCluster(int numNodes)
focal_class.class_method_signature: ElastiCacheStepDefinitions.assertElastiCacheClusterStatus(String expectedStatus)
focal_class.full_signature: @Then("^assertElastiCache cluster status \"([^\"]*)\"$") public void assertElastiCacheClusterStatus(String expectedStatus)
focal_class.identifier: assertElastiCacheClusterStatus
focal_class.modifiers: @Then("^assertElastiCache cluster status \"([^\"]*)\"$") public
focal_class.parameters: (String expectedStatus)
focal_class.return: void
focal_class.signature: void assertElastiCacheClusterStatus(String expectedStatus)
focal_class.class_method_signature: ElastiCacheStepDefinitions.addElastiCacheNodes(int numNodes)
focal_class.full_signature: @When("^add ElastiCache nodes (\\d+)$") public ElastiCacheStepDefinitions addElastiCacheNodes(int numNodes)
focal_class.identifier: addElastiCacheNodes
focal_class.modifiers: @When("^add ElastiCache nodes (\\d+)$") public
focal_class.parameters: (int numNodes)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions addElastiCacheNodes(int numNodes)
focal_class.class_method_signature: ElastiCacheStepDefinitions.removeElastiCacheNodes(int numNodes)
focal_class.full_signature: @When("^remove ElastiCache nodes (\\d+)$") public ElastiCacheStepDefinitions removeElastiCacheNodes(int numNodes)
focal_class.identifier: removeElastiCacheNodes
focal_class.modifiers: @When("^remove ElastiCache nodes (\\d+)$") public
focal_class.parameters: (int numNodes)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions removeElastiCacheNodes(int numNodes)
focal_class.class_method_signature: ElastiCacheStepDefinitions.detachElastiCacheSubnet(String subnetId)
focal_class.full_signature: @When("^detach ElastiCache subnet \"([^\"]*)\"$") public ElastiCacheStepDefinitions detachElastiCacheSubnet(String subnetId)
focal_class.identifier: detachElastiCacheSubnet
focal_class.modifiers: @When("^detach ElastiCache subnet \"([^\"]*)\"$") public
focal_class.parameters: (String subnetId)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions detachElastiCacheSubnet(String subnetId)
focal_class.class_method_signature: ElastiCacheStepDefinitions.attachElastiCacheSubnet(String subnetId)
focal_class.full_signature: @Then("^attach ElastiCache subnet \"([^\"]*)\"$") public ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId)
focal_class.identifier: attachElastiCacheSubnet
focal_class.modifiers: @Then("^attach ElastiCache subnet \"([^\"]*)\"$") public
focal_class.parameters: (String subnetId)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId)
focal_class.class_method_signature: ElastiCacheStepDefinitions.changeElastiCacheSecurityGroup(String secGroupFrom, String secGroupTo)
focal_class.full_signature: @When("^change ElastiCache security group from \"([^\"]*)\" to \"([^\"]*)\"$") public ElastiCacheStepDefinitions changeElastiCacheSecurityGroup(String secGroupFrom, String secGroupTo)
focal_class.identifier: changeElastiCacheSecurityGroup
focal_class.modifiers: @When("^change ElastiCache security group from \"([^\"]*)\" to \"([^\"]*)\"$") public
focal_class.parameters: (String secGroupFrom, String secGroupTo)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions changeElastiCacheSecurityGroup(String secGroupFrom, String secGroupTo)
focal_class.class_method_signature: ElastiCacheStepDefinitions.givenElastCacheNode(String nodeName)
focal_class.full_signature: @Given("^ElastiCache node \"([^\"]*)\"$") public ElastiCacheStepDefinitions givenElastCacheNode(String nodeName)
focal_class.identifier: givenElastCacheNode
focal_class.modifiers: @Given("^ElastiCache node \"([^\"]*)\"$") public
focal_class.parameters: (String nodeName)
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions givenElastCacheNode(String nodeName)
focal_class.class_method_signature: ElastiCacheStepDefinitions.rebootElastiCacheNode()
focal_class.full_signature: @When("^reboot ElastiCache node") public ElastiCacheStepDefinitions rebootElastiCacheNode()
focal_class.identifier: rebootElastiCacheNode
focal_class.modifiers: @When("^reboot ElastiCache node") public
focal_class.parameters: ()
focal_class.return: ElastiCacheStepDefinitions
focal_class.signature: ElastiCacheStepDefinitions rebootElastiCacheNode()
focal_class.class_method_signature: ElastiCacheStepDefinitions.assertElastiCacheNodeStatus(String expectedStatus)
focal_class.full_signature: @Then("^assertElastiCache node status \"([^\"]*)\"$") public void assertElastiCacheNodeStatus(String expectedStatus)
focal_class.identifier: assertElastiCacheNodeStatus
focal_class.modifiers: @Then("^assertElastiCache node status \"([^\"]*)\"$") public
focal_class.parameters: (String expectedStatus)
focal_class.return: void
focal_class.signature: void assertElastiCacheNodeStatus(String expectedStatus)
focal_method.body: @Then("^attach ElastiCache subnet \"([^\"]*)\"$")
      public ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId) throws Throwable {
          String clusterName = executionStateCache.getElastiCacheClusterName();
          if (clusterName == null || clusterName.isEmpty()) {
              throw new RuntimeException("Unable to reboot elastiCache cluster as no cluster information is available");
          }
  
          elastiCacheRaider.attachSubnet(clusterName, subnetId);
          return this;
      }
focal_method.class_method_signature: ElastiCacheStepDefinitions.attachElastiCacheSubnet(String subnetId)
focal_method.full_signature: @Then("^attach ElastiCache subnet \"([^\"]*)\"$") public ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId)
focal_method.identifier: attachElastiCacheSubnet
focal_method.invocations: getElastiCacheClusterName isEmpty attachSubnet
focal_method.modifiers: @Then("^attach ElastiCache subnet \"([^\"]*)\"$") public
focal_method.parameters: (String subnetId)
focal_method.return: ElastiCacheStepDefinitions
focal_method.signature: ElastiCacheStepDefinitions attachElastiCacheSubnet(String subnetId)