Fixes #38241 - Extend userdata API by MAC address endpoint #17
Annotations
2 errors
Run rake test:
test/templates/templates_userdata_api_test.rb#L31
ArgumentError: wrong number of arguments (given 2, expected 1)
/home/runner/work/smart-proxy/smart-proxy/modules/templates/templates_userdata_api.rb:12:in `block in <class:TemplatesUserdataApi>'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1696:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1696:in `block in compile!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1030:in `block (3 levels) in route!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1049:in `route_eval'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1030:in `block (2 levels) in route!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1078:in `block in process_route'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1076:in `catch'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1076:in `process_route'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1028:in `block in route!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1025:in `each'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1025:in `route!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1147:in `block in dispatch!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1119:in `block in invoke'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1119:in `catch'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1119:in `invoke'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1142:in `dispatch!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:956:in `block in call!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1119:in `block in invoke'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1119:in `catch'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:1119:in `invoke'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:956:in `call!'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.4/lib/sinatra/base.rb:945:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.4/lib/rack/protection/xss_header.rb:18:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.4/lib/rack/protection/path_traversal.rb:16:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.4/lib/rack/protection/json_csrf.rb:26:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.4/lib/rack/protection/base.rb:50:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.4/lib/rack/protection/base.rb:50:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.4/lib/rack/protection/frame_options.rb:31:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-2.2.11/lib/rack/null_logger.rb:11:in `call'
/home/runner/work/smart-proxy/smart-proxy/vendor/bundle/ruby/2.7.0/gems/rack-2.2.11/lib/rack/head.rb:12:in `call'
/home
|
Run rake test
Process completed with exit code 1.
|
Loading