Skip to content

Commit

Permalink
Randomize the shared domain created by this spec
Browse files Browse the repository at this point in the history
- Future proofs this spec for parallel running
-[#169354687](https://www.pivotaltracker.com/story/show/169354687)

Authored-by: Lisa Cho <[email protected]>
  • Loading branch information
Lisa Cho committed Oct 30, 2019
1 parent 60e22a2 commit e792d52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion volume_services/volume_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"path/filepath"
"strings"
"time"

"github.com/cloudfoundry-incubator/cf-test-helpers/cf"
Expand Down Expand Up @@ -45,7 +46,9 @@ var _ = VolumeServicesDescribe("Volume Services", func() {
session = cf.Cf("curl", fmt.Sprintf("/routing/v1/router_groups/%s", routerGroupGuid), "-X", "PUT", "-d", payload).Wait()
Expect(session).To(Exit(0), "cannot update tcp router group to allow nfs traffic")

tcpDomain = fmt.Sprintf("tcp.%s", Config.GetAppsDomain())
randomDomain := strings.ReplaceAll(random_name.CATSRandomName("SHARED_DOMAIN"), "_", "-")

tcpDomain = fmt.Sprintf("%s.%s", randomDomain, Config.GetAppsDomain())

session = cf.Cf("create-shared-domain", tcpDomain, "--router-group", "default-tcp").Wait()
Expect(session).To(Exit(0), "can not create shared tcp domain")
Expand Down

0 comments on commit e792d52

Please sign in to comment.