Skip to content

oracle: add IMDSv2 functional test resources - #20

Merged
ader1990 merged 1 commit into
cloudbase:masterfrom
chl117:oracle_service_imdsv2_tests
Jul 28, 2026
Merged

oracle: add IMDSv2 functional test resources#20
ader1990 merged 1 commit into
cloudbase:masterfrom
chl117:oracle_service_imdsv2_tests

Conversation

@chl117

@chl117 chl117 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Add an OCI metadata fixture and a local HTTP server that enforces the
IMDSv2 Authorization: Bearer Oracle header.

Add functional coverage proving that unauthorized requests are rejected
and that Cloudbase-Init retrieves, decodes, and executes OCI user data.

Document how to run the Oracle functional tests.

Related implementation: cloudbase/cloudbase-init#205

Testing

Validated on a GitHub-hosted Windows runner with Python 3.14 and x64:

  • 4 precondition tests passed
  • OracleCloudService loaded successfully
  • Cloudbase-Init processed the OCI user data
  • 2 postcondition tests passed

Test run: https://github.com/chl117/cloudbase-init/actions/runs/30313268887

DCO sign-off on the commit.

Add an OCI metadata fixture and a local HTTP server that enforces the
IMDSv2 Authorization: Bearer Oracle header.

Add functional coverage proving that unauthorized requests are rejected
and that Cloudbase-Init retrieves, decodes, and executes OCI user data.

Document how to run the Oracle functional tests.

AI-assisted contribution: I reviewed the change and submit it under the
DCO terms at
https://github.com/cloudbase/cloudbase-init/blob/master/DCO#L16
(clause (a) — the contribution is mine).

Signed-off-by: Lucas Quinney <lucas.quinney@oracle.com>
@ader1990

Copy link
Copy Markdown
Member

PR validated by cloudbase/cloudbase-init#208.

@ader1990
ader1990 merged commit 53c1dd7 into cloudbase:master Jul 28, 2026
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