Sha256: fe5c2d4b07afb6616ad4d4ee87077e3982c514c1209df63380481d2729d90b14

Contents?: true

Size: 864 Bytes

Versions: 3

Compression:

Stored size: 864 Bytes

Contents

require 'test/unit'
require File.dirname(__FILE__) + '/../../lib/aws'
require 'pp'
require File.dirname(__FILE__) + '/../test_credentials.rb'

class TestIam < Test::Unit::TestCase

    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

3 entries across 3 versions & 1 rubygems

Version Path
aws-2.10.2 test/iam/test_iam.rb
aws-2.10.0 test/iam/test_iam.rb
aws-2.9.1 test/iam/test_iam.rb