Skip to content

Commit b5867b6

Browse files
authored
[client provision via catalog] create client using service catalog (#128)
* create client using service catalog * lower case secret * secret fix * Small code change for secret fix and removed unused vendored pkg * fix integration tests
1 parent 3f9bb60 commit b5867b6

File tree

345 files changed

+635
-67593
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+635
-67593
lines changed

Gopkg.lock

+1-187
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
name = "github.com/pkg/errors"
77
version = "0.8.0"
88

9-
[[constraint]]
10-
name = "github.com/satori/go.uuid"
11-
version = "1.1.0"
12-
139
[[constraint]]
1410
name = "github.com/spf13/cobra"
1511
version = "0.0.1"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LDFLAGS=-ldflags "-w -s -X main.Version=${TAG}"
1010
.PHONY: setup
1111
setup:
1212
@go get github.com/kisielk/errcheck
13-
dep ensure --add github.com/goreleaser/goreleaser
13+
@go get -d github.com/goreleaser/goreleaser
1414

1515
.PHONY: build
1616
build: setup check build_binary

cmd/mobile/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func main() {
4545
var (
4646
out = os.Stdout
4747
rootCmd = cmd.NewRootCmd()
48-
clientCmd = cmd.NewClientCmd(mobileClient, out)
48+
clientCmd = cmd.NewClientCmd(mobileClient, scClient, k8Client, out)
4949
bindCmd = cmd.NewIntegrationCmd(scClient, k8Client, out)
5050
serviceConfigCmd = cmd.NewServiceConfigCommand(k8Client)
5151
clientCfgCmd = cmd.NewClientConfigCmd(k8Client, mobileClient, scClient, config.Host, out)

integration/client_crudl_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestClientJson(t *testing.T) {
6363

6464
m.Args("get", "client", expectedId).Should(notExists).Run().Test(t)
6565
o.Args("get", "mobileclient", expectedId).Should(notExists).Run().Test(t)
66-
m.Args("create", "client", name, clientType, appIdentifier).Should(exists).Run().Test(t)
66+
m.Args("create", "client", name, clientType, appIdentifier).Should(NoErr).Run().Test(t)
6767
m.Args("get", "client", expectedId).Should(exists).Run().Test(t)
6868
o.Args("get", "mobileclient", expectedId).Should(exists).Run().Test(t)
6969
m.Args("delete", "client", expectedId).Should(NoErr).Run().Test(t)

integration/validatedCommandUtils.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ func IsErr(output []byte, err error) ValidationResult {
4747

4848
func ValidRegex(pattern string) func(output []byte, err error) ValidationResult {
4949
return func(output []byte, err error) ValidationResult {
50-
matched, errMatch := regexp.MatchString(pattern, fmt.Sprintf("%s", output))
50+
want := fmt.Sprintf("%s", output)
51+
matched, errMatch := regexp.MatchString(pattern, want)
5152
if errMatch != nil {
5253
return ValidationResult{
5354
Success: false,

0 commit comments

Comments
 (0)