Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Oct 16, 2023
1 parent 6697c6f commit 1134890
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion platform-tests/broker-acceptance/s3_broker_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package broker_acceptance_test

import (
"bytes"
"encoding/json"
"io/ioutil"
"time"
Expand Down Expand Up @@ -128,7 +129,11 @@ var _ = Describe("S3 broker", func() {
)
Expect(cfSess.Wait(testConfig.DefaultTimeoutDuration())).To(Exit(0))

err := json.Unmarshal(cfSess.Out.Contents(), &serviceKeyCredentials)
outContents := cfSess.Out.Contents()
err := json.Unmarshal(
outContents[bytes.IndexByte(outContents, byte('{')):],
&serviceKeyCredentials,
)
Expect(err).ToNot(HaveOccurred())

Expect(serviceKeyCredentials.BucketName).ToNot(Equal(""))
Expand Down

0 comments on commit 1134890

Please sign in to comment.