Skip to content

Commit

Permalink
fix: time stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
celaus committed Jan 7, 2025
1 parent f298bd2 commit 82145fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion coralogix/data_source_coralogix_alert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func testAccCoralogixResourceAlertLogsImmediateForReading() string {
schedule = {
active_on = {
days_of_week = ["Wednesday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down
4 changes: 2 additions & 2 deletions coralogix/resource_coralogix_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ func (r *AlertResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
Required: true,
Validators: []validator.String{
stringvalidator.RegexMatches(
regexp.MustCompile(`^[0-9]{1,2}:[0-9]{1,2}$`),
regexp.MustCompile(`^[0-9]{2}:[0-9]{2}$`),
"Use 24h time formats like 15:04 or 9:04",
),
},
Expand All @@ -740,7 +740,7 @@ func (r *AlertResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
Required: true,
Validators: []validator.String{
stringvalidator.RegexMatches(
regexp.MustCompile(`^[0-9]{1,2}:[0-9]{1,2}$`),
regexp.MustCompile(`^[0-9]{2}:[0-9]{2}$`),
"Use 24h time formats like 15:04 or 9:04",
),
},
Expand Down
14 changes: 7 additions & 7 deletions coralogix/resource_coralogix_alert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ func testAccCoralogixResourceAlertLogsImmediate() string {
schedule = {
active_on = {
days_of_week = ["Wednesday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down Expand Up @@ -1420,7 +1420,7 @@ func testAccCoralogixResourceAlertLogsMoreThan() string {
schedule = {
active_on = {
days_of_week = ["Wednesday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down Expand Up @@ -1492,7 +1492,7 @@ func testAccCoralogixResourceAlertLogsMoreThanUpdated() string {
schedule = {
active_on = {
days_of_week = ["Monday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down Expand Up @@ -1564,7 +1564,7 @@ func testAccCoralogixResourceAlertLogsLessThan() string {
schedule = {
active_on = {
days_of_week = ["Wednesday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down Expand Up @@ -1630,7 +1630,7 @@ func testAccCoralogixResourceAlertLogsLessThanUpdated() string {
schedule = {
active_on = {
days_of_week = ["Monday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down Expand Up @@ -1705,7 +1705,7 @@ func testAccCoralogixResourceAlertLogsMoreThanUsual() string {
schedule = {
active_on = {
days_of_week = ["Wednesday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down Expand Up @@ -1901,7 +1901,7 @@ func testAccCoralogixResourceAlertLogsLessThanUsualUpdated() string {
schedule = {
active_on = {
days_of_week = ["Monday", "Thursday"]
start_time = "8:30"
start_time = "08:30"
end_time = "20:30"
}
}
Expand Down

0 comments on commit 82145fa

Please sign in to comment.