Skip to content

fix: read IBM_CREDENTIALS_FILE from env var so Java integration tests actually run - #16

Merged
Rohit-8541 merged 1 commit into
mainfrom
fix/integration-test-ibm-credentials-env
Aug 14, 2026
Merged

fix: read IBM_CREDENTIALS_FILE from env var so Java integration tests actually run#16
Rohit-8541 merged 1 commit into
mainfrom
fix/integration-test-ibm-credentials-env

Conversation

@Rohit-8541

@Rohit-8541 Rohit-8541 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

SdkIntegrationTestBase.skipTests() was calling System.getProperty("IBM_CREDENTIALS_FILE"),
which reads JVM system properties set via -DKEY=value flags — not shell environment variables.

The pipeline sets IBM_CREDENTIALS_FILE via export, so System.getProperty() always
returned null, skipTests() threw a SkipException, and all three IT methods were silently
skipped on every pipeline run. The Maven verify output showed 29 tests in ~3.6s — those were
all unit tests; no real API call was ever made.

Fix: System.getProperty()System.getenv().

After this, the pipeline will run testCreateVaultAdmintoken → testGetInstance → testDeleteInstanceAdmintokens against the real instance.

@Rohit-8541
Rohit-8541 requested review from IdanAdar and rotembr August 14, 2026 12:00
@Rohit-8541
Rohit-8541 merged commit 96589f1 into main Aug 14, 2026
2 of 3 checks passed
@Rohit-8541
Rohit-8541 deleted the fix/integration-test-ibm-credentials-env branch August 14, 2026 15:13
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.

2 participants