Skip to content

Deprecated parameters for provisioning #82

@mrgunior

Description

@mrgunior

Branch: dev
File: provision.go

This test case for organization_guid:

Convey("should reject if request payload is missing organization_guid", func() {
	tempBody := openapi.ServiceInstanceProvisionRequest{}
	deepCopy(req, &tempBody)
	tempBody.OrganizationGuid = ""
	_, resp, err := cli.ServiceInstancesApi.ServiceInstanceProvision(
		authCtx, CONF.APIVersion, instanceID, tempBody,
		&openapi.ServiceInstanceProvisionOpts{AcceptsIncomplete: optional.NewBool(async)})

	So(err, ShouldNotBeNil)
	So(resp.StatusCode, ShouldEqual, 400)
})

And this one for space_guid:
Convey("should reject if request payload is missing space_guid", func() {
	tempBody := openapi.ServiceInstanceProvisionRequest{}
	deepCopy(req, &tempBody)
	tempBody.SpaceGuid = ""
	_, resp, err := cli.ServiceInstancesApi.ServiceInstanceProvision(
		authCtx, CONF.APIVersion, instanceID, tempBody,
		&openapi.ServiceInstanceProvisionOpts{AcceptsIncomplete: optional.NewBool(async)})

	So(err, ShouldNotBeNil)
	So(resp.StatusCode, ShouldEqual, 400)
})

These two parameters have been replaced with the parameter context (which is optional) in version 2.11 of the OSBAPI. Are they still necessary according to the current specifications?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions