Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nodejs-oauth2orize.spec'], logger=timeout=0chrootPath='/var/lib/mock/fedora-rawhide-x86_64-mockbuilder-5946/root'printOutput=Falseenv={'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}uid=1001shell=Falseuser='mockbuild'nspawn_args=[]gid=135) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nodejs-oauth2orize.spec'] with env {'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/nodejs-oauth2orize-1.8.0-1.fc27.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nodejs-oauth2orize.spec'], logger=timeout=0chrootPath='/var/lib/mock/fedora-rawhide-x86_64-mockbuilder-5946/root'printOutput=Falseenv={'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}uid=1001shell=Falseuser='mockbuild'nspawn_args=[]gid=135) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nodejs-oauth2orize.spec'] with env {'LANG': 'en_US.UTF-8', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vdL1ST + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/oauth2orize-1.8.0.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd package + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + cd package + /usr/bin/bzip2 -dc /builddir/build/SOURCES/tests-1.8.0.tar.bz2 + /usr/bin/tar -xvvof - drwxrwxr-x root/root 0 2017-04-19 12:36 test/ drwxrwxr-x root/root 0 2017-04-19 12:36 test/bootstrap/ -rw-rw-r-- root/root 150 2017-04-19 12:36 test/bootstrap/node.js drwxrwxr-x root/root 0 2017-04-19 12:36 test/errors/ -rw-rw-r-- root/root 4634 2017-04-19 12:36 test/errors/authorizationerror.test.js -rw-rw-r-- root/root 1179 2017-04-19 12:36 test/errors/badrequesterror.test.js -rw-rw-r-- root/root 1165 2017-04-19 12:36 test/errors/forbiddenerror.test.js -rw-rw-r-- root/root 4454 2017-04-19 12:36 test/errors/tokenerror.test.js drwxrwxr-x root/root 0 2017-04-19 12:36 test/exchange/ -rw-rw-r-- root/root 15416 2017-04-19 12:36 test/exchange/authorizationCode.test.js -rw-rw-r-- root/root 19098 2017-04-19 12:36 test/exchange/clientCredentials.test.js -rw-rw-r-- root/root 23516 2017-04-19 12:36 test/exchange/password.test.js -rw-rw-r-- root/root 21757 2017-04-19 12:36 test/exchange/refreshToken.test.js drwxrwxr-x root/root 0 2017-04-19 12:36 test/grant/ -rw-rw-r-- root/root 42582 2017-04-19 12:36 test/grant/code.test.js -rw-rw-r-- root/root 44039 2017-04-19 12:36 test/grant/token.test.js drwxrwxr-x root/root 0 2017-04-19 12:36 test/middleware/ -rw-rw-r-- root/root 47163 2017-04-19 12:36 test/middleware/authorization.immediate.test.js -rw-rw-r-- root/root 33609 2017-04-19 12:36 test/middleware/authorization.test.js -rw-rw-r-- root/root 10403 2017-04-19 12:36 test/middleware/authorizationErrorHandler.test.js -rw-rw-r-- root/root 43042 2017-04-19 12:36 test/middleware/decision.test.js -rw-rw-r-- root/root 16722 2017-04-19 12:36 test/middleware/errorHandler.test.js -rw-rw-r-- root/root 77491 2017-04-19 12:36 test/middleware/resume.test.js -rw-rw-r-- root/root 2918 2017-04-19 12:36 test/middleware/token.test.js -rw-rw-r-- root/root 18470 2017-04-19 12:36 test/middleware/transactionLoader.test.js drwxrwxr-x root/root 0 2017-04-19 12:36 test/mock/ -rw-rw-r-- root/root 832 2017-04-19 12:36 test/mock/store.js -rw-rw-r-- root/root 1846 2017-04-19 12:36 test/package.test.js -rw-rw-r-- root/root 8095 2017-04-19 12:36 test/server.exchange.test.js -rw-rw-r-- root/root 9879 2017-04-19 12:36 test/server.grant.test.js -rw-rw-r-- root/root 8943 2017-04-19 12:36 test/server.request.test.js -rw-rw-r-- root/root 3355 2017-04-19 12:36 test/server.response.error.test.js -rw-rw-r-- root/root 5641 2017-04-19 12:36 test/server.response.test.js -rw-rw-r-- root/root 10245 2017-04-19 12:36 test/server.serialization.test.js -rw-rw-r-- root/root 4901 2017-04-19 12:36 test/server.test.js -rw-rw-r-- root/root 3863 2017-04-19 12:36 test/unorderedlist.test.js + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8ncrxf + umask 022 + cd /builddir/build/BUILD + cd package + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.pBGlcB + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64 ++ dirname /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64 + cd package + mkdir -p /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64/usr/lib/node_modules/oauth2orize + cp -pr package.json lib/ /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64/usr/lib/node_modules/oauth2orize + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --ver-rel 1.8.0-1.fc27 --unique-debug-arch x86_64 --unique-debug-src-base nodejs-oauth2orize --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/package find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Mzv6QX + umask 022 + cd /builddir/build/BUILD + cd package + /usr/lib/rpm/nodejs-symlink-deps /usr/lib/node_modules --check + /usr/bin/node -e 'require("./")' + /usr/bin/mocha --require test/bootstrap/node test/package.test.js test/server.exchange.test.js test/server.grant.test.js test/server.request.test.js test/server.response.error.test.js test/server.response.test.js test/server.serialization.test.js test/server.test.js test/unorderedlist.test.js test/errors/authorizationerror.test.js test/errors/badrequesterror.test.js test/errors/forbiddenerror.test.js test/errors/tokenerror.test.js test/exchange/authorizationCode.test.js test/exchange/clientCredentials.test.js test/exchange/password.test.js test/exchange/refreshToken.test.js test/grant/code.test.js test/grant/token.test.js test/middleware/authorization.immediate.test.js test/middleware/authorization.test.js test/middleware/authorizationErrorHandler.test.js test/middleware/decision.test.js test/middleware/errorHandler.test.js test/middleware/resume.test.js test/middleware/token.test.js test/middleware/transactionLoader.test.js oauth2orize ✓ should export createServer ✓ should export middleware ✓ should export grants ✓ should export aliased grants ✓ should export exchanges ✓ should export aliased exchanges ✓ should export Error constructors .createServer ✓ should return a server Server with no exchanges handling a request ✓ should not error with one exchange registered using a named function handling a request with supported type ✓ should not error ✓ should send response handling a request with unsupported type ✓ should not error handling a request with undefined type ✓ should not error with a wildcard exchange registered with null handling a request with type ✓ should not error ✓ should send response handling a request without type ✓ should not error ✓ should send response with a wildcard exchange registered with star handling a request with type ✓ should not error ✓ should send response handling a request without type ✓ should not error ✓ should send response with one wildcard exchange and one named exchange handling a request with type ✓ should not error ✓ should send response with an exchange that encounters an error handling a request with type ✓ should error with an exchange that throws an exception handling a request with type ✓ should error Server registering a grant module ✓ should have one request parser ✓ should have one response handler ✓ should not have any error handlers registering a grant module with error handler ✓ should have one request parser ✓ should have one response handler ✓ should have one error handler registering a grant module by type ✓ should have one request parser ✓ should have one response handler ✓ should not have any error handlers registering a grant module with error handler by type ✓ should have one request parser ✓ should have one response handler ✓ should have one error handler registering a grant parsing function by type ✓ should have one request parser ✓ should not have any response handlers ✓ should not have any error handlers registering a grant parsing function by type and phase ✓ should have one request parser ✓ should not have any response handlers ✓ should not have any error handlers registering a wildcard grant parsing function ✓ should have one request parser ✓ should not have any response handlers ✓ should not have any error handlers registering a grant responding function by type and phase ✓ should not have any request parsers ✓ should have one response handler ✓ should not have any error handlers registering a wildcard grant responding function ✓ should not have any request parsers ✓ should have one response handler ✓ should not have any error handlers registering a grant error handling function by type and phase ✓ should not have any request parsers ✓ should not have any response handlers ✓ should have one error handler registering a wildcard error handling function ✓ should not have any request parsers ✓ should not have any response handlers ✓ should have one error handler Server parsing authorization requests with one supported type request for supported type ✓ should not error ✓ should parse request request for unsupported type ✓ should not error ✓ should parse only type request for undefined type ✓ should not error ✓ should not parse request parsing authorization requests with one supported type that throws an exception request for supported type ✓ should error ✓ should not parse object parsing authorization requests with one wildcard parser request for type ✓ should not error ✓ should parse request parsing authorization requests with a wildcard parser and one supported type request for supported type ✓ should not error ✓ should parse request parsing authorization requests with no supported types request for type ✓ should not error ✓ should parse only type request for undefined type ✓ should not error ✓ should not parse request parsing requests with a sync wildcard parser that throws an exception preceeding one supported type request for supported type ✓ should error ✓ should not parse object parsing authorization requests with an async wildcard parser preceeding one supported type request for supported type ✓ should not error ✓ should parse request parsing requests with an async wildcard parser that encounters an error preceeding one supported type request for supported type ✓ should error ✓ should not parse object Server handling authorization error with one supported type response to supported type ✓ should not error ✓ should send response response to unsupported type ✓ should preserve error handling authorization error with responder that throws an exception response to supported type ✓ should error handling authorization error with no supported types response to unsupported type ✓ should preserve error Server handling authorization response with one supported type response to supported type ✓ should not error ✓ should send response response to unsupported type ✓ should not error handling authorization response with one wildcard responder response to any type ✓ should not error ✓ should send response handling authorization response with one wildcard responder and one supported type response to supported type ✓ should not error ✓ should send response handling authorization response with responder that encounters an error response to supported type ✓ should error handling authorization response with responder that throws an exception response to supported type ✓ should error handling authorization response with no supported types response to unsupported type ✓ should not error Server #serializeClient no serializers serializing ✓ should error one serializer serializing ✓ should not error ✓ should serialize multiple serializers serializing ✓ should not error ✓ should serialize serializer that encounters an error serializing ✓ should error serializer that throws an exception serializing ✓ should error #deserializeClient no deserializers deserializing ✓ should error one deserializer deserializing ✓ should not error ✓ should deserialize multiple deserializers deserializing ✓ should not error ✓ should deserialize one deserializer to null deserializing ✓ should not error ✓ should invalidate client one deserializer to false deserializing ✓ should not error ✓ should invalidate client multiple deserializers to null deserializing ✓ should not error ✓ should invalidate client multiple deserializers to false deserializing ✓ should not error ✓ should invalidate client deserializer that encounters an error deserializing ✓ should error deserializer that throws an exception deserializing ✓ should error Server newly initialized instance ✓ should wrap authorization middleware ✓ should wrap resume middleware ✓ should wrap decision middleware ✓ should wrap authorizationErrorHandler middleware ✓ should wrap token middleware ✓ should wrap errorHandler middleware ✓ should have no request parsers ✓ should have no response handlers ✓ should have no error handlers ✓ should have no exchanges ✓ should have no serializers or deserializers #authorization ✓ should create function handler #resume ✓ should create handler stack with two functions ✓ should create function handler when transaction loader is disabled #decision ✓ should create handler stack with two functions ✓ should create function handler when transaction loader is disabled #authorizationErrorHandler ✓ should create function error handler #token ✓ should create function handler #errorHandler ✓ should create function error handler UnorderedList constructed with a single element array ✓ should have correct length ✓ should convert to string ✓ should be equal to list with same item ✓ should be equal to array with same item ✓ should not be equal to list with superset of item ✓ should check if it contains element ✓ should check if it contains any element constructed with a multiple element array ✓ should have correct length ✓ should convert to string ✓ should be equal to list with same set of items ✓ should be equal to list with same set of items in different order ✓ should not be equal to list with subset of items ✓ should not be equal to list with superset of items ✓ should check if it contains element ✓ should check if it contains any element constructed with string ✓ should have correct length ✓ should convert to string constructed with space separated string ✓ should have correct length ✓ should convert to string AuthorizationError constructed without a message ✓ should have default properties ✓ should format correctly ✓ should inherits from OAuth2Error and Error constructed with a message ✓ should have default properties ✓ should format correctly constructed with a message and invalid_request code ✓ should have default properties constructed with a message and unauthorized_client code ✓ should have default properties constructed with a message and access_denied code ✓ should have default properties constructed with a message and unsupported_response_type code ✓ should have default properties constructed with a message and invalid_scope code ✓ should have default properties constructed with a message and temporarily_unavailable code ✓ should have default properties constructed with a message, code, uri and status ✓ should have default properties ✓ should format correctly BadRequestError constructed without a message ✓ should have default properties ✓ should format correctly ✓ should have status ✓ should inherits from Error constructed with a message ✓ should have default properties ✓ should format correctly ✓ should have status ForbiddenError constructed without a message ✓ should have default properties ✓ should format correctly ✓ should have status ✓ should inherits from Error constructed with a message ✓ should have default properties ✓ should format correctly ✓ should have status TokenError constructed without a message ✓ should have default properties ✓ should format correctly ✓ should inherits from OAuth2Error and Error constructed with a message ✓ should have default properties ✓ should format correctly constructed with a message and invalid_request code ✓ should have default properties constructed with a message and invalid_client code ✓ should have default properties constructed with a message and invalid_grant code ✓ should have default properties constructed with a message and unauthorized_client code ✓ should have default properties constructed with a message and unsupported_grant_type code ✓ should have default properties constructed with a message and invalid_scope code ✓ should have default properties constructed with a message, code, uri and status ✓ should have default properties ✓ should format correctly exchange.authorizationCode ✓ should be named authorization_code ✓ should throw if constructed without a issue callback issuing an access token ✓ should respond with headers ✓ should respond with body issuing an access token and refresh token ✓ should respond with headers ✓ should respond with body issuing an access token and params ✓ should respond with headers ✓ should respond with body issuing an access token, null refresh token, and params ✓ should respond with headers ✓ should respond with body issuing an access token, refresh token, and params with token_type ✓ should respond with headers ✓ should respond with body issuing an access token based on body ✓ should respond with headers ✓ should respond with body issuing an access token based on authInfo ✓ should respond with headers ✓ should respond with body not issuing an access token ✓ should error handling a request without code parameter ✓ should error encountering an error while issuing an access token ✓ should error encountering an exception while issuing an access token ✓ should error handling a request without a body ✓ should error with user property option issuing an access token ✓ should respond with headers ✓ should respond with body exchange.clientCredentials ✓ should be named client_credentials ✓ should throw if constructed without a issue callback issuing an access token ✓ should respond with headers ✓ should respond with body issuing an access token and refresh token ✓ should respond with headers ✓ should respond with body issuing an access token and params ✓ should respond with headers ✓ should respond with body issuing an access token, null refresh token, and params ✓ should respond with headers ✓ should respond with body issuing an access token, refresh token, and params with token_type ✓ should respond with headers ✓ should respond with body issuing an access token based on scope ✓ should respond with headers ✓ should respond with body issuing an access token based on array of scopes ✓ should respond with headers ✓ should respond with body issuing an access token based on scope and body ✓ should respond with headers ✓ should respond with body issuing an access token based on authInfo ✓ should respond with headers ✓ should respond with body not issuing an access token ✓ should error encountering an error while issuing an access token ✓ should error encountering an exception while issuing an access token ✓ should error handling a request without a body ✓ should error with scope separator option issuing an access token based on scope ✓ should respond with headers ✓ should respond with body with multiple scope separator option issuing an access token based on scope separated by space ✓ should respond with headers ✓ should respond with body issuing an access token based on scope separated by comma ✓ should respond with headers ✓ should respond with body with user property option issuing an access token ✓ should respond with headers ✓ should respond with body exchange.password ✓ should be named password ✓ should throw if constructed without a issue callback issuing an access token ✓ should respond with headers ✓ should respond with body issuing an access token and refresh token ✓ should respond with headers ✓ should respond with body issuing an access token and params ✓ should respond with headers ✓ should respond with body issuing an access token, null refresh token, and params ✓ should respond with headers ✓ should respond with body issuing an access token, refresh token, and params with token_type ✓ should respond with headers ✓ should respond with body issuing an access token based on scope ✓ should respond with headers ✓ should respond with body issuing an access token based on array of scopes ✓ should respond with headers ✓ should respond with body issuing an access token based on scope and body ✓ should respond with headers ✓ should respond with body issuing an access token based on authInfo ✓ should respond with headers ✓ should respond with body not issuing an access token ✓ should error handling a request without username parameter ✓ should error handling a request without password parameter ✓ should error encountering an error while issuing an access token ✓ should error encountering an exception while issuing an access token ✓ should error handling a request without a body ✓ should error with scope separator option issuing an access token based on array of scopes ✓ should respond with headers ✓ should respond with body with multiple scope separator option issuing an access token based on scope separated by space ✓ should respond with headers ✓ should respond with body issuing an access token based on scope separated by comma ✓ should respond with headers ✓ should respond with body with user property option issuing an access token ✓ should respond with headers ✓ should respond with body exchange.refreshToken ✓ should be named refresh_token ✓ should throw if constructed without a issue callback issuing an access token ✓ should respond with headers ✓ should respond with body issuing an access token and refresh token ✓ should respond with headers ✓ should respond with body issuing an access token and params ✓ should respond with headers ✓ should respond with body issuing an access token, null refresh token, and params ✓ should respond with headers ✓ should respond with body issuing an access token, refresh token, and params with token_type ✓ should respond with headers ✓ should respond with body issuing an access token based on scope ✓ should respond with headers ✓ should respond with body issuing an access token based on array of scopes ✓ should respond with headers ✓ should respond with body issuing an access token based on scope and body ✓ should respond with headers ✓ should respond with body issuing an access token based on authInfo ✓ should respond with headers ✓ should respond with body not issuing an access token ✓ should error handling a request without refresh token parameter ✓ should error encountering an error while issuing an access token ✓ should error encountering an exception while issuing an access token ✓ should error handling a request without a body ✓ should error with scope separator option issuing an access token based on array of scopes ✓ should respond with headers ✓ should respond with body with multiple scope separator option issuing an access token based on scope separated by space ✓ should respond with headers ✓ should respond with body issuing an access token based on scope separated by comma ✓ should respond with headers ✓ should respond with body with user property option issuing an access token ✓ should respond with headers ✓ should respond with body grant.code ✓ should throw if constructed without a issue callback module ✓ should be named code ✓ should expose request and response functions request parsing request ✓ should not error ✓ should parse request request with scope ✓ should not error ✓ should parse request request with list of scopes ✓ should not error ✓ should parse request request with list of scopes using scope separator option ✓ should not error ✓ should parse request request with list of scopes separated by space using multiple scope separator option ✓ should not error ✓ should parse request request with list of scopes separated by comma using multiple scope separator option ✓ should not error ✓ should parse request request with missing client_id parameter ✓ should error request with invalid client_id parameter ✓ should error request with scope parameter that is not a string ✓ should error decision handling transaction ✓ should respond transaction with request state ✓ should respond transaction with request state and complete callback ✓ should call complete callback ✓ should respond disallowed transaction ✓ should respond disallowed transaction with request state ✓ should respond unauthorized client ✓ should error encountering an error while issuing code ✓ should error throwing an error while issuing code ✓ should error encountering an error while completing transaction ✓ should error transaction without redirect URL ✓ should error decision handling with user response transaction with response scope ✓ should respond decision handling with user response and client request transaction with response scope ✓ should respond decision handling with user response, client request, and server locals transaction with response scope ✓ should respond decision handling with response mode transaction using default response mode ✓ should respond transaction using foo response mode ✓ should respond disallowed transaction using foo response mode ✓ should respond transaction using unsupported response mode ✓ should error error handling error on transaction ✓ should respond ✓ should not set response body authorization error on transaction ✓ should respond ✓ should not set response body authorization error with URI on transaction ✓ should respond ✓ should not set response body error on transaction with state ✓ should respond ✓ should not set response body error on transaction without redirectURI ✓ should error error handling with response mode transaction using default response mode ✓ should respond ✓ should not set response body transaction using foo response mode ✓ should respond ✓ should not set response body transaction using unsupported response mode ✓ should error grant.token ✓ should throw if constructed without a issue callback module ✓ should be named token ✓ should expose request and response functions request parsing request ✓ should not error ✓ should parse request request with scope ✓ should not error ✓ should parse request request with list of scopes ✓ should not error ✓ should parse request request with list of scopes using scope separator option ✓ should not error ✓ should parse request request with list of scopes separated by space using multiple scope separator option ✓ should not error ✓ should parse request request with list of scopes separated by comma using multiple scope separator option ✓ should not error ✓ should parse request request with missing client_id parameter ✓ should error request with invalid client_id parameter ✓ should error request with scope parameter that is not a string ✓ should error decision handling transaction ✓ should respond transaction with request state ✓ should respond transaction with request state and complete callback ✓ should call complete callback ✓ should respond transaction that adds params to response ✓ should respond transaction that adds params including token_type to response ✓ should respond disallowed transaction ✓ should respond disallowed transaction with request state ✓ should respond unauthorized client ✓ should error encountering an error while issuing token ✓ should error throwing an error while issuing token ✓ should error encountering an error while completing transaction ✓ should error transaction without redirect URL ✓ should error decision handling with user response transaction with response scope ✓ should respond decision handling with user response and client request transaction with response scope ✓ should respond decision handling with user response, client request, and server locals transaction with response scope ✓ should respond decision handling with response mode transaction using default response mode ✓ should respond transaction using foo response mode ✓ should respond disallowed transaction using foo response mode ✓ should respond transaction using unsupported response mode ✓ should error error handling error on transaction ✓ should respond ✓ should not set response body authorization error on transaction ✓ should respond ✓ should not set response body authorization error with URI on transaction ✓ should respond ✓ should not set response body error on transaction with state ✓ should respond ✓ should not set response body error on transaction without redirectURI ✓ should error error handling with response mode transaction using default response mode ✓ should respond ✓ should not set response body transaction using foo response mode ✓ should respond ✓ should not set response body transaction using unsupported response mode ✓ should error authorization immediate response based on client and user ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, and scope ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, and scope, with result that supplies locals ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, scope, and type ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, scope, type, and authorization request ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, scope, type, authorization request, and locals ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, scope, type, authorization request, and request locals ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session based on client, user, scope, type, authorization request, and request locals, that supplies additional locals ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session encountering an error ✓ should error ✓ should add transaction ✓ should not store transaction in session encountering an exception ✓ should error ✓ should add transaction ✓ should not store transaction in session encountering an error while responding to request ✓ should error ✓ should add transaction ✓ should not store transaction in session unable to respond to request ✓ should error ✓ should add transaction ✓ should not store transaction in session non-immediate response using legacy transaction store based on client and user ✓ should not error ✓ should add transaction ✓ should store transaction in session based on client, user, and scope, with result that supplies info ✓ should not error ✓ should add transaction ✓ should store transaction in session based on client, user, and scope, with result that supplies info and locals ✓ should not error ✓ should add transaction ✓ should store transaction in session based on client, user, and scope, with result that supplies info and additional locals ✓ should not error ✓ should add transaction ✓ should store transaction in session using non-legacy transaction store based on client, user, and scope, with result that supplies info and locals ✓ should not error ✓ should add transaction ✓ should serialize transaction immediate response with complete callback based on transaction ✓ should not error ✓ should complete transaction ✓ should respond ✓ should add transaction ✓ should not store transaction in session without complete callback ✓ should not error ✓ should respond ✓ should add transaction ✓ should not store transaction in session encountering an error completing transaction ✓ should error ✓ should add transaction ✓ should not store transaction in session authorization ✓ should be named authorization ✓ should throw if constructed without a server argument ✓ should throw if constructed without a validate argument request parsing handling a request for authorization with empty query ✓ should error ✓ should not start transaction handling a request for authorization with unsupported response type ✓ should error ✓ should not start transaction handling a request for authorization with unsupported response type with extension parameters ✓ should error ✓ should not start transaction encountering an exception while parsing request ✓ should error ✓ should not start transaction without registered grants ✓ should error ✓ should not start transaction client validation unauthorized client ✓ should error ✓ should start transaction unauthorized client informed via redirect ✓ should error ✓ should start transaction encountering an error while validating client ✓ should error ✓ should start transaction encountering a thrown exception while validating client ✓ should error ✓ should not start transaction using legacy transaction store handling a request for authorization ✓ should not error ✓ should start transaction ✓ should store transaction in session handling a request for authorization, validating with scope ✓ should not error ✓ should start transaction ✓ should store transaction in session handling a request for authorization, validating with scope and type ✓ should not error ✓ should start transaction ✓ should store transaction in session handling a request for authorization, validating with authorization request ✓ should not error ✓ should add transaction ✓ should store transaction in session attempting to store transaction without a session ✓ should error ✓ should start transaction encountering an error while serializing client ✓ should error ✓ should start transaction ✓ should not store transaction in session with id length option handling a request for authorization ✓ should not error ✓ should start transaction ✓ should store transaction in session with session key option handling a request for authorization ✓ should not error ✓ should add transaction ✓ should store transaction in session using non-legacy transaction store handling a request for authorization ✓ should not error ✓ should start transaction ✓ should serialize transaction authorizationErrorHandler ✓ should be named token ✓ should throw if constructed without a server argument using legacy transaction store handling an error ✓ should respond ✓ should remove transaction from session handling an error when transaction has not been persisted ✓ should respond ✓ should not remove data from session handling an error where res.end has already been proxied ✓ should respond ✓ should not remove transaction from session encountering an unsupported response type while handling an error ✓ should preserve error encountering an error while handling an error ✓ should error handling a request that is not associated with a transaction ✓ should preserve error ✓ should not remove data from session using non-legacy transaction store handling an error ✓ should respond ✓ should remove transaction decision ✓ should be named decision ✓ should throw if constructed without a server argument using legacy transaction store handling a user decision to allow access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session ✓ should flag req.end as proxied handling a user decision to deny access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session encountering an error while responding to request ✓ should error ✓ should set user on transaction ✓ should set response on transaction ✓ should leave transaction in session ✓ should remove transaction from session after calling end handling authorization request with unsupported response type ✓ should error ✓ should set user on transaction ✓ should set response on transaction ✓ should leave transaction in session ✓ should remove transaction from session after calling end with parsing function handling a user decision to allow access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session handling a user decision to deny access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session with parsing function that supplies locals responding to a transaction ✓ should set user on transaction ✓ should set response on transaction ✓ should set locals on transaction ✓ should respond ✓ should remove transaction from session responding to a transaction with existing locals ✓ should set user on transaction ✓ should set response on transaction ✓ should set locals on transaction ✓ should respond ✓ should remove transaction from session with parsing function that denies access handling a user decision ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session with parsing function that errors handling a user decision ✓ should error ✓ should not set user on transaction ✓ should not set response on transaction ✓ should leave transaction in session with parsing function that unexpectedly clears session handling a user decision ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remain a cleared session with parsing function and complete function based on transaction ✓ should set user on transaction ✓ should set response on transaction ✓ should complete transaction ✓ should respond ✓ should remove transaction from session without complete callback ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session encountering an error completing transaction ✓ should error ✓ should set user on transaction ✓ should set response on transaction ✓ should leave transaction in session ✓ should remove transaction from session after calling end with cancel field option handling a user decision to deny access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session with session key option handling a user decision to allow access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session with user property option handling a user decision to allow access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session using non-legacy transaction store handling a user decision to allow access ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction ✓ should flag req.end as proxied prerequisite middleware checks handling a request without a body ✓ should error ✓ should not set user on transaction ✓ should not set response on transaction ✓ should leave transaction in session handling a request without a transaction ✓ should error ✓ should leave transaction in session errorHandler ✓ should be named errorHandler direct mode handling an error ✓ should set response headers ✓ should set response body handling an authorization error ✓ should set response headers ✓ should set response body handling an authorization error with URI ✓ should set response headers ✓ should set response body indirect mode handling an error ✓ should set response headers ✓ should not set response body handling an authorization error ✓ should set response headers ✓ should not set response body handling an authorization error with URI ✓ should set response headers ✓ should not set response body handling an error with state ✓ should set response headers ✓ should not set response body handling an error using token response ✓ should set response headers ✓ should not set response body handling an authorization error using token response ✓ should set response headers ✓ should not set response body handling an authorization error with URI using token response ✓ should set response headers ✓ should not set response body handling an error with state using token response ✓ should set response headers ✓ should not set response body handling an error using fragment encoding for extension response type ✓ should set response headers ✓ should not set response body handling an error with state using custom response mode ✓ should set response headers ✓ should not set response body handling an error with state using unsupported response mode ✓ should next with error handling a request error without an OAuth 2.0 transaction ✓ should next with error handling a request error without a redirect URI ✓ should next with error unknown mode handling an error ✓ should next with error resume ✓ should be named resume ✓ should throw if constructed without a server argument ✓ should throw if constructed without a immediate argument immediate response based on client and user ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session ✓ should flag req.end as proxied based on client, user, and scope ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, and authorization request ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, and authorization request, that supplies locals ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, authorization request, and locals ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, authorization request, and response locals ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, authorization request, and response and transaction locals ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, authorization request, and transaction locals ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session based on client, user, scope, and type, authorization request, and transaction locals, that supplies additional locals ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session encountering an error ✓ should error ✓ should set user on transaction ✓ should not set response on transaction ✓ should not remove transaction from session encountering an exception ✓ should error ✓ should set user on transaction ✓ should not set response on transaction ✓ should not remove transaction from session encountering an error while responding to request ✓ should error ✓ should set user on transaction ✓ should set response on transaction ✓ should leave transaction in session ✓ should remove transaction from session after calling end handling authorization request with unsupported response type ✓ should error ✓ should set user on transaction ✓ should set response on transaction ✓ should leave transaction in session ✓ should remove transaction from session after calling end immediate response with complete callback based on transaction ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should complete transaction ✓ should respond ✓ should remove transaction from session ✓ should flag req.end as proxied without complete callback ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction from session ✓ should flag req.end as proxied encountering an error completing transaction ✓ should error ✓ should set user on transaction ✓ should set response on transaction ✓ should leave transaction in session ✓ should remove transaction from session after calling end immediate response using non-legacy transaction store based on client and user ✓ should not error ✓ should set user on transaction ✓ should set response on transaction ✓ should respond ✓ should remove transaction ✓ should flag req.end as proxied non-immediate response using legacy transaction store based on client and user ✓ should not error ✓ should add transaction ✓ should update transaction in session based on client and user, with result that clears previous info ✓ should not error ✓ should add transaction ✓ should update transaction in session based on client, user, and scope, with result that supplies info ✓ should not error ✓ should add transaction ✓ should update transaction in session based on client, user, and scope, with result that supplies overridden info ✓ should not error ✓ should add transaction ✓ should update transaction in session based on client, user, and scope, with result that supplies info and locals ✓ should not error ✓ should add transaction ✓ should update transaction in session based on client, user, and scope, with result that supplies info and additional locals ✓ should not error ✓ should add transaction ✓ should update transaction in session using non-legacy transaction store based on client, user, and scope, with result that supplies info and locals ✓ should not error ✓ should add transaction ✓ should reserialize transaction encountering an error while serializing client ✓ should error ✓ should leave transaction ✓ should leave transaction in session prerequisite middleware checks handling a request without a transaction ✓ should error ✓ should leave transaction in session token ✓ should be named token ✓ should throw if constructed without a server argument exchanging a grant for an access token handling a request with supported grant ✓ should respond handling a request with unsupported grant type ✓ should error encountering an error while exchanging grant ✓ should error transactionLoader ✓ should be named transactionLoader ✓ should throw if constructed without a server argument using legacy transaction store handling a request with transaction id in query ✓ should not error ✓ should restore transaction ✓ should leave transaction in session handling a request with transaction id in body ✓ should not error ✓ should restore transaction ✓ should leave transaction in session handling a request with transaction already loaded ✓ should not error ✓ should maintain transaction handling a request without transaction id ✓ should error ✓ should not restore transaction ✓ should leave transaction in session handling a request with transaction id that does not reference transaction ✓ should error ✓ should not restore transaction ✓ should leave transaction in session handling a request without transactions in session ✓ should error ✓ should not restore transaction handling a request without a session ✓ should error ✓ should not restore transaction encountering an error while deserializing client ✓ should error ✓ should not restore transaction ✓ should leave transaction in session handling a request initiated by deactivated client ✓ should error ✓ should not restore transaction ✓ should remove transaction from session with transaction field option handling a request with transaction id in body ✓ should not error ✓ should restore transaction ✓ should leave transaction in session handling a request without transaction id ✓ should error ✓ should not restore transaction ✓ should leave transaction in session with session key option handling a request with transaction id in body ✓ should not error ✓ should restore transaction ✓ should leave transaction in session using non-legacy transaction store handling a request with state ✓ should not error ✓ should restore transaction 834 passing (441ms) Processing files: nodejs-oauth2orize-1.8.0-1.fc27.noarch + exit 0 Provides: nodejs-oauth2orize = 1.8.0-1.fc27 npm(oauth2orize) = 1.8.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: nodejs(engine) >= 0.4.0 npm(debug) >= 2 npm(debug) < 3 npm(uid2) >= 0.0 npm(uid2) < 0.1 npm(utils-merge) >= 1 npm(utils-merge) < 2 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64 Wrote: /builddir/build/RPMS/nodejs-oauth2orize-1.8.0-1.fc27.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XlfTgp + umask 022 + cd /builddir/build/BUILD + cd package + /usr/bin/rm -rf /builddir/build/BUILDROOT/nodejs-oauth2orize-1.8.0-1.fc27.x86_64 + exit 0 Child return code was: 0