Skip to content

Commit c411356

Browse files
committed
fixed linting issues.
1 parent 221cb5a commit c411356

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

internal/service/odb/db_system_shapes_list_data_source.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package odb
44

55
import (
66
"context"
7+
78
"github.com/aws/aws-sdk-go-v2/service/odb"
89
"github.com/hashicorp/terraform-plugin-framework/datasource"
910
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
@@ -17,19 +18,19 @@ import (
1718

1819
// Function annotations are used for datasource registration to the Provider. DO NOT EDIT.
1920
// @FrameworkDataSource("aws_odb_db_system_shapes_list", name="Db System Shapes List")
20-
func newDataSourceDbSystemShapesList(context.Context) (datasource.DataSourceWithConfigure, error) {
21-
return &dataSourceDbSystemShapesList{}, nil
21+
func newDataSourceDBSystemShapesList(context.Context) (datasource.DataSourceWithConfigure, error) {
22+
return &dataSourceDBSystemShapesList{}, nil
2223
}
2324

2425
const (
25-
DSNameDbSystemShapesList = "Db System Shapes List Data Source"
26+
DSNameDBSystemShapesList = "Db System Shapes List Data Source"
2627
)
2728

28-
type dataSourceDbSystemShapesList struct {
29+
type dataSourceDBSystemShapesList struct {
2930
framework.DataSourceWithModel[dbSystemShapesListDataSourceModel]
3031
}
3132

32-
func (d *dataSourceDbSystemShapesList) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
33+
func (d *dataSourceDBSystemShapesList) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
3334
resp.Schema = schema.Schema{
3435
Attributes: map[string]schema.Attribute{
3536
"availability_zone_id": schema.StringAttribute{
@@ -46,7 +47,7 @@ func (d *dataSourceDbSystemShapesList) Schema(ctx context.Context, req datasourc
4647
}
4748
}
4849

49-
func (d *dataSourceDbSystemShapesList) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
50+
func (d *dataSourceDBSystemShapesList) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
5051
conn := d.Meta().ODBClient(ctx)
5152

5253
var data dbSystemShapesListDataSourceModel
@@ -64,7 +65,7 @@ func (d *dataSourceDbSystemShapesList) Read(ctx context.Context, req datasource.
6465
page, err := paginator.NextPage(ctx)
6566
if err != nil {
6667
resp.Diagnostics.AddError(
67-
create.ProblemStandardMessage(names.ODB, create.ErrActionReading, DSNameDbSystemShapesList, "", err),
68+
create.ProblemStandardMessage(names.ODB, create.ErrActionReading, DSNameDBSystemShapesList, "", err),
6869
err.Error(),
6970
)
7071
return

internal/service/odb/db_system_shapes_list_data_source_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/hashicorp/terraform-provider-aws/names"
1212
)
1313

14-
func TestAccODBDbSystemShapesListDataSource_basic(t *testing.T) {
14+
func TestAccODBDBSystemShapesListDataSource_basic(t *testing.T) {
1515
ctx := acctest.Context(t)
1616
if testing.Short() {
1717
t.Skip("skipping long-running test in short mode")
@@ -25,7 +25,7 @@ func TestAccODBDbSystemShapesListDataSource_basic(t *testing.T) {
2525
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
2626
Steps: []resource.TestStep{
2727
{
28-
Config: basicConfigDbSystemShapeDataSource("use1-az6"),
28+
Config: basicConfigDBSystemShapeDataSource("use1-az6"),
2929
Check: resource.ComposeAggregateTestCheckFunc(
3030
resource.TestCheckResourceAttr(dataSourceName, "db_system_shapes.#", "2"),
3131
),
@@ -34,7 +34,7 @@ func TestAccODBDbSystemShapesListDataSource_basic(t *testing.T) {
3434
})
3535
}
3636

37-
func basicConfigDbSystemShapeDataSource(availabilityZoneId string) string {
37+
func basicConfigDBSystemShapeDataSource(availabilityZoneId string) string {
3838
return fmt.Sprintf(`
3939
data "aws_odb_db_system_shapes_list" "test"{
4040
availability_zone_id = %[1]q

internal/service/odb/gi_versions_list_data_source.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package odb
44

55
import (
66
"context"
7+
78
"github.com/aws/aws-sdk-go-v2/service/odb"
89
"github.com/hashicorp/terraform-plugin-framework/datasource"
910
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"

internal/service/odb/gi_versions_list_data_source_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/hashicorp/terraform-provider-aws/names"
1212
)
1313

14-
func TestAccGiVersionsListDataSource_basicX9M(t *testing.T) {
14+
func TestAccODBGiVersionsListDataSource_basicX9M(t *testing.T) {
1515
ctx := acctest.Context(t)
1616

1717
if testing.Short() {
@@ -36,7 +36,7 @@ func TestAccGiVersionsListDataSource_basicX9M(t *testing.T) {
3636
})
3737
}
3838

39-
func TestAccGiVersionsListDataSource_basicX11M(t *testing.T) {
39+
func TestAccODBGiVersionsListDataSource_basicX11M(t *testing.T) {
4040
ctx := acctest.Context(t)
4141
if testing.Short() {
4242
t.Skip("skipping long-running test in short mode")

internal/service/odb/service_package_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/docs/d/odb_gi_versions_list.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: |-
66
Terraform data source to retrieve available Grid Infrastructure versions of Oracle Database@AWS.
77
---
88

9-
# Data Source: aws_odb_cloud_exadata_infrastructure
9+
# Data Source: aws_odb_gi_versions_list
1010

1111
Terraform data source to retrieve available Grid Infrastructure versions of Oracle Database@AWS.
1212

0 commit comments

Comments
 (0)