diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-26 13:02:29 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-26 13:02:29 -0700 |
commit | cfde9c1490bfbaa9f4fc2bc390955117d1b25b31 (patch) | |
tree | f05c50c941d5ea2c6d8173c3337a297d3c8707d2 /spec/mixlib/authentication/mixlib_authentication_spec.rb | |
parent | 0cfadddb41abfafcf5bca47ecb2c7760f1b517a4 (diff) | |
download | mixlib-authentication-cfde9c1490bfbaa9f4fc2bc390955117d1b25b31.tar.gz |
remove hashrocket syntax
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/mixlib/authentication/mixlib_authentication_spec.rb')
-rw-r--r-- | spec/mixlib/authentication/mixlib_authentication_spec.rb | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/spec/mixlib/authentication/mixlib_authentication_spec.rb b/spec/mixlib/authentication/mixlib_authentication_spec.rb index 2c233a2..6985741 100644 --- a/spec/mixlib/authentication/mixlib_authentication_spec.rb +++ b/spec/mixlib/authentication/mixlib_authentication_spec.rb @@ -316,45 +316,45 @@ PATH = "/organizations/clownco" HASHED_CANONICAL_PATH = "YtBWDn1blGGuFIuKksdwXzHU9oE=" # Base64.encode64(Digest::SHA1.digest("/organizations/clownco")).chomp V1_0_ARGS = { - :body => BODY, - :user_id => USER_ID, - :http_method => :post, - :timestamp => TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. - :file => MockFile.new, - :path => PATH, + body: BODY, + user_id: USER_ID, + http_method: :post, + timestamp: TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. + file: MockFile.new, + path: PATH, } V1_1_ARGS = { - :body => BODY, - :user_id => USER_ID, - :http_method => :post, - :timestamp => TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. - :file => MockFile.new, - :path => PATH, - :proto_version => 1.1, + body: BODY, + user_id: USER_ID, + http_method: :post, + timestamp: TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. + file: MockFile.new, + path: PATH, + proto_version: 1.1, } V1_3_ARGS_SHA256 = { - :body => BODY, - :user_id => USER_ID, - :http_method => :post, - :timestamp => TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. - :file => MockFile.new, - :path => PATH, - :proto_version => "1.3", - :headers => { + body: BODY, + user_id: USER_ID, + http_method: :post, + timestamp: TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. + file: MockFile.new, + path: PATH, + proto_version: "1.3", + headers: { "X-OpS-SeRvEr-ApI-VerSiOn" => "1", } # This defaults to sha256 } LONG_PATH_LONG_USER_ARGS = { - :body => BODY, - :user_id => "A" * 200, - :http_method => :put, - :timestamp => TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. - :file => MockFile.new, - :path => PATH + "/nodes/#{"A" * 250}", + body: BODY, + user_id: "A" * 200, + http_method: :put, + timestamp: TIMESTAMP_ISO8601, # fixed timestamp so we get back the same answer each time. + file: MockFile.new, + path: PATH + "/nodes/#{"A" * 250}", } REQUESTING_ACTOR_ID = "c0f8a68c52bffa1020222a56b23cccfa" |