Skip to content

Update integration tests#198

Merged
swetha1654 merged 47 commits intomainfrom
ISD-3652-integration-test
Feb 19, 2026
Merged

Update integration tests#198
swetha1654 merged 47 commits intomainfrom
ISD-3652-integration-test

Conversation

@swetha1654
Copy link
Copy Markdown
Contributor

@swetha1654 swetha1654 commented Feb 17, 2026

Applicable spec:

Overview

This PR updates integration tests that were intentionally not done in #185.

Rationale

In #185, I updated the self-hosted runner to stop using aproxy through the pre-run-script. While test_charm passed, test_upgrade failed before the upgrade step. The failure occurred because the test attempted to install an older version of the image builder, and that earlier charm revision did not support passing proxy values to the workload. As a result, the install hook failed.

Fixing the integration tests within the same PR would have required significant additional work and did not align with the intended scope. The upgrade scenario exercised there is not a valid use case in ps7, as we currently do not have a working image builder in that environment.

Therefore, this follow-up PR introduces the integration tests after ensuring that the previous image builder revision includes built-in proxy support in the charm. This allows the upgrade path to function correctly and keeps the changes scoped and reviewable.

Juju Events Changes

Module Changes

Library Changes

Checklist

swetha1654 and others added 30 commits January 20, 2026 12:08
* chore(deps): update dependency openstacksdk to v4.9.0

* lint

* fix bandit warnings

* lint app

* fix bandit in app

* fix(tests): revert integration test secrets to hardcoded values with nosec

The integration test commands.py greps for specific strings (SHOULD_EXIST,
SHOULD_NOT_EXIST) to verify secret handling. Random tokens broke these checks.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(build): resolve PyYAML/Cython source build failure

Pin wheel>=0.45 to fix incompatibility with setuptools 80.x in
charmcraft's isolated build environments. Add build packages
(cython3, libyaml-dev, python3-dev) needed for PyYAML source
compilation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christopher Bartz <christopher.bartz@canonical.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Christopher Bartz <christopher.bartz@canonical.com>
Co-authored-by: Christopher Bartz <christopher.bartz@canonical.com>
@swetha1654 swetha1654 marked this pull request as ready for review February 17, 2026 11:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the integration-test setup to support the proxy-related upgrade path that failed after #185, by moving test-charm packing and additional host/network preparation into the CI workflow pre-run phase.

Changes:

  • Add a CI pre-run script to pack the integration test charm and adjust nftables/aproxy handling.
  • Update integration test fixtures to apply additional model proxy configuration and stop building the test charm in-Python.
  • Add a changelog entry for the integration test update.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
tests/integration/pre_run_script.sh New pre-run script to pack the test charm and insert an nftables rule.
tests/integration/conftest.py Adjust model proxy config and remove the in-test charmcraft packing step.
docs/changelog.md Record the integration test update in the changelog.
.github/workflows/integration_test.yaml Wire the new pre-run script into the reusable integration-test workflow inputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@cbartz cbartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY

Copy link
Copy Markdown
Collaborator

@cbartz cbartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One minor comment.

Copy link
Copy Markdown
Collaborator

@javierdelapuente javierdelapuente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me after tackling the current comments.

@swetha1654 swetha1654 enabled auto-merge (squash) February 18, 2026 13:04
@swetha1654 swetha1654 merged commit e68f1ff into main Feb 19, 2026
55 of 59 checks passed
@swetha1654 swetha1654 deleted the ISD-3652-integration-test branch February 19, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants