Skip to content

Commit 453b286

Browse files
committed
fixed linters
1 parent 30819be commit 453b286

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

internal/service/odb/network_peering_connection.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,20 @@ func (r *resourceNetworkPeeringConnection) Schema(ctx context.Context, req resou
7777
Description: "Required field. The unique identifier of the ODB peering connection. Changing this will force terraform to create new resource",
7878
},
7979

80-
"display_name": schema.StringAttribute{
80+
names.AttrDisplayName: schema.StringAttribute{
8181
Description: "Display name of the odb network peering connection. Changing this will force terraform to create new resource",
8282
Required: true,
8383
PlanModifiers: []planmodifier.String{
8484
stringplanmodifier.RequiresReplace(),
8585
},
8686
},
8787

88-
"status": schema.StringAttribute{
88+
names.AttrStatus: schema.StringAttribute{
8989
Description: "Status of the odb network peering connection.",
9090
CustomType: fwtypes.StringEnumType[odbtypes.ResourceStatus](),
9191
Computed: true,
9292
},
93-
"status_reason": schema.StringAttribute{
93+
names.AttrStatusReason: schema.StringAttribute{
9494
Description: "The reason for the current status of the ODB peering connection..",
9595
Computed: true,
9696
},
@@ -108,7 +108,7 @@ func (r *resourceNetworkPeeringConnection) Schema(ctx context.Context, req resou
108108
Description: "Type of the odb peering connection.",
109109
Computed: true,
110110
},
111-
"created_at": schema.StringAttribute{
111+
names.AttrCreatedAt: schema.StringAttribute{
112112
Description: "Created time of the odb network peering connection.",
113113
Computed: true,
114114
},

internal/service/odb/network_peering_connection_data_source.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ func (d *dataSourceNetworkPeeringConnection) Schema(ctx context.Context, req dat
4040
Description: "Network Peering Connection identifier.",
4141
Required: true,
4242
},
43-
"display_name": schema.StringAttribute{
43+
names.AttrDisplayName: schema.StringAttribute{
4444
Description: "Display name of the odb network peering connection.",
4545
Computed: true,
4646
},
47-
"status": schema.StringAttribute{
47+
names.AttrStatus: schema.StringAttribute{
4848
Description: "Status of the odb network peering connection.",
4949
CustomType: fwtypes.StringEnumType[odbtypes.ResourceStatus](),
5050
Computed: true,
5151
},
52-
"status_reason": schema.StringAttribute{
52+
names.AttrStatusReason: schema.StringAttribute{
5353
Description: "Status of the odb network peering connection.",
5454
Computed: true,
5555
},
@@ -69,7 +69,7 @@ func (d *dataSourceNetworkPeeringConnection) Schema(ctx context.Context, req dat
6969
Description: "Type of the odb peering connection.",
7070
Computed: true,
7171
},
72-
"created_at": schema.StringAttribute{
72+
names.AttrCreatedAt: schema.StringAttribute{
7373
Description: "Created time of the odb network peering connection.",
7474
Computed: true,
7575
},

internal/service/odb/network_peering_connection_data_source_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func TestAccODBNetworkPeeringConnectionDataSource_basic(t *testing.T) {
5757
{
5858
Config: odbPeeringDSTest.basicPeeringConfig(vpcName, odbNetDispName, odbNetPeeringDisplayName),
5959
Check: resource.ComposeAggregateTestCheckFunc(
60-
resource.TestCheckResourceAttrPair(networkPeeringResource, "id", networkPerringDataSource, "id"),
60+
resource.TestCheckResourceAttrPair(networkPeeringResource, names.AttrID, networkPerringDataSource, names.AttrID),
6161
),
6262
},
6363
},

internal/service/odb/network_peering_connection_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestAccODBNetworkPeeringConnection_basic(t *testing.T) {
6161
Config: odbNwkPeeringTestResource.basicConfig(vpcName, odbNetName, odbPeeringDisplayName),
6262
Check: resource.ComposeAggregateTestCheckFunc(
6363
testAccCheckNetworkPeeringConnectionExists(ctx, resourceName, &odbPeeringResource),
64-
resource.TestCheckResourceAttr(resourceName, "tags.%", "1"),
64+
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "1"),
6565
resource.TestCheckResourceAttr(resourceName, "tags.env", "dev"),
6666
),
6767
},
@@ -100,7 +100,7 @@ func TestAccODBNetworkPeeringConnection_tagging(t *testing.T) {
100100
Config: odbNwkPeeringTestResource.basicConfig(vpcName, odbNetName, odbPeeringDisplayName),
101101
Check: resource.ComposeAggregateTestCheckFunc(
102102
testAccCheckNetworkPeeringConnectionExists(ctx, resourceName, &odbPeeringResource),
103-
resource.TestCheckResourceAttr(resourceName, "tags.%", "1"),
103+
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "1"),
104104
resource.TestCheckResourceAttr(resourceName, "tags.env", "dev"),
105105
),
106106
},
@@ -113,7 +113,7 @@ func TestAccODBNetworkPeeringConnection_tagging(t *testing.T) {
113113
Config: odbNwkPeeringTestResource.basicConfigNoTag(vpcName, odbNetName, odbPeeringDisplayName),
114114
Check: resource.ComposeAggregateTestCheckFunc(
115115
testAccCheckNetworkPeeringConnectionExists(ctx, resourceName, &odbPeeringResource),
116-
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
116+
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "0"),
117117
),
118118
},
119119
{

0 commit comments

Comments
 (0)