This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tewksbum
committed
Aug 1, 2017
1 parent
3be81a8
commit 9b87618
Showing
7 changed files
with
346 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,34 @@ | ||
@identity @identity_get | ||
Feature: Search identity | ||
... | ||
With proper credentials | ||
return the proper view of an identity | ||
scoped to tin, bronze, gold, or silver | ||
|
||
Why: | ||
- Both internal and external systems can benefit from the medaled identity views we've stitched and enhanced | ||
- tons of applications of how we could externalize what we know about an identity for 3rd party services | ||
|
||
Rules: | ||
- ... | ||
- need to be very locked down to make sure we only give access to proper requests. Fatal place for leaks. | ||
|
||
Background: | ||
Given there are Identity records as follows | ||
Background: | ||
Given there are Identity records as follows: | ||
| identityKey | | ||
| TIN_RECORD | | ||
| BRONZE_RECORD | | ||
| GOLD_RECORD | | ||
|
||
@acceptance | ||
Scenario Outline: Updare received for Identity "match" field | ||
Given request contains botKey with right access level | ||
When an Identity search request by <matchField> for <medal> type is received | ||
Then return the requested Identity record(s) or an appropriate response | ||
|
||
# these are probably a REALLY good example as when to use examples? | ||
@acceptance | ||
Scenario: Request for identity by tinId | ||
Given | ||
When | ||
Then | ||
|
||
@acceptance | ||
Scenario: Request for identity by bot+p+pid | ||
Given | ||
When | ||
Then | ||
|
||
@acceptance | ||
Scenario: Request for identity by email | ||
Given | ||
When | ||
Then | ||
|
||
@acceptance | ||
Scenario: Request for identity by browserId | ||
Given | ||
When | ||
Then | ||
|
||
Examples: | ||
| matchField | medal | | ||
| tinId | tin | | ||
| email | bronze | | ||
| browserId | silver | | ||
| p + pid | gold | | ||
| foreignId | | ||
| phone | | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Running "jshint:all" (jshint) task | ||
>> 1 file lint free. | ||
|
||
Running "exec:run_cucumber_tests" (exec) task | ||
[36m@identity @identity_post[39m | ||
Feature: alias identity | ||
|
||
One off condition. Used when a known foreignId wants to be applied | ||
directly against a known tin (a.k.a. identityId). | ||
|
||
Why: | ||
- Cross linking match keys is one of the most important things we can do. | ||
|
||
Rules: | ||
- ... | ||
|
||
[36m@for_testing @acceptance @for_testing[39m | ||
Scenario: Alias called for a known identity | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mWhen an aliased foreignId is received[39m | ||
[36mThen review medal match when upserting an Identity tin record[39m | ||
[36mAnd push update to all medal Identity views[39m | ||
[36mAnd push impacted Identity rollup to related services[39m | ||
|
||
Failures: | ||
|
||
1) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/alias_identity.feature:14[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
Warnings: | ||
|
||
1) Scenario: [1mAlias called for a known identity[22m - [90mfeatures/identity/alias_identity.feature:21[39m | ||
Step: [1mWhen an aliased foreignId is received[22m - [90mfeatures/identity/alias_identity.feature:22[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.When(/^an aliased foreignId is received$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
1 scenario ([31m1 ambiguous[39m) | ||
5 steps ([31m1 ambiguous[39m, [33m1 undefined[39m, [36m3 skipped[39m) | ||
0m00.000s | ||
>> Exited with code: 1. | ||
Warning: Task "exec:run_cucumber_tests" failed. Use --force to continue. | ||
|
||
Aborted due to warnings. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
Running "jshint:all" (jshint) task | ||
>> 1 file lint free. | ||
|
||
Running "exec:run_cucumber_tests" (exec) task | ||
[36m@identity @identity_get[39m | ||
Feature: Search identity | ||
|
||
With proper credentials | ||
return the proper view of an identity | ||
scoped to tin, bronze, gold, or silver | ||
|
||
Why: | ||
- tons of applications of how we could externalize what we know about an identity for 3rd party services | ||
|
||
Rules: | ||
- need to be very locked down to make sure we only give access to proper requests. Fatal place for leaks. | ||
|
||
[36m@for_testing @acceptance @for_testing @identity @identity_get[39m | ||
Scenario Outline: Updare received for Identity "match" field | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mGiven request contains botKey with right access level[39m | ||
[33mWhen an Identity search request by tinId for tin is received[39m | ||
[33mThen return the requested Identity record(s) or an appropriate response[39m | ||
|
||
[36m@for_testing @acceptance @for_testing @identity @identity_get[39m | ||
Scenario Outline: Updare received for Identity "match" field | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mGiven request contains botKey with right access level[39m | ||
[33mWhen an Identity search request by email for bronze is received[39m | ||
[33mThen return the requested Identity record(s) or an appropriate response[39m | ||
|
||
[36m@for_testing @acceptance @for_testing @identity @identity_get[39m | ||
Scenario Outline: Updare received for Identity "match" field | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mGiven request contains botKey with right access level[39m | ||
[33mWhen an Identity search request by browserId for silver is received[39m | ||
[33mThen return the requested Identity record(s) or an appropriate response[39m | ||
|
||
[36m@for_testing @acceptance @for_testing @identity @identity_get[39m | ||
Scenario Outline: Updare received for Identity "match" field | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mGiven request contains botKey with right access level[39m | ||
[33mWhen an Identity search request by p + pid for gold is received[39m | ||
[33mThen return the requested Identity record(s) or an appropriate response[39m | ||
|
||
[36m@for_testing @acceptance @for_testing @identity @identity_get[39m | ||
Scenario Outline: Updare received for Identity "match" field | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mGiven request contains botKey with right access level[39m | ||
[33mWhen an Identity search request by foreignId for undefined is received[39m | ||
[33mThen return the requested Identity record(s) or an appropriate response[39m | ||
|
||
[36m@for_testing @acceptance @for_testing @identity @identity_get[39m | ||
Scenario Outline: Updare received for Identity "match" field | ||
[31mGiven there are Identity records as follows:[39m | ||
| [31midentityKey [39m | | ||
| [31mTIN_RECORD [39m | | ||
| [31mBRONZE_RECORD[39m | | ||
| [31mGOLD_RECORD [39m | | ||
[33mGiven request contains botKey with right access level[39m | ||
[33mWhen an Identity search request by phone for undefined is received[39m | ||
[33mThen return the requested Identity record(s) or an appropriate response[39m | ||
|
||
Failures: | ||
|
||
1) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/get_identity.feature:15[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
2) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/get_identity.feature:15[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
3) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/get_identity.feature:15[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
4) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/get_identity.feature:15[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
5) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/get_identity.feature:15[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
6) Background: | ||
Step: [1mGiven there are Identity records as follows:[22m - [90mfeatures/identity/get_identity.feature:15[39m | ||
Message: | ||
[31mMultiple step definitions match: | ||
/^there are Identity records as follows:$/ - features/dialog/step_definition.js:25 | ||
/^there are Identity records as follows:$/ - features/event/step_definition.js:24 | ||
/^there are Identity records as follows:$/ - features/identity/step_definition.js:23[39m | ||
|
||
Warnings: | ||
|
||
1) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:29[39m | ||
Step: [1mGiven request contains botKey with right access level[22m - [90mfeatures/identity/get_identity.feature:23[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.Given(/^request contains botKey with right access level$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
2) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:29[39m | ||
Step: [1mWhen an Identity search request by tinId for tin is received[22m - [90mfeatures/identity/get_identity.feature:24[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.When(/^an Identity search request by (.*) for (.*) is received$/, function (matchField, medal, callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
3) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:29[39m | ||
Step: [1mThen return the requested Identity record(s) or an appropriate response[22m - [90mfeatures/identity/get_identity.feature:25[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.Then(/^return the requested Identity record\(s\) or an appropriate response$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
4) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:30[39m | ||
Step: [1mGiven request contains botKey with right access level[22m - [90mfeatures/identity/get_identity.feature:23[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.Given(/^request contains botKey with right access level$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
5) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:30[39m | ||
Step: [1mWhen an Identity search request by email for bronze is received[22m - [90mfeatures/identity/get_identity.feature:24[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.When(/^an Identity search request by (.*) for (.*) is received$/, function (matchField, medal, callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
6) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:30[39m | ||
Step: [1mThen return the requested Identity record(s) or an appropriate response[22m - [90mfeatures/identity/get_identity.feature:25[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.Then(/^return the requested Identity record\(s\) or an appropriate response$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
7) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:31[39m | ||
Step: [1mGiven request contains botKey with right access level[22m - [90mfeatures/identity/get_identity.feature:23[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.Given(/^request contains botKey with right access level$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
8) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:31[39m | ||
Step: [1mWhen an Identity search request by browserId for silver is received[22m - [90mfeatures/identity/get_identity.feature:24[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.When(/^an Identity search request by (.*) for (.*) is received$/, function (matchField, medal, callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
9) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:31[39m | ||
Step: [1mThen return the requested Identity record(s) or an appropriate response[22m - [90mfeatures/identity/get_identity.feature:25[39m | ||
Message: | ||
[33mUndefined. Implement with the following snippet: | ||
|
||
this.Then(/^return the requested Identity record\(s\) or an appropriate response$/, function (callback) { | ||
// Write code here that turns the phrase above into concrete actions | ||
callback(null, 'pending'); | ||
});[39m | ||
|
||
10) Scenario: [1mUpdare received for Identity "match" field[22m - [90mfeatures/identity/get_identity.feature:32[39m | ||
Step: [1mGiven request contains botKey with right access level[22m - [90mfeatures/identity/get_identity.feature:23[39m | ||
Message: | ||
[33mUndefined. Implement wi>> Exited with code: 1. | ||
Warning: Task "exec:run_cucumber_tests" failed. Use --force to continue. | ||
|
||
Aborted due to warnings. |
Oops, something went wrong.