Mock Version: 1.4.16 Mock Version: 1.4.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rubygem-warden.spec'], chrootPath='/var/lib/mock/f31-build-16909148-1219954/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rubygem-warden.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1563408000 Wrote: /builddir/build/SRPMS/rubygem-warden-1.2.8-1.fc31.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rubygem-warden.spec'], chrootPath='/var/lib/mock/f31-build-16909148-1219954/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rubygem-warden.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1563408000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Jnm9na + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf warden-1.2.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/warden-1.2.8-specs.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gem unpack /builddir/build/SOURCES/warden-1.2.8.gem + /usr/bin/gem spec /builddir/build/SOURCES/warden-1.2.8.gem --ruby + STATUS=0 + '[' 0 -ne 0 ']' + cd warden-1.2.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Unpacked gem: '/builddir/build/BUILD/warden-1.2.8' Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iBx728 + umask 022 + cd /builddir/build/BUILD + cd warden-1.2.8 + gem build ../warden-1.2.8.gemspec BUILDSTDERR: WARNING: open-ended dependency on rack (>= 2.0.6) is not recommended BUILDSTDERR: if rack is semantically versioned, use: BUILDSTDERR: add_runtime_dependency 'rack', '~> 2.0', '>= 2.0.6' BUILDSTDERR: WARNING: See http://guides.rubygems.org/specification-reference/ for help + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\'' --with-cxxflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc warden-1.2.8.gem BUILDSTDERR: WARNING: You build with buildroot. BUILDSTDERR: Build root: /builddir/build/BUILD/warden-1.2.8 BUILDSTDERR: Bin dir: /builddir/build/BUILD/warden-1.2.8/usr/bin BUILDSTDERR: Gem home: /builddir/build/BUILD/warden-1.2.8/usr/share/gems + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Successfully built RubyGem Name: warden Version: 1.2.8 File: warden-1.2.8.gem /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/.gitignore /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/.rspec /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/.travis.yml /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/CHANGELOG.md /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/Gemfile /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/Gemfile.lock /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/LICENSE /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/README.md /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/Rakefile /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/config.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/errors.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/hooks.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/manager.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/mixins/common.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/proxy.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/session_serializer.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/strategies.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/strategies/base.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/test/helpers.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/test/mock.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/test/warden_helpers.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/lib/warden/version.rb /builddir/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8/warden.gemspec Successfully installed warden-1.2.8 Parsing documentation for warden-1.2.8 Parsing sources... 6% [ 1/16] LICENSE 12% [ 2/16] README.md 18% [ 3/16] lib/warden.rb 25% [ 4/16] lib/warden/config.rb 31% [ 5/16] lib/warden/errors.rb 37% [ 6/16] lib/warden/hooks.rb 43% [ 7/16] lib/warden/manager.rb 50% [ 8/16] lib/warden/mixins/common.rb 56% [ 9/16] lib/warden/proxy.rb 62% [10/16] lib/warden/session_serializer.rb 68% [11/16] lib/warden/strategies.rb 75% [12/16] lib/warden/strategies/base.rb 81% [13/16] lib/warden/test/helpers.rb 87% [14/16] lib/warden/test/mock.rb 93% [15/16] lib/warden/test/warden_helpers.rb 100% [16/16] lib/warden/version.rb Installing ri documentation for warden-1.2.8 Installing darkfish documentation for warden-1.2.8 Done installing documentation for warden after 1 seconds 1 gem installed Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MHGvm8 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch + cd warden-1.2.8 + mkdir -p /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch/usr/share/gems/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.2.8-1.fc31 --unique-debug-suffix -1.2.8-1.fc31.noarch --unique-debug-src-base rubygem-warden-1.2.8-1.fc31.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/warden-1.2.8 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /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 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.gwl9yc + umask 022 + cd /builddir/build/BUILD + cd warden-1.2.8 + pushd ./usr/share/gems/gems/warden-1.2.8 + ln -s /builddir/build/BUILD/spec spec + rspec spec ~/build/BUILD/warden-1.2.8/usr/share/gems/gems/warden-1.2.8 ~/build/BUILD/warden-1.2.8 authenticated data store should store data for the default scope should store data for the foo user should store the data separately should clear the foo scoped data when foo logs out should clear out the default data when :default logs out should clear out all data when a general logout is performed should logout multiple persons at once should not store data for a user who is not logged in Warden::Config should behave like a hash should provide hash accessors should allow to read and set default strategies should allow to silence missing strategies should set the default_scope should merge given options on initialization should setup defaults with the scope_defaults method Warden::Proxy::Errors should report that it is empty on first creation should continue to report that it is empty even after being checked should add an error should allow many errors to be added to the same field should give the full messages for an error should return the error for a specific field / label should return nil for a specific field if it's not been set standard authentication hooks after_set_user should allow me to add an after_set_user hook should allow me to add multiple after_set_user hooks should run each after_set_user hook after the user is set should not run the event specified with except should only run the event specified with only should run filters in the given order after_authentication should be a wrapper to after_set_user behavior should not be invoked on default after_set_user scenario should run filters in the given order should allow me to log out a user in an after_set_user block after_fetch should be a wrapper to after_set_user behavior should not be invoked on default after_set_user scenario should not be invoked if fetched user is nil should run filters in the given order after_failed_fetch should not be called when user is fetched should be called if fetched user is nil before_failure should allow me to add a before_failure hook should allow me to add multiple before_failure hooks should run each before_failure hooks before failing should run filters in the given order before_logout should allow me to add an before_logout hook should allow me to add multiple after_authentication hooks should run each before_logout hook before logout is run should run before_logout hook for a specified scope should run filters in the given order on_request should allow me to add an on_request hook should allow me to add multiple on_request hooks should run each on_request hooks when initializing should run filters in the given order should have the proxy on env in on_request should be able to throw in on_request Warden::Manager should insert a Proxy object into the rack env should allow me to set a different default scope for warden should allow me to access strategies through manager thrown auth Failure should respond with a 401 response if the strategy fails authentication should use the failure message given to the failure method should set the message from the winning strategy in warden.options hash should render the failure app when there's a failure should call failure app if warden is thrown even after successful authentication should set the attempted url in warden.options hash should set action in warden.options if overridden should catch a resubmitted request should use the default scopes action when a bare throw is used integrated strategies redirecting should redirect with a message should redirect with a default message should redirect with a permanent redirect should redirect with a content type should redirect with a default content type failing should fail according to the failure app should allow you to customize the response should allow you to customize the response without the explicit call to custom_failure! if not intercepting 401 should render the failure application for a 401 if no custom_failure flag is set custom rack response should return a custom rack response app returns Rack::Response should return it success should pass through to the application when there is success Warden::Proxy authentication should not check the authentication if it is not checked should check the authentication if it is explicitly checked should not allow the request if incorrect conditions are supplied should allow the request if the correct conditions are supplied should allow authentication in my application should allow me to select which strategies I use in my application should raise error on missing strategies should raise error if the strategy failed should not raise error on missing strategies if silencing should allow me to get access to the user at warden.user. should run strategies when authenticate? is asked should properly send the scope to the strategy should try multiple authentication strategies should look for an active user in the session with authenticate should look for an active user in the session with authenticate? should look for an active user in the session with authenticate! should throw an error when authenticate! should login 2 different users from the session should not authenticate other scopes just because the first is authenticated should renew session when user is set should not renew session when user is fetch authentication cache should run strategies just once for a given scope should run strategies for a given scope several times if cache is cleaned should clear the cache for a specified strategy should run the strategies several times for different scopes should not run strategies until cache is cleaned if latest winning strategy halted should not store user if strategy isn't meant for permanent login set user should store the user into the session should not store the user if the :store option is set to false should not throw error when no session is configured and store is false should not run the callbacks when :run_callbacks is false should run the callbacks when :run_callbacks is true should run the callbacks by default should set renew on rack.session.options should not modify attempt to modify a frozen rack.session.options lock should not run any strategy should keep already authenticated users get user should return nil when not logged in should not run strategies when not logged in should cache unfound user previously logged in should take the user from the session when logged in should cache found user should not run strategies when the user exists in the session run callback option should not call run_callbacks when we pass a :run_callback => false should call run_callbacks when we pass a :run_callback => true should call run_callbacks by default logout should logout only the scoped foo user should logout only the scoped default user should clear the session when no argument is given to logout should not raise exception if raw_session is nil should clear the user when logging out should clear the session data when logging out should clear out the session by calling reset_session! so that plugins can setup their own session clearing messages should allow access to the failure message should allow access to the success message should not die when accessing a message from a source where no authentication has occurred when all strategies are not valid? should return false for authenticated? when there are no valid? strategies should return nil for authenticate when there are no valid strategies should return false for authenticate? when there are no valid strategies should respond with a 401 when authenticate! cannot find any valid strategies authenticated? positive authentication should return true when authenticated in the session should yield to a block when the block is passed and authenticated should authenticate for a user in a different scope negative authentication should return false when authenticated in the session should return false if scope cannot be retrieved from session should not yield to a block when the block is passed and authenticated should not yield for a user in a different scope unauthenticated? negative unauthentication should return false when authenticated in the session should not yield to a block when the block is passed and authenticated should not yield to the block for a user in a different scope positive unauthentication should return false when unauthenticated in the session should yield to a block when the block is passed and authenticated should yield for a user in a different scope attributes should have a config attribute dynamic default_strategies should allow me to change the default strategies on the fly should allow me to append to the default strategies on the fly should allow me to set the default strategies on a per scope basis should allow me to setup default strategies for each scope on the manager should not change the master configurations strategies when I change them default scope options should allow me to set a default action for a given scope should allow me to set store, false on a given scope #asset_request? should return true if PATH_INFO is in asset list should return false if PATH_INFO is not in asset list Warden::SessionSerializer should store data for the default scope should check if a data is stored or not should load an user from store should store data based on the scope should delete data from store should delete information from store if user cannot be retrieved should support a nil session store Warden::Strategies::Base should have a user object should be performed after run should set the scope should allow you to set a message should provide access to the errors headers should have headers should allow us to clear the headers halting should allow you to halt a strategy should not be halted if halt was not called pass should allow you to pass redirect should allow you to set a redirection should mark the strategy as halted when redirecting should escape redirected url parameters should allow you to set a message should set the action as :redirect failure should allow you to fail hard should halt the strategies when failing hard should allow you to set a message when failing hard should set the action as :failure when failing hard should allow you to fail soft should not halt the strategies when failing soft should allow you to set a message when failing soft should set the action as :failure when failing soft success should allow you to succeed should be authenticated after success should allow you to set a message when succeeding should store the user should set the action as :success custom response should allow me to set a custom rack response should halt the strategy should provide access to the custom rack response should set the action as :custom Warden::Strategies should let me add a strategy via a block should raise an error if I add a strategy via a block, that does not have an authenticate! method should raise an error if I add a strategy that does not extend Warden::Strategies::Base should allow me to get access to a particular strategy should allow me to add a strategy with the required methods should not allow a strategy that does not have an authenticate! method should allow me to change a class when providing a block and class should allow me to update a previously given strategy BUILDSTDERR: should allow me to clear th+ popd + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 e strategies Warden::Test::Helpers should log me in as a user should log me in as a user of a given scope should login multiple users with different scopes should log out all users should logout a specific user #asset_paths should default asset_paths to anything asset path regex Warden::Test::Mock should return a valid mocked warden Warden::Test::WardenHelpers should respond to #test_mode! should respond to #on_next_request should respond to #test_reset! should execute the on_next_request block on the next request should execute many on_next_request blocks on the next request should not execute on_next_request blocks on subsequent requests should allow me to set new_on_next_request items to execute in the same test should remove the on_next_request items when test is reset asset requests should not execute on_next_request blocks if this is an asset request Finished in 0.38372 seconds (files took 0.41064 seconds to load) 224 examples, 0 failures ~/build/BUILD/warden-1.2.8 Processing files: rubygem-warden-1.2.8-1.fc31.noarch Provides: rubygem(warden) = 1.2.8 rubygem-warden = 1.2.8-1.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ruby(rubygems) rubygem(rack) >= 2.0.6 Processing files: rubygem-warden-doc-1.2.8-1.fc31.noarch Provides: rubygem-warden-doc = 1.2.8-1.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch Wrote: /builddir/build/RPMS/rubygem-warden-1.2.8-1.fc31.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-warden-doc-1.2.8-1.fc31.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XX5uYa + umask 022 + cd /builddir/build/BUILD + cd warden-1.2.8 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-warden-1.2.8-1.fc31.noarch + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0