@user @create @create_object <%= @formatter.get_fixture('providers/all').map{|provider| "@#{provider}"}.join(" ") %>
Feature: Create users

<% user = @formatter.get_fixture('user/superuser') %>
<% generate_create_path_scenarios_without_401("Create user", "/v3/user", user, @formatter.get_fixture('user/mandatory_fields')) do %>
    And store value '<%= user['id'] %>' in variable 'username'
    And store value '<%= user['password'] %>' in variable 'password'
<% end %>

<% user = @formatter.get_fixture('user/tinyuser') %>
  Scenario: Create tinyuser
    When I send POST '/v3/user' query with JSON body
    """
    <%= @formatter.json('user/tinyuser') %>
    """
    Then response should be '201'
    And the Content-Type header should include 'application/json'
    And store value '<%= user['id'] %>' in variable 'username_without_privileges'
    And store value '<%= user['password'] %>' in variable 'password_without_privileges'

