Sha256: fd8e9089fb5837f0a6e1d5891185872be83d56729f9b18ffff8a52e9c11e05cc
Contents?: true
Size: 1015 Bytes
Versions: 16
Compression:
Stored size: 1015 Bytes
Contents
require 'test/unit' require File.dirname(__FILE__) + '/../../lib/aws' require 'pp' require File.dirname(__FILE__) + '/../test_credentials.rb' class TestElb < Test::Unit::TestCase # Some of RightEc2 instance methods concerning instance launching and image registration # are not tested here due to their potentially risk. def setup TestCredentials.get_credentials @iam = Aws::Iam.new(TestCredentials.aws_access_key_id, TestCredentials.aws_secret_access_key) end def test_01_list_server_certificates ret = @iam.list_server_certificates p ret assert_true(ret.size == 0) end def test_02_upload_server_certificate ret = @iam.upload_server_certificate("test_cert", IO.read('x').strip, IO.read('y').strip, :certificate_chain=>IO.read('z').strip) p ret end end
Version data entries
16 entries across 16 versions & 2 rubygems