Skip to content

Commit

Permalink
Merge pull request #434 from Peripli/master-smaap
Browse files Browse the repository at this point in the history
Service manager as a platform
  • Loading branch information
georgifarashev authored Feb 11, 2020
2 parents 8ad5c03 + 0d61cd6 commit fe1b4ba
Show file tree
Hide file tree
Showing 153 changed files with 10,519 additions and 1,531 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ services:
- postgresql

script:
- while sleep 9m; do echo "=====[already running for $SECONDS ...]====="; done &
- make precommit
- goveralls -coverprofile profile.cov -service=travis-ci
- kill %1


notifications:
Expand Down
56 changes: 28 additions & 28 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ GO_BUILD = env CGO_ENABLED=0 GOOS=$(PLATFORM) GOARCH=$(ARCH) \
$(GO) build $(GO_FLAGS) -ldflags '-s -w $(BUILD_LDFLAGS) $(VERSION_FLAGS)'

# TEST_FLAGS - extra "go test" flags to use
GO_INT_TEST = $(GO) test -p 1 -race -coverpkg $(shell go list ./... | egrep -v "fakes|test|cmd|parser" | paste -sd "," -) \
GO_INT_TEST = $(GO) test -p 1 -timeout 30m -race -coverpkg $(shell go list ./... | egrep -v "fakes|test|cmd|parser" | paste -sd "," -) \
./test/... $(TEST_FLAGS) -coverprofile=$(INT_TEST_PROFILE)

GO_UNIT_TEST = $(GO) test -p 1 -race -coverpkg $(shell go list ./... | egrep -v "fakes|test|cmd|parser" | paste -sd "," -) \
Expand Down
19 changes: 13 additions & 6 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,22 @@ func New(ctx context.Context, e env.Environment, options *Options) (*web.API, er
return &web.API{
// Default controllers - more filters can be registered using the relevant API methods
Controllers: []web.Controller{
NewAsyncController(ctx, options, web.ServiceBrokersURL, types.ServiceBrokerType, func() types.Object {
NewAsyncController(ctx, options, web.ServiceBrokersURL, types.ServiceBrokerType, false, func() types.Object {
return &types.ServiceBroker{}
}),
NewController(options, web.PlatformsURL, types.PlatformType, func() types.Object {
NewController(ctx, options, web.PlatformsURL, types.PlatformType, func() types.Object {
return &types.Platform{}
}),
NewController(options, web.VisibilitiesURL, types.VisibilityType, func() types.Object {
NewController(ctx, options, web.VisibilitiesURL, types.VisibilityType, func() types.Object {
return &types.Visibility{}
}),
NewServiceInstanceController(ctx, options),
NewServiceBindingController(ctx, options),
apiNotifications.NewController(ctx, options.Repository, options.WSSettings, options.Notificator),
NewServiceOfferingController(options),
NewServicePlanController(options),
NewServiceInstanceController(options),

NewServiceOfferingController(ctx, options),
NewServicePlanController(ctx, options),

&info.Controller{
TokenIssuer: options.APISettings.TokenIssuerURL,
TokenBasicAuth: options.APISettings.TokenBasicAuth,
Expand All @@ -130,6 +133,10 @@ func New(ctx context.Context, e env.Environment, options *Options) (*web.API, er
&filters.Logging{},
&filters.SelectionCriteria{},
filters.NewProtectedLabelsFilter(options.APISettings.ProtectedLabels),
&filters.ProtectedSMPlatformFilter{},
&filters.ServiceInstanceFilter{},
&filters.ServiceInstanceStripFilter{},
&filters.ServiceBindingStripFilter{},
&filters.PlatformAwareVisibilityFilter{},
&filters.PatchOnlyLabelsFilter{},
filters.NewPlansFilterByVisibility(options.Repository),
Expand Down
Loading

0 comments on commit fe1b4ba

Please sign in to comment.