test: cleanup mocks
parent
0efef01812
commit
357005ed7b
|
@ -65,18 +65,6 @@ func TestS3BucketMetricSupplier_Resources(t *testing.T) {
|
|||
nil,
|
||||
)
|
||||
|
||||
repository.On(
|
||||
"ListBucketMetricsConfigurations",
|
||||
&s3.Bucket{Name: awssdk.String("bucket-martin-test-drift")},
|
||||
"eu-west-1",
|
||||
).Return(
|
||||
[]*s3.MetricsConfiguration{
|
||||
{Id: awssdk.String("Metrics_Bucket1")},
|
||||
{Id: awssdk.String("Metrics2_Bucket1")},
|
||||
},
|
||||
nil,
|
||||
)
|
||||
|
||||
repository.On(
|
||||
"ListBucketMetricsConfigurations",
|
||||
&s3.Bucket{Name: awssdk.String("bucket-martin-test-drift2")},
|
||||
|
@ -88,18 +76,6 @@ func TestS3BucketMetricSupplier_Resources(t *testing.T) {
|
|||
},
|
||||
nil,
|
||||
)
|
||||
|
||||
repository.On(
|
||||
"ListBucketMetricsConfigurations",
|
||||
&s3.Bucket{Name: awssdk.String("bucket-martin-test-drift3")},
|
||||
"ap-northeast-1",
|
||||
).Return(
|
||||
[]*s3.MetricsConfiguration{
|
||||
{Id: awssdk.String("Metrics_Bucket3")},
|
||||
{Id: awssdk.String("Metrics2_Bucket3")},
|
||||
},
|
||||
nil,
|
||||
)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "bnVsbA==",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "bnVsbA==",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQzIiwiZmlsdGVyIjpudWxsLCJpZCI6ImJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdDM6TWV0cmljczJfQnVja2V0MyIsIm5hbWUiOiJNZXRyaWNzMl9CdWNrZXQzIn0=",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQzIiwiZmlsdGVyIjpudWxsLCJpZCI6ImJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdDM6TWV0cmljc19CdWNrZXQzIiwibmFtZSI6Ik1ldHJpY3NfQnVja2V0MyJ9",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "bnVsbA==",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "bnVsbA==",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJmaWx0ZXIiOm51bGwsImlkIjoiYnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0Ok1ldHJpY3MyX0J1Y2tldDEiLCJuYW1lIjoiTWV0cmljczJfQnVja2V0MSJ9",
|
||||
"Err": null
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyJ9XQ==",
|
||||
"Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJmaWx0ZXIiOm51bGwsImlkIjoiYnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0Ok1ldHJpY3NfQnVja2V0MSIsIm5hbWUiOiJNZXRyaWNzX0J1Y2tldDEifQ==",
|
||||
"Err": null
|
||||
}
|
|
@ -6,9 +6,9 @@ import (
|
|||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/cloudskiff/driftctl/pkg/terraform"
|
||||
"github.com/cloudskiff/driftctl/test/goldenfile"
|
||||
|
||||
"github.com/cloudskiff/driftctl/pkg/terraform"
|
||||
"github.com/hashicorp/terraform/providers"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
ctyjson "github.com/zclconf/go-cty/cty/json"
|
||||
|
|
Loading…
Reference in New Issue