features.directory_client.services.public_keys.directory-client-service-public-keys-update.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: Directory clients can update Directory Service Public Keys
In order to manage the Public Keys in the Directory Service Public Key rotation
As a Directory client
I can update a Public Key for a Directory Service
Background:
Given I created a Directory
And I created a Directory Service
And I added a Public Key to the Directory Service which is active and expires on "2000-01-01T00:00:00Z"
Scenario: Updating active flag actually updates the record
When I updated the Directory Service Public Key to inactive
And I retrieve the current Directory Service's Public Keys
Then the Directory Service Public Key is inactive
Scenario: Updating expires actually updates the record
When I updated the Directory Service Public Key expiration date to "2001-02-03T04:05:06Z"
And I retrieve the current Directory Service's Public Keys
Then the Directory Service Public Key Expiration Date is "2001-02-03T04:05:06Z"
Scenario: Attempting to update a Public Key for an invalid Service throws a Forbidden exception
When I attempt to update a Public Key for the Directory Service with the ID "eba60cb8-c649-11e7-abc4-cec278b6b50a"
Then a Forbidden error occurs
Scenario: Attempting to update an invalid Public Key for a Service throws a Forbidden exception
When I attempt to update a Public Key identified by "aa:bb:cc:dd:ee:ff:11:22:33:44:55:66:77:88:99:00" for the Directory Service
Then a PublicKeyDoesNotExist error occurs
© 2015 - 2025 Weber Informatics LLC | Privacy Policy