FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adapt the client and the integration tests to the KinD based CAPI by ZPascal · Pull Request #1383 · cloudfoundry/cf-java-client · GitHub

Repository navigation

Adapt the client and the integration tests to the KinD based CAPI - #1383

Draft
ZPascal wants to merge 16 commits into
cloudfoundry:5.x.xfrom
ZPascal:integration-test-adaptions
Draft

ZPascal wants to merge 16 commits into
cloudfoundry:5.x.xfrom
ZPascal:integration-test-adaptions

Conversation

ZPascal commented Oct 7, 2026 •
edited
Loading

Copy link
Copy Markdown

Makes the integration tests pass against a current CAPI deployed on KinD. This is the Java part of #1381 (the GitHub workflow stays there); please merge this PR first, the workflow's test run depends on these fixes.

Client

  • Send the resources field with every bits upload (v3 packages), and also as query parameter for v2 uploads without matched resources. CAPI otherwise rejects them (CF-AppBitsUploadInvalid / missing :resources).
  • Ask for text/html in the UAA browser authorization flows. UAA answers with a 403 instead of redirecting to the login page otherwise.
  • Add Stack state and state reason and the CA certificates of the LDAP and SAML identity provider configurations.

Integration tests

  • Reserve the TCP ports handed out by the NameFactory on the default-tcp router group at startup, so the TCP route tests don't depend on the test order or the deployment's default port range.
  • Skip the log-cache metric tests when TEST_SKIP_METRIC_REGISTRAR is set (kind-deployment has no metric registrar), documented in the README, and use a pullable Docker test image.
  • Don't assert the internal host name of the default domain.

Depends on #1371

The integration tests run against a current CAPI, which needs the changes of #1371 (SUPPORTED_API_VERSION bump and Space.suspended). #1371 was merged into 5.x.x; this PR targets main and does not contain it. Until it is on main, InfoTest (the server version must not exceed SUPPORTED_API_VERSION) and the space tests fail against such a CAPI.

Testing

Unit tests of cloudfoundry-client, cloudfoundry-client-reactor and cloudfoundry-operations pass (JDK 11), as does spotless:check. New assertions cover the Accept header, the upload with and without async, and Stack.state/state_reason. The integration tests run in #1381.

🤖 Generated with Claude Code

Kehrlann and others added 15 commits December 12, 2025 18:35
…udfoundryClient>

Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>
Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>
* Feature: handle rate limiting of UAA server. Fixes cloudfoundry#1307

Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>
* Implement the User Version 3 API along with Unit Test

Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>
* Implement apply organization quota
* Implement apply and remove space quota

Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>
- Fixes cloudfoundrygh-1335
- Cherry-picked from 5.x.x branch (6c81106)

Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>
* Remove deprecated Doppler recentLogs and LogsRequest for 6.x

Remove DopplerClient.recentLogs(), RecentLogsRequest,
Applications.logs(LogsRequest), and LogsRequest — all deprecated
in 5.x (cloudfoundry#1348). Inline the Doppler streaming path directly into
logs(ApplicationLogsRequest). Update README with breaking changes.
ZPascal marked this pull request as draft October 7, 2026 20:25
ZPascal force-pushed the integration-test-adaptions branch 2 times, most recently from 808dbba to 3b9b621 Compare October 8, 2026 05:09
Make the integration tests pass against a current CAPI deployed on KinD.

Client:
- Send the "resources" field with every bits upload (v3 packages) and
  also as query parameter for v2 uploads without matched resources, as
  CAPI otherwise rejects them (CF-AppBitsUploadInvalid / missing
  :resources).
- Ask for text/html in the UAA browser authorization flows, otherwise
  UAA answers with a 403 instead of redirecting to the login page.
- Add Stack state and state reason and the CA certificates of the LDAP
  and SAML identity provider configurations.

Integration tests:
- Reserve the TCP ports handed out by the NameFactory on the default-tcp
  router group at startup, so the TCP route tests don't depend on the
  test order or the deployment's default range.
- Skip the log-cache metric tests when TEST_SKIP_METRIC_REGISTRAR is set
  (kind-deployment has no metric registrar) and use a pullable Docker
  test image.
- Don't assert the internal host name of the default domain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ZPascal force-pushed the integration-test-adaptions branch from 3b9b621 to 483635d Compare October 8, 2026 05:46
ZPascal changed the base branch from main to 5.x.x October 8, 2026 05:59

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL