Feature: Deletable Block Storage

  @location @aws
  Scenario: Deploy compute node with deletable block storage
    Given I am authenticated with "ADMIN" role
    And I create a new application with name "compute" and description "Compute node support test" based on the template with name "org.alien4cloud.tests.topologies.computedeletableblock"
    And I Set a unique location policy to "cfy"/"aws" for all nodes
    When I deploy it
    Then I should receive a RestResponse with no error
    # This is a timeout but this will end ASAP.
    And The application's deployment must succeed after 15 minutes
    And I should have a volume for node "BlockStorage"
    And No volume id should be persisted for node "BlockStorage"

  @location @aws
  Scenario: Un deploy compute node with deletable block storage
    Given I am authenticated with "ADMIN" role
    When I undeploy it
    Then I should receive a RestResponse with no error
    Then I should not have a volume for node "BlockStorage"
    And No volume id should be persisted for node "BlockStorage"

Feature: Deletable Block Storage

  @location @aws
  Scenario: Deploy compute node with deletable block storage
    Given I am authenticated with "ADMIN" role
    And I create a new application with name "computedeletableblock" and description "Deletable block storage support test" based on the template with name "org.alien4cloud.tests.topologies.computedeletableblock"
    And I Set a unique location policy to "cfy"/"aws" for all nodes
    When I deploy it
    Then I should receive a RestResponse with no error
    # This is a timeout but this will end ASAP.
    And The application's deployment must succeed after 15 minutes
    And I should have a volume for node "BlockStorage"
    And No volume id should be persisted for node "BlockStorage"

  @location @aws
  Scenario: Un deploy compute node with deletable block storage
    Given I am authenticated with "ADMIN" role
    When I undeploy it
    Then I should receive a RestResponse with no error
    Then I should not have a volume for node "BlockStorage"
    And No volume id should be persisted for node "BlockStorage"

Fix name of the application to deploy.
Fix name of the application to deploy.
