cf-acceptance-tests
cf-acceptance-tests copied to clipboard
CATS fail on SSO Lifecycle tests when CF API v2 is disabled
CATS fail when disable-v2-api ops file is included:
Example: https://release-integration.ci.cf-app.com/teams/main/pipelines/cf-deployment/jobs/experimental-cats/builds/2435
Summarizing 4 Failures:
[Fail] [services] SSO Lifecycle When a service broker is created with a dashboard client [It] can perform an operation on a user's behalf using sso
/go/src/github.com/cloudfoundry/cf-acceptance-tests/services/sso_lifecycle.go:80
[Fail] [services] SSO Lifecycle When a service broker is updated with a new dashboard client [It] can perform an operation on a user's behalf using sso
/go/src/github.com/cloudfoundry/cf-acceptance-tests/services/sso_lifecycle.go:116
[Fail] [services] SSO Lifecycle When a service broker is created with a dashboard client [It] can perform an operation on a user's behalf using sso
/go/src/github.com/cloudfoundry/cf-acceptance-tests/services/sso_lifecycle.go:80
[Fail] [services] SSO Lifecycle When a service broker is updated with a new dashboard client [It] can perform an operation on a user's behalf using sso
/go/src/github.com/cloudfoundry/cf-acceptance-tests/services/sso_lifecycle.go:116
Ran 165 of 228 Specs in 1704.374 seconds
FAIL! -- 163 Passed | 2 Failed | 0 Flaked | 3 Pending | 60 Skipped
RC seems to be https://github.com/cloudfoundry/cf-acceptance-tests/blob/develop/helpers/services/sso.go#L154 which contains a hardcoded CF API v2 endpoint: /v2/service_instances/:guid/permissions
There is no direct replacement for this endpoint in CF API v3 (maybe /v3/roles).
WIP:
- https://github.com/cloudfoundry/cloud_controller_ng/issues/2872
- https://github.com/cloudfoundry/cloud_controller_ng/pull/2880