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

Version Path
aws-2.4.5 test/iam/test_iam.rb
aws-2.4.4 test/iam/test_iam.rb
aws-2.4.3 test/iam/test_iam.rb
aws-2.4.2 test/iam/test_iam.rb
aws-2.4.1 test/iam/test_iam.rb
aws-2.4.0 test/iam/test_iam.rb
aws-2.3.34 test/iam/test_iam.rb
aws-2.3.32 test/iam/test_iam.rb
aws-2.3.31 test/iam/test_iam.rb
aws-2.3.30 test/iam/test_iam.rb
aws-2.3.29 test/iam/test_iam.rb
aws-2.3.28 test/iam/test_iam.rb
aws-2.3.27 test/iam/test_iam.rb
steamcannon-aws-2.3.26.2 test/iam/test_iam.rb
steamcannon-aws-2.3.26.1 test/iam/test_iam.rb
aws-2.3.26 test/iam/test_iam.rb