Skip to content

Commit

Permalink
[client provision via catalog] create client using service catalog (#128
Browse files Browse the repository at this point in the history
)

* create client using service catalog

* lower case secret

* secret fix

* Small code change for secret fix and removed unused vendored pkg

* fix integration tests
  • Loading branch information
witmicko committed Jun 18, 2018
1 parent 3f9bb60 commit b5867b6
Show file tree
Hide file tree
Showing 345 changed files with 635 additions and 67,593 deletions.
188 changes: 1 addition & 187 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Gopkg.toml
Expand Up @@ -6,10 +6,6 @@
name = "github.com/pkg/errors"
version = "0.8.0"

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.1.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -10,7 +10,7 @@ LDFLAGS=-ldflags "-w -s -X main.Version=${TAG}"
.PHONY: setup
setup:
@go get github.com/kisielk/errcheck
dep ensure --add github.com/goreleaser/goreleaser
@go get -d github.com/goreleaser/goreleaser

.PHONY: build
build: setup check build_binary
Expand Down
2 changes: 1 addition & 1 deletion cmd/mobile/main.go
Expand Up @@ -45,7 +45,7 @@ func main() {
var (
out = os.Stdout
rootCmd = cmd.NewRootCmd()
clientCmd = cmd.NewClientCmd(mobileClient, out)
clientCmd = cmd.NewClientCmd(mobileClient, scClient, k8Client, out)
bindCmd = cmd.NewIntegrationCmd(scClient, k8Client, out)
serviceConfigCmd = cmd.NewServiceConfigCommand(k8Client)
clientCfgCmd = cmd.NewClientConfigCmd(k8Client, mobileClient, scClient, config.Host, out)
Expand Down
2 changes: 1 addition & 1 deletion integration/client_crudl_test.go
Expand Up @@ -63,7 +63,7 @@ func TestClientJson(t *testing.T) {

m.Args("get", "client", expectedId).Should(notExists).Run().Test(t)
o.Args("get", "mobileclient", expectedId).Should(notExists).Run().Test(t)
m.Args("create", "client", name, clientType, appIdentifier).Should(exists).Run().Test(t)
m.Args("create", "client", name, clientType, appIdentifier).Should(NoErr).Run().Test(t)
m.Args("get", "client", expectedId).Should(exists).Run().Test(t)
o.Args("get", "mobileclient", expectedId).Should(exists).Run().Test(t)
m.Args("delete", "client", expectedId).Should(NoErr).Run().Test(t)
Expand Down
3 changes: 2 additions & 1 deletion integration/validatedCommandUtils.go
Expand Up @@ -47,7 +47,8 @@ func IsErr(output []byte, err error) ValidationResult {

func ValidRegex(pattern string) func(output []byte, err error) ValidationResult {
return func(output []byte, err error) ValidationResult {
matched, errMatch := regexp.MatchString(pattern, fmt.Sprintf("%s", output))
want := fmt.Sprintf("%s", output)
matched, errMatch := regexp.MatchString(pattern, want)
if errMatch != nil {
return ValidationResult{
Success: false,
Expand Down

0 comments on commit b5867b6

Please sign in to comment.