Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
davissp14 committed Jun 25, 2024
1 parent c3ce2e2 commit 2d4b622
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/flypg/pg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func TestPGConfigInitialization(t *testing.T) {
t.Run("cloud-archiving", func(t *testing.T) {
t.Setenv("CLOUD_ARCHIVING_ENABLED", "true")
t.Setenv("AWS_ACCESS_KEY_ID", "my-key")
t.Setenv("AWS_ENDPOINT_URL", "https://fly.storage.tigris.dev")
t.Setenv("AWS_SECRET_ACCESS_KEY", "my-secret")
t.Setenv("AWS_BUCKET_NAME", "my-bucket")

Expand All @@ -135,7 +136,8 @@ func TestPGConfigInitialization(t *testing.T) {
t.Fatalf("expected archive_mode to be on, got %v", cfg["archive_mode"])
}

expected := fmt.Sprintf("'barman-cloud-wal-archive --cloud-provider aws-s3 --endpoint-url https://fly.storage.tigris.dev s3://%s %s %%p'",
expected := fmt.Sprintf("'barman-cloud-wal-archive --cloud-provider aws-s3 --endpoint-url %s s3://%s %s %%p'",
os.Getenv("AWS_ENDPOINT_URL"),
os.Getenv("AWS_BUCKET_NAME"),
pgConf.AppName)

Expand Down

0 comments on commit 2d4b622

Please sign in to comment.