Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-adapter-testsuite
Commits
89f44496
Unverified
Commit
89f44496
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: clearer grammar for token scenarios
parent
06cefe4e
This commit is part of merge request
!5
. Comments created here will be created in the context of that merge request.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
features/adapter_token-valid.feature
features/adapter_token-valid.feature
+3
-3
No files found.
features/adapter_token-valid.feature
Edit
View file @
89f44496
Feature
:
Is the token valid?
Feature
:
Is the token valid?
The adapter tokenValid method works as expected
The adapter tokenValid method works as expected
Scenario
:
If adapter has not authed t
oken is invalid
Scenario
:
If adapter has not authed t
hen the tokenValid returns false
Given
valid config
Given
valid config
When
the adapter instance is created
When
the adapter instance is created
Then
tokenValid returns false
Then
tokenValid returns false
Scenario
:
If credentials.expiry is in the future token is valid
Scenario
:
If credentials.expiry is in the future
then the
token is valid
Given
valid config
Given
valid config
When
the adapter instance is created
When
the adapter instance is created
When
the auth method is called
When
the auth method is called
When
the token expiry is in the future
When
the token expiry is in the future
Then
tokenValid returns true
Then
tokenValid returns true
Scenario
:
If credentials.expiry is in the past token is invalid
Scenario
:
If credentials.expiry is in the past
then the
token is invalid
Given
valid config
Given
valid config
When
the adapter instance is created
When
the adapter instance is created
When
the auth method is called
When
the auth method is called
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment