Closed jordimassaguerpla closed 5 years ago
@bear454 : Hi, updating sprockets makes this test fail, that seems related to GCE. Would you mind taking a look?
Failures: 1) InternalApi::V1::PillarsController when in GCE framework has cloud configuration Failure/Error: expect(json).to eq(expected_response) expected: {:registries=>[], :system_certificates=>[], :kubelet=>{:"compute-resources"=>{}, :"eviction-hard"=>""...uster_node=>{:size=>"custom-instance-type", :network=>"gcenetwork", :subnetwork=>"gcesubnetwork"}}}} got: {:cloud=>{:framework=>"gce", :profiles=>{:cluster_node=>{:size=>"custom-instance-type", :network=>"gc...{:"compute-resources"=>{}, :"eviction-hard"=>""}, :system_certificates=>[], :dex=>{:connectors=>[]}} (compared using ==) Diff: @@ -1,4 +1,5 @@ :cloud => {:framework=>"gce", :profiles=>{:cluster_node=>{:size=>"custom-instance-type", :network=>"gcenetwork", :subnetwork=>"gcesubnetwork"}}}, +:dex => {:connectors=>[]}, :kubelet => {:"compute-resources"=>{}, :"eviction-hard"=>""}, :registries => [], :system_certificates => [],
@vitoravelino : Sorry I don't understand. The commit you mention is from an open PR. Should this PR depen on yours?
No, just saying that the issue is the missing piece from the other PR because the GCE PR wasn't rebased before merging it.
Should we create a PR that only fixes the tests? I don't feel comfortable approving this if tests fail...
Should we create a PR that only fixes the tests?
I think so. It's an option.
Let me try it
rebased from master. Triggering test runs
@vitoravelino : any idea why the tests fail?
@jordimassaguerpla From the error raised by jenkins it looks like this time it's really related to this change... JSON::JWT::InvalidFormat in OidcController#done Invalid JSON Format Extracted source (around line #52): 50 51 52 53 54 55 def decode_id(id_token) OpenIDConnect::ResponseObject::IdToken.decode(id_token, oidc_config.jwks) end def done Rails.root: /srv/velum Application Trace | Framework Trace | Full Trace app/controllers/oidc_controller.rb:52:in
decode_id' app/controllers/oidc_controller.rb:60:in done' Request Parameters: {\"code\"=>\"oiz4as23z2oxgnlqsw7ldersa\", \"state\"=>\"85bf46530e79701800143476e767f1a3\"} Toggle session dump Toggle env dump Response Headers: None
...
Since it's a minor level upgrade, there was probably a breaking change that now conflicts with the json created from openid_connect
gem.
Our current openid_connect
gem is 1.1.3
but the current one is 1.1.6
. I saw two commits related to json but the code and commit message didn't mention much about why that. Maybe we should try to upgrade this too?
Both gems had new releases on the same date, so...
https://rubygems.org/gems/json-jwt https://rubygems.org/gems/openid_connect
@vitoravelino : Updating openid_connect didn't fix the tests.
What's the status of this PR? Should we close it?
@ereslibre : we should fix it. Sorry I don't have much time to look at why the tests fail and how to fix that.
This GitHub PR is unactive since 30. Is this GitHub PR still needed? Please close or update it accordingly. This reminder is autogenerated by https://github.com/MalloZup/blacktango
Signed-off-by: Jordi Massaguer Pla jmassaguerpla@suse.de