internal/awscloud: remove S3 manager from AWS struct
This functionality is not needed any more, since it is provided by the osbuild/images version of AWS. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
0b5bfa044f
commit
4f0ae84add
7 changed files with 27 additions and 56 deletions
|
|
@ -75,7 +75,7 @@ write_files:
|
|||
|
||||
func TestSIRunSecureInstance(t *testing.T) {
|
||||
m := newEc2Mock(t)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil, nil)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil)
|
||||
require.NotNil(t, aws)
|
||||
|
||||
si, err := aws.RunSecureInstance("iam-profile", "key-name", "cw-group", "hostname")
|
||||
|
|
@ -88,7 +88,7 @@ func TestSIRunSecureInstance(t *testing.T) {
|
|||
|
||||
func TestSITerminateSecureInstance(t *testing.T) {
|
||||
m := newEc2Mock(t)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil, nil)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil)
|
||||
require.NotNil(t, aws)
|
||||
|
||||
// Small hack, describeinstances returns terminate/running
|
||||
|
|
@ -110,7 +110,7 @@ func TestSITerminateSecureInstance(t *testing.T) {
|
|||
|
||||
func TestSICreateSGFailures(t *testing.T) {
|
||||
m := newEc2Mock(t)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil, nil)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil)
|
||||
require.NotNil(t, aws)
|
||||
|
||||
m.failFn["CreateSecurityGroup"] = fmt.Errorf("some-error")
|
||||
|
|
@ -126,7 +126,7 @@ func TestSICreateSGFailures(t *testing.T) {
|
|||
|
||||
func TestSICreateLTFailures(t *testing.T) {
|
||||
m := newEc2Mock(t)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil, nil)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil)
|
||||
require.NotNil(t, aws)
|
||||
|
||||
m.failFn["CreateLaunchTemplate"] = fmt.Errorf("some-error")
|
||||
|
|
@ -142,7 +142,7 @@ func TestSICreateLTFailures(t *testing.T) {
|
|||
|
||||
func TestSICreateFleetFailures(t *testing.T) {
|
||||
m := newEc2Mock(t)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil, nil)
|
||||
aws := awscloud.NewForTest(m, &ec2imdsmock{t, "instance-id", "region1"}, nil)
|
||||
require.NotNil(t, aws)
|
||||
|
||||
// create fleet error should call create fleet thrice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue