features.service_client.auth_request.service-client-auth-request-send.feature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-integration-tests Show documentation
Show all versions of sdk-integration-tests Show documentation
Integration tests for the LaunchKey Service SDK for Java
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