Open
Conversation
Contributor
|
Hi @ashleyfrieze thanks for contributing. As this stands we probably wouldn't want to add a testing feature to the sdk in this manner. We try our best to not add dependencies and given this is specifically for testing we would probably want this separated somehow. This helped add to our thoughts on releasing some sort of package for this purpose (testing related package). For the time being I will leave this open for us to look at and discuss in the coming days hopefully. I just wanted to add something here so you know our thoughts. Thanks again, and we will definitely reference this as we discuss further this evolution for the SDK |
Author
|
@ryanbas21 - thanks for the feedback. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
None.
Description
While testing device binding journeys using test automation, it's incredibly useful to be able to simulate both device binding and device login.
This change offers a simple client which can be used as an emulator. It provides valid responses to journeys and stores a keypair which can be used, within a test, to mimic a single bound device. It's of no specific use to production scenarios, but helps for testing scenarios where the FR SDK is being used by a test suite.
Discussed with @george-bafaloukas-forgerock - we'd like to offer this as a submission to the OS SDK, which will put it in a useful place for us to use it across various codebases, as well as for other customers to use.
Type of Change
Please Delete options that are not relevant
How Has This Been Tested?
We've used this device emulator code against a Device Binding journey and it works. While there's a way we could simulate the back end and run this against the back end, it would be pretty onerous and wouldn't prove much.
Definition of Done
Check all that apply
Documentation