Skip to content

Commit

Permalink
GPII-2538: Fixed all unit and acceptance tests affected by the implem…
Browse files Browse the repository at this point in the history
…entation of secured /untrusted-settings endpoint.
  • Loading branch information
cindyli committed Sep 23, 2017
1 parent 3db7f97 commit 3f4f3ce
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 39 deletions.
5 changes: 2 additions & 3 deletions gpii/node_modules/accessRequester/src/accessRequester.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 2 additions & 13 deletions gpii/node_modules/accessRequester/test/AccessRequesterTests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gpii/node_modules/flowManager/src/UntrustedFlowManager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 5 additions & 16 deletions gpii/node_modules/flowManager/test/SettingsDataSourceTests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions testData/clientCredentials/pilot.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"id": "pilot-computer",
"secret": "pilot-computer-secret"
"client_id": "pilot-computer",
"client_secret": "pilot-computer-secret"
}
1 change: 1 addition & 0 deletions tests/UntrustedBrowserChannelTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fluid.require("%flowManager/test/shared/BrowserChannelTestDefs.js");

fluid.registerNamespace("gpii.tests.untrusted.flowManager.browserChannel");

// The test pouchdb data is from %universal/tests/platform/cloud/OAuth2AcceptanceDataStore.json
gpii.tests.untrusted.flowManager.browserChannel.testDefs = fluid.transform(gpii.tests.flowManager.browserChannel.testDefs, function (testDefIn) {
var testDef = fluid.extend(true, {}, testDefIn, {
gradeNames: ["gpii.test.pouch.pouchTestCaseHolder"],
Expand Down
1 change: 1 addition & 0 deletions tests/UntrustedDevelopmentTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ gpii.loadTestingSupport();

fluid.registerNamespace("gpii.tests.untrusted.development");

// The test pouchdb data is from %universal/tests/platform/cloud/OAuth2AcceptanceDataStore.json
gpii.tests.untrusted.development.testDefs = fluid.transform(gpii.tests.development.testDefs, function (testDefIn) {
var testDef = fluid.extend(true, {}, testDefIn, {
config: {
Expand Down
1 change: 1 addition & 0 deletions tests/all-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var testIncludes = [
"../gpii/node_modules/flowManager/test/UpdateTests.js",
"../gpii/node_modules/flowManager/test/BrowserChannelTests.js",
"../gpii/node_modules/flowManager/test/GetUserTokenTests.js",
"../gpii/node_modules/flowManager/test/SettingsDataSourceTests.js",
"../gpii/node_modules/gpii-oauth2/gpii-oauth2-datastore/test/DbDataStoreTests.js",
"../gpii/node_modules/matchMakerFramework/test/MatchMakerFrameworkTests.js",
"../gpii/node_modules/flatMatchMaker/test/FlatMatchMakerTests.js",
Expand Down
32 changes: 32 additions & 0 deletions tests/platform/cloud/OAuth2AcceptanceDataStore.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,30 @@
"gpiiToken": "alice_gpii_token",
"userId": "user-2"
},
{
"_id": "gpiiToken-2",
"type": "gpiiToken",
"gpiiToken": "chrome2",
"userId": null
},
{
"_id": "gpiiToken-3",
"type": "gpiiToken",
"gpiiToken": "chrome_and_firefox",
"userId": null
},
{
"_id": "gpiiToken-4",
"type": "gpiiToken",
"gpiiToken": "testUser1",
"userId": null
},
{
"_id": "gpiiToken-5",
"type": "gpiiToken",
"gpiiToken": "sammy",
"userId": null
},
{
"_id": "client-1",
"type": "webPrefsConsumerClient",
Expand Down Expand Up @@ -69,6 +93,14 @@
"oauth2ClientSecret": "Bakersfield-AJC-client-secret",
"userId": "user-1"
},
{
"_id": "client-8",
"type": "gpiiAppInstallationClient",
"name": "Pilot computers",
"oauth2ClientId": "pilot-computer",
"oauth2ClientSecret": "pilot-computer-secret",
"userId": "user-1"
},
{
"_id": "authorization-1",
"type": "webPrefsConsumerAuthorization",
Expand Down

0 comments on commit 3f4f3ce

Please sign in to comment.