Sha256: cbe64fc2d5895b94eeb9b9fb6c17ecd96fabcfdce2a77f8812136b2872ac7e05
Contents?: true
Size: 1.14 KB
Versions: 16
Compression:
Stored size: 1.14 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/test_helper") class TestKeys < Minitest::Test KEY_DATA = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz29znMi/UJX/nvkRSO5FFugKhU9DkkI53E0vXUnP8zeLFxMgyUqmXryPVjWtGzz2LRWqjm14SbqHAmM44pGHVfBIp6wCKBWSUYGv/FxOulwYgtWzz4moxWLZrFyWWgJAnehcVUifHNgzKwT2ovWm2ns52681Z8yFK3K8/uLStDjLIaPePEOaxaTvgIxZNsfyEoXoHcyTPwdR1GtQuDTuDYqYmjmPCoKybYnXrTQ1QFuQxDneBkswQYSl0H2aLf3uBK4F01hr+azXQuSe39eSV4I/TqzmNJlanpILT9Jz3/J1i4r6brpF3AxLnFnb9ufIbzQAIa/VZIulfrZkcBsUl david@carbon.local" def test_delete_key_key_not_found assert_raises(Heroku::API::Errors::NotFound) do heroku.delete_key(random_name) end end def test_delete_key heroku.post_key(KEY_DATA) response = heroku.delete_key('david@carbon.local') assert_equal(200, response.status) end def test_delete_keys response = heroku.delete_keys assert_equal(200, response.status) end def test_get_keys response = heroku.get_keys assert_equal(200, response.status) end def test_post_key response = heroku.post_key(KEY_DATA) assert_equal(200, response.status) heroku.delete_key('david@carbon.local') end end
Version data entries
16 entries across 16 versions & 1 rubygems