Skip to content

Commit

Permalink
set expiration_timestamp for cluster
Browse files Browse the repository at this point in the history
It sets expiration_timestamp for the clusters created by
clusters_mgmt endpoints. We need to work on fixing [1]
i.e setting expiration_timestamp for clusters created by
services (i.e service_mgmt endpoint). We will disable
testing service_mgmt endpoints in CI till this gets fixed.

[1] cloud-bulldozer#102
  • Loading branch information
venkataanil committed Dec 8, 2022
1 parent d209c1e commit e632654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helpers/clean_test_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func addTestProperties(body string) (string, error) {
}
properties["user"] = user.Name
cluster["properties"] = properties
if cluster["expiration_timestamp"] == "" {
if cluster["expiration_timestamp"] == nil {
cluster["expiration_timestamp"] = time.Now().Add(time.Hour).Format(time.RFC3339)
}
result, err := json.Marshal(cluster)
Expand Down

0 comments on commit e632654

Please sign in to comment.