Project

General

Profile

« Previous | Next » 

Revision 864f772a

Added by Michael Moll about 4 years ago

Fixes #29114 - Fix Style/YodaCondition cop

View differences:

test/puppetca_token_whitelisting/puppetca_token_whitelisting_autosigner_test.rb
token = JSON.parse(response)['generated_token']
decoded = JWT.decode(token, @autosigner.smartproxy_cert.public_key, true, algorithm: 'RS512')
assert_equal decoded.first['certname'], 'baz.example.com'
assert 100 > (decoded.first['exp'] - Time.now.to_i - 360 * 60).abs
assert((decoded.first['exp'] - Time.now.to_i - 360 * 60).abs < 100)
end
def test_should_remove_autosign_entry

Also available in: Unified diff