<commit_before>Feature: Manage Nodetemplates of a topology

  Background:
    Given I am authenticated with "ADMIN" role
    And I upload the archive "tosca base types 1.0"
    And I upload the archive "sample java types 1.0"
    And I create a new application with name "watchmiddleearth" and description "Use my great eye to find frodo and the ring."
    And I add a node template "Compute1" related to the "tosca.nodes.Compute:1.0" node type
    And I add a node template "Compute2" related to the "tosca.nodes.Compute:1.0" node type

  Scenario: Add/Remove group and group member
    When I add the node "Compute1" to the group "HA_group"
    Then I should receive a RestResponse with no error
    And The RestResponse should contain a group named "HA_group" whose members are "Compute1" and policy is "tosca.policy.ha"
    When I add the node "Compute2" to the group "HA_group"
    Then The RestResponse should contain a group named "HA_group" whose members are "Compute1,Compute2" and policy is "tosca.policy.ha"
    When I update the name of the group "HA_group" to "Completely_new_HA_group"
    Then The RestResponse should contain a group named "Completely_new_HA_group" whose members are "Compute1,Compute2" and policy is "tosca.policy.ha"
    When I remove the node "Compute1" from the group "Completely_new_HA_group"
    Then The RestResponse should contain a group named "Completely_new_HA_group" whose members are "Compute2" and policy is "tosca.policy.ha"
    When I remove the group "Completely_new_HA_group"
    Then The RestResponse should not contain any group<commit_msg>[ALIEN-891] add IT Tests scenari<commit_after>Feature: Manage Nodetemplates of a topology

  Background:
    Given I am authenticated with "ADMIN" role
    And I upload the archive "tosca base types 1.0"
    And I upload the archive "sample java types 1.0"
    And I create a new application with name "watchmiddleearth" and description "Use my great eye to find frodo and the ring."
    And I add a node template "Compute1" related to the "tosca.nodes.Compute:1.0" node type
    And I add a node template "Compute2" related to the "tosca.nodes.Compute:1.0" node type

  Scenario: Add/Remove group and group member
    When I add the node "Compute1" to the group "HA_group"
    Then I should receive a RestResponse with no error
    And The RestResponse should contain a group named "HA_group" whose members are "Compute1" and policy is "tosca.policy.ha"
    When I add the node "Compute2" to the group "HA_group"
    Then The RestResponse should contain a group named "HA_group" whose members are "Compute1,Compute2" and policy is "tosca.policy.ha"
    When I update the name of the group "HA_group" to "Completely_new_HA_group"
    Then The RestResponse should contain a group named "Completely_new_HA_group" whose members are "Compute1,Compute2" and policy is "tosca.policy.ha"
    When I remove the node "Compute1" from the group "Completely_new_HA_group"
    Then The RestResponse should contain a group named "Completely_new_HA_group" whose members are "Compute2" and policy is "tosca.policy.ha"
    When I remove the group "Completely_new_HA_group"
    Then The RestResponse should not contain any group
    
  Scenario: Remove node template
    Given I add the node "Compute1" to the group "HA_group"
    And I add the node "Compute2" to the group "HA_group"
    When I delete a node template "Compute1" from the topology
    Then I should receive a RestResponse with no error
    And The RestResponse should contain a group named "HA_group" whose members are "Compute2" and policy is "tosca.policy.ha"
    
  Scenario: Rename node template
    Given I add the node "Compute1" to the group "HA_group"
    And I add the node "Compute2" to the group "HA_group"
    When I update the node template's name from "Compute1" to "Compute1bis"
    Then I should receive a RestResponse with no error
    And The RestResponse should contain a group named "HA_group" whose members are "Compute1bis,Compute2" and policy is "tosca.policy.ha"
{'fraction_non_alphanumeric': 0.05489319423745653, 'fraction_numerical': 0.012667660208643815, 'mean_word_length': 4.027465667915106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1118818', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1197, 'n_words': 558}