Sha256: 16c092307fa4b13265edc06e43edfe6424634b844b983beaddd9667e50983a46
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
class Ey::Core::Client class Real def retrieve_docker_registry_credentials(account_id, location_id) request( :path => "/accounts/#{account_id}/docker-registry/#{location_id}/credentials" ) end end class Mock def retrieve_docker_registry_credentials(account_id, location_id) response( :body => { 'docker_registry_credentials' => { 'username' => 'foo', 'password' => 'bar', 'registry_endpoint' => "https://012345678901.dkr.ecr.#{location_id}.amazonaws.com", 'expires_at' => (Time.now + 8 * 3600).to_i } } ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.6.6 | lib/ey-core/requests/retrieve_docker_registry_credentials.rb |
ey-core-3.6.5 | lib/ey-core/requests/retrieve_docker_registry_credentials.rb |