UNPKG

passport-fiware-oauth

Version:

FIWARE (OAuth) authentication strategies for Passport.

45 lines (44 loc) 3.9 kB
<testsuite name="Vows test" tests="12" timestamp="Wed, 18 Jul 2018 14:50:55 GMT" errors="1" failures="3" skip="0" time="1.169"> <testcase classname="passport-fiware-oauth" name="module: should report a version" /> <testcase classname="passport-fiware-oauth" name="module: should export OAuth 2.0 strategy" /> <testcase classname="FIWAREStrategy" name="strategy: should be named fiware" /> <testcase classname="FIWAREStrategy" name="strategy: should set correct headers" /> <testcase classname="FIWAREStrategy" name="strategy when providing the IdM host: should have changed the default host" /> <testcase classname="FIWAREStrategy" name="strategy when loading user profile and encountering an error when told to load user profile: should error"><error type="vows.event.broken" message="Broken test"><![CDATA[expected non-null value, got null // /Users/fdelavega/repos/passport-fiware-oauth/test/oauth2-test.js:135]]></error></testcase> <testcase classname="FIWAREStrategy" name="strategy when loading user profile and encountering an error when told to load user profile: should wrap error in InternalOAuthError"><skipped type="vows.event.errored" message="Errored test"><![CDATA[TypeError: Cannot read property 'constructor' of null at Object.should wrap error in InternalOAuthError (/Users/fdelavega/repos/passport-fiware-oauth/test/oauth2-test.js:138:26) at runTest (/Users/fdelavega/repos/passport-fiware-oauth/node_modules/vows/lib/vows.js:136:26) at EventEmitter.&lt;anonymous&gt; (/Users/fdelavega/repos/passport-fiware-oauth/node_modules/vows/lib/vows.js:81:9) at emitOne (events.js:121:20) at EventEmitter.emit (events.js:211:7) at EventEmitter.options.Emitter.emit (/Users/fdelavega/repos/passport-fiware-oauth/node_modules/vows/lib/vows.js:241:24) at that.emitter.ctx (/Users/fdelavega/repos/passport-fiware-oauth/node_modules/vows/lib/vows/context.js:32:52) at Object.env.callback (/Users/fdelavega/repos/passport-fiware-oauth/node_modules/vows/lib/vows/context.js:46:29) at done (/Users/fdelavega/repos/passport-fiware-oauth/test/oauth2-test.js:126:16) at reqHandler (/Users/fdelavega/repos/passport-fiware-oauth/lib/passport-fiware-oauth/oauth2.js:9:3058)]]></skipped></testcase> <testcase classname="FIWAREStrategy" name="strategy when loading user profile and encountering an error when told to load user profile: should not load profile"><error type="vows.event.broken" message="Broken test"><![CDATA[expected { provider: 'fiware', id: undefined, displayName: undefined, emails: [ { value: undefined } ], email: undefined, roles: undefined, organizations: undefined, appId: undefined, _raw: '{&quot;error&quot;: {&quot;message&quot;: &quot;Access Token access-token not found&quot;, &quot;code&quot;: 404, &quot;title&quot;: &quot;Not Found&quot;}}', _json: { error: { message: 'Access Token access-token not found', code: 404, title: 'Not Found' } } } to be undefined // /Users/fdelavega/repos/passport-fiware-oauth/test/oauth2-test.js:141]]></error></testcase> <testcase classname="FIWAREStrategy" name="strategy when loading user profile when told to load user profile: should not error" /> <testcase classname="FIWAREStrategy" name="strategy when loading user profile when told to load user profile: should load profile"><error type="vows.event.broken" message="Broken test"><![CDATA[expected 'fiware-user-name', got undefined (==) // /Users/fdelavega/repos/passport-fiware-oauth/node_modules/vows/lib/assert/macros.js:14]]></error></testcase> <testcase classname="FIWAREStrategy" name="strategy when loading user profile when told to load user profile: should set raw property" /> <testcase classname="FIWAREStrategy" name="strategy when loading user profile when told to load user profile: should set json property" /> </testsuite>