All Downloads are FREE. Search and download functionalities are using the official Maven repository.

features.service_client.auth_request.service-client-auth-request-send.feature Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
Feature: Service Client Authorization Request: Can Send Request
  In order to begin an authorization request
  As a Directory Service
  I can create an Authorization Request for a User

  # As we cannot link devices to properly attempt authorization requests, we will simply verify that the
  # requests are formatted properly and can be accepted by the API

  Background:
    Given I created a Directory
    And I have added an SDK Key to the Directory
    And I created a Directory Service

  Scenario: Making a request with a valid User an no linked Devices raises EntityNotFound
    Given I made a Device linking request
    When I attempt to make an Authorization request
    Then a EntityNotFound error occurs

  Scenario: Making a request with an invalid User Throws EntityNotFound
    When I attempt to make an Authorization request for the User identified by "Not a valid user"
    Then a EntityNotFound error occurs

  Scenario: Making a request including context with an invalid User Throws EntityNotFound
    When I attempt to make an Authorization request with the context value "Hello iovation!"
    Then a EntityNotFound error occurs

  @device_testing
  Scenario: Making a request with a valid user device parses the device IDs in the response
    Given I have a linked Device
    When I make an Authorization request
    Then the Authorization Request response Device IDs matches the current Devices list




© 2015 - 2025 Weber Informatics LLC | Privacy Policy