KubeclientConfigTest#test_gcp_command_auth broken locally
grosser opened this issue · 2 comments
grosser commented
even after bundle update
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]
ruby test/test_config.rb
1) Failure:
KubeclientConfigTest#test_gcp_command_auth [/Users/mgrosser/Code/tools/kubeclient/lib/kubeclient/gcp_auth_provider.rb:12]:
unexpected invocation: Kubeclient::GCPCommandCredentials.token("access-token" => "<fake_token>", "cmd-args" => "config config-helper --format=json", "cmd-path" => "/path/to/gcloud", "expiry" => 2019-04-09 19:26:18 UTC (1554837978.0 secs), "expiry-key" => "{.credential.token_expiry}", "token-key" => "{.credential.access_token}")
unsatisfied expectations:
- expected exactly once, invoked never: Kubeclient::GCPCommandCredentials.token("access-token" => "<fake_token>", "cmd-args" => "config config-helper --format=json", "cmd-path" => "/path/to/gcloud", "expiry" => "2019-04-09 19:26:18 UTC", "expiry-key" => "{.credential.token_expiry}", "token-key" => "{.credential.access_token}")
cben commented
sounds like it was called with a Date object 2019-04-09 19:26:18 UTC (1554837978.0 secs)
instead of string "2019-04-09 19:26:18 UTC"
?
grosser commented
cannot reproduce