Skip to content

Commit f705b19

Browse files
committed
chore(lint): fix linter
Signed-off-by: Vincent Mercier <vincmer@amazon.com>
1 parent bf19f93 commit f705b19

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

internal/app/exporter/exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ func (c *rdsCollector) Collect(ch chan<- prometheus.Metric) {
586586
c.awsAccountID,
587587
c.awsRegion,
588588
clusterIdentifier,
589-
cluster.DbClusterResourceId,
589+
cluster.DBClusterResourceID,
590590
cluster.Engine,
591591
cluster.EngineVersion,
592592
cluster.Arn,

internal/app/rds/mock/rds.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func NewRdsCluster() *aws_rds_types.DBCluster {
152152
awsRegion := "eu-west-3"
153153
awsAccountID := "123456789012"
154154
DBClusterIdentifier := RandomString(10)
155-
DbClusterResourceID := RandomString(10)
155+
DBClusterResourceID := RandomString(10)
156156
arn := fmt.Sprintf("arn:aws:rds:%s:%s:db:%s", awsRegion, awsAccountID, DBClusterIdentifier)
157157

158158
now := time.Now()
@@ -163,7 +163,7 @@ func NewRdsCluster() *aws_rds_types.DBCluster {
163163
DBClusterArn: aws.String(arn),
164164
DBClusterInstanceClass: aws.String("t3.large"),
165165
DBClusterIdentifier: aws.String(DBClusterIdentifier),
166-
DbClusterResourceId: aws.String(DbClusterResourceID),
166+
DbClusterResourceId: aws.String(DBClusterResourceID),
167167
Status: aws.String("available"),
168168
DeletionProtection: aws.Bool(true),
169169
Engine: aws.String("postgres"),

internal/app/rds/rds.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type ClusterMetrics struct {
6464
// The Amazon Web Services Region-unique, immutable identifier for the DB cluster.
6565
// This identifier is found in Amazon Web Services CloudTrail log entries whenever
6666
// the KMS key for the DB cluster is accessed.
67-
DbClusterResourceId string
67+
DBClusterResourceID string
6868

6969
// Members
7070
Members map[string]DBRole
@@ -380,7 +380,7 @@ func (r *RDSFetcher) getClusters(ctx context.Context, filters []aws_rds_types.Fi
380380
DBClusterIdentifier: *dbCluster.DBClusterIdentifier,
381381
Members: members,
382382
WriterDBInstanceIdentifier: writerDBInstanceIdentifier,
383-
DbClusterResourceId: *dbCluster.DbClusterResourceId,
383+
DBClusterResourceID: *dbCluster.DbClusterResourceId,
384384
Age: time.Since(*dbCluster.ClusterCreateTime).Seconds(),
385385
Tags: ConvertRDSTagsToMap(dbCluster.TagList),
386386
ServerLessMaxACU: maxACU,

internal/app/rds/rds_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func checkRDSCluster(t *testing.T, cluster *aws_rds_types.DBCluster, result rds.
6969
assert.Equal(t, fmt.Sprintf("arn:aws:rds:eu-west-3:123456789012:db:%s", *cluster.DBClusterIdentifier), result.Arn, "ARN mismatch")
7070
assert.Equal(t, converter.GigaBytesToBytes(int64(*cluster.AllocatedStorage)), result.AllocatedStorage, "Allocated storage mismatch")
7171
assert.Equal(t, *cluster.DBClusterIdentifier, result.DBClusterIdentifier, "DBClusterIdentifier mismatch")
72-
assert.Equal(t, *cluster.DbClusterResourceId, result.DbClusterResourceId, "DbClusterResourceId mismatch")
72+
assert.Equal(t, *cluster.DbClusterResourceId, result.DBClusterResourceID, "DBClusterResourceID mismatch")
7373
assert.Equal(t, *cluster.Engine, result.Engine, "Engine mismatch")
7474
assert.Equal(t, *cluster.EngineVersion, result.EngineVersion, "Engine version mismatch")
7575
assert.Equal(t, int(time.Since(*cluster.ClusterCreateTime).Seconds()), int(result.Age), "Age should match expected age")

0 commit comments

Comments
 (0)