Skip to content

Commit 7dd0213

Browse files
committed
fixed linting issues of avmc
1 parent 6c30443 commit 7dd0213

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

internal/service/odb/cloud_autonomous_vm_cluster.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
123123
Computed: true,
124124
Description: "The percentage of total CPU cores currently in use in the Autonomous VM cluster.",
125125
},
126-
"created_at": schema.StringAttribute{
126+
names.AttrCreatedAt: schema.StringAttribute{
127127
Computed: true,
128128
CustomType: timetypes.RFC3339Type{},
129129
Description: "The date and time when the Autonomous VM cluster was created.",
@@ -149,23 +149,23 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
149149
},
150150
Description: "The database servers in the Autonomous VM cluster. Changing this will force terraform to create new resource.",
151151
},
152-
"description": schema.StringAttribute{
152+
names.AttrDescription: schema.StringAttribute{
153153
Optional: true,
154154
PlanModifiers: []planmodifier.String{
155155
stringplanmodifier.RequiresReplace(),
156156
stringplanmodifier.UseStateForUnknown(),
157157
},
158158
Description: "The description of the Autonomous VM cluster.",
159159
},
160-
"display_name": schema.StringAttribute{
160+
names.AttrDisplayName: schema.StringAttribute{
161161
Required: true,
162162
Validators: stringLengthBetween1And255Validator,
163163
PlanModifiers: []planmodifier.String{
164164
stringplanmodifier.RequiresReplace(),
165165
},
166166
Description: "The display name of the Autonomous VM cluster. Changing this will force terraform to create new resource.",
167167
},
168-
"domain": schema.StringAttribute{
168+
names.AttrDomain: schema.StringAttribute{
169169
Computed: true,
170170
Description: "The domain name of the Autonomous VM cluster.",
171171
},
@@ -283,12 +283,12 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
283283
Computed: true,
284284
Description: "The shape of the Exadata infrastructure for the Autonomous VM cluster.",
285285
},
286-
"status": schema.StringAttribute{
286+
names.AttrStatus: schema.StringAttribute{
287287
CustomType: status,
288288
Computed: true,
289289
Description: "The status of the Autonomous VM cluster. Possible values include CREATING, AVAILABLE , UPDATING , DELETING , DELETED , FAILED ",
290290
},
291-
"status_reason": schema.StringAttribute{
291+
names.AttrStatusReason: schema.StringAttribute{
292292
Computed: true,
293293
Description: "Additional information about the current status of the Autonomous VM cluster.",
294294
},

internal/service/odb/cloud_autonomous_vm_cluster_data_source.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (d *dataSourceCloudAutonomousVmCluster) Schema(ctx context.Context, req dat
8787
Computed: true,
8888
Description: "he percentage of total CPU cores currently in use in the Autonomous VM cluster.",
8989
},
90-
"created_at": schema.StringAttribute{
90+
names.AttrCreatedAt: schema.StringAttribute{
9191
Computed: true,
9292
CustomType: timetypes.RFC3339Type{},
9393
Description: "The date and time when the Autonomous VM cluster was created.",
@@ -110,15 +110,15 @@ func (d *dataSourceCloudAutonomousVmCluster) Schema(ctx context.Context, req dat
110110
ElementType: types.StringType,
111111
Description: "The list of database servers associated with the Autonomous VM cluster.",
112112
},
113-
"description": schema.StringAttribute{
113+
names.AttrDescription: schema.StringAttribute{
114114
Computed: true,
115115
Description: "The user-provided description of the Autonomous VM cluster.",
116116
},
117-
"display_name": schema.StringAttribute{
117+
names.AttrDisplayName: schema.StringAttribute{
118118
Computed: true,
119119
Description: "The display name of the Autonomous VM cluster.",
120120
},
121-
"domain": schema.StringAttribute{
121+
names.AttrDomain: schema.StringAttribute{
122122
Computed: true,
123123
Description: "The domain name of the Autonomous VM cluster.",
124124
},

internal/service/odb/cloud_autonomous_vm_cluster_data_source_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func TestAccODBCloudAutonomousVmClusterDataSource_basic(t *testing.T) {
5454
{
5555
Config: autonomousVMClusterDSTestEntity.avmcBasic(),
5656
Check: resource.ComposeAggregateTestCheckFunc(
57-
resource.TestCheckResourceAttr(dataSourceName, "display_name", *avmc1.DisplayName),
57+
resource.TestCheckResourceAttr(dataSourceName, names.AttrDisplayName, *avmc1.DisplayName),
5858
),
5959
},
6060
},

internal/service/odb/cloud_autonomous_vm_cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func TestAccODBCloudAutonomousVmClusterTagging(t *testing.T) {
131131

132132
Check: resource.ComposeAggregateTestCheckFunc(
133133
autonomousVMClusterResourceTestEntity.checkCloudAutonomousVmClusterExists(ctx, resourceName, &avmc1),
134-
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
134+
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "0"),
135135
),
136136
},
137137
{
@@ -143,7 +143,7 @@ func TestAccODBCloudAutonomousVmClusterTagging(t *testing.T) {
143143
Config: withTag,
144144
Check: resource.ComposeAggregateTestCheckFunc(
145145
autonomousVMClusterResourceTestEntity.checkCloudAutonomousVmClusterExists(ctx, resourceName, &avmc2),
146-
resource.TestCheckResourceAttr(resourceName, "tags.%", "1"),
146+
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "1"),
147147
resource.TestCheckResourceAttr(resourceName, "tags.env", "dev"),
148148
resource.ComposeTestCheckFunc(func(state *terraform.State) error {
149149
if strings.Compare(*(avmc1.CloudAutonomousVmClusterId), *(avmc2.CloudAutonomousVmClusterId)) != 0 {

0 commit comments

Comments
 (0)