-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add integration test with external network disabled and aproxy setup #175
Conversation
3491c84
to
cee9052
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 133 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
0 | 57 | 76 | 0 |
Click to see the invalid file list
- actions.yaml
- charmcraft.yaml
- config.yaml
- generate-src-docs.sh
- lib/charms/grafana_agent/v0/cos_agent.py
- metadata.yaml
- pyproject.toml
- scripts/build-image.sh
- scripts/pre-integration-test.sh
- scripts/repo_policy_compliance_service.py
- src/charm.py
- src/charm_state.py
- src/errors.py
- src/event_timer.py
- src/firewall.py
- src/github_client.py
- src/github_metrics.py
- src/github_type.py
- src/lxd.py
- src/lxd_type.py
- src/metrics.py
- src/repo_policy_compliance_client.py
- src/runner.py
- src/runner_logs.py
- src/runner_manager.py
- src/runner_manager_type.py
- src/runner_metrics.py
- src/runner_type.py
- src/shared_fs.py
- src/utilities.py
- tests/init.py
- tests/conftest.py
- tests/integration/conftest.py
- tests/integration/helpers.py
- tests/integration/test_charm_fork_repo.py
- tests/integration/test_charm_metrics.py
- tests/integration/test_charm_no_runner.py
- tests/integration/test_charm_one_runner.py
- tests/integration/test_charm_scheduled_events.py
- tests/integration/test_charm_with_proxy.py
- tests/integration/test_self_hosted_runner.py
- tests/status_name.py
- tests/unit/init.py
- tests/unit/conftest.py
- tests/unit/mock.py
- tests/unit/test_charm.py
- tests/unit/test_charm_state.py
- tests/unit/test_github_client.py
- tests/unit/test_github_metrics.py
- tests/unit/test_metrics.py
- tests/unit/test_runner.py
- tests/unit/test_runner_logs.py
- tests/unit/test_runner_manager.py
- tests/unit/test_runner_metrics.py
- tests/unit/test_shared_fs.py
- tests/unit/test_utilities.py
- tox.ini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 133 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
0 | 57 | 76 | 0 |
Click to see the invalid file list
- actions.yaml
- charmcraft.yaml
- config.yaml
- generate-src-docs.sh
- lib/charms/grafana_agent/v0/cos_agent.py
- metadata.yaml
- pyproject.toml
- scripts/build-image.sh
- scripts/pre-integration-test.sh
- scripts/repo_policy_compliance_service.py
- src/charm.py
- src/charm_state.py
- src/errors.py
- src/event_timer.py
- src/firewall.py
- src/github_client.py
- src/github_metrics.py
- src/github_type.py
- src/lxd.py
- src/lxd_type.py
- src/metrics.py
- src/repo_policy_compliance_client.py
- src/runner.py
- src/runner_logs.py
- src/runner_manager.py
- src/runner_manager_type.py
- src/runner_metrics.py
- src/runner_type.py
- src/shared_fs.py
- src/utilities.py
- tests/init.py
- tests/conftest.py
- tests/integration/conftest.py
- tests/integration/helpers.py
- tests/integration/test_charm_fork_repo.py
- tests/integration/test_charm_metrics.py
- tests/integration/test_charm_no_runner.py
- tests/integration/test_charm_one_runner.py
- tests/integration/test_charm_scheduled_events.py
- tests/integration/test_charm_with_proxy.py
- tests/integration/test_self_hosted_runner.py
- tests/status_name.py
- tests/unit/init.py
- tests/unit/conftest.py
- tests/unit/mock.py
- tests/unit/test_charm.py
- tests/unit/test_charm_state.py
- tests/unit/test_github_client.py
- tests/unit/test_github_metrics.py
- tests/unit/test_metrics.py
- tests/unit/test_runner.py
- tests/unit/test_runner_logs.py
- tests/unit/test_runner_manager.py
- tests/unit/test_runner_metrics.py
- tests/unit/test_shared_fs.py
- tests/unit/test_utilities.py
- tox.ini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 133 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
0 | 57 | 76 | 0 |
Click to see the invalid file list
- actions.yaml
- charmcraft.yaml
- config.yaml
- generate-src-docs.sh
- lib/charms/grafana_agent/v0/cos_agent.py
- metadata.yaml
- pyproject.toml
- scripts/build-image.sh
- scripts/pre-integration-test.sh
- scripts/repo_policy_compliance_service.py
- src/charm.py
- src/charm_state.py
- src/errors.py
- src/event_timer.py
- src/firewall.py
- src/github_client.py
- src/github_metrics.py
- src/github_type.py
- src/lxd.py
- src/lxd_type.py
- src/metrics.py
- src/repo_policy_compliance_client.py
- src/runner.py
- src/runner_logs.py
- src/runner_manager.py
- src/runner_manager_type.py
- src/runner_metrics.py
- src/runner_type.py
- src/shared_fs.py
- src/utilities.py
- tests/init.py
- tests/conftest.py
- tests/integration/conftest.py
- tests/integration/helpers.py
- tests/integration/test_charm_fork_repo.py
- tests/integration/test_charm_metrics.py
- tests/integration/test_charm_no_runner.py
- tests/integration/test_charm_one_runner.py
- tests/integration/test_charm_scheduled_events.py
- tests/integration/test_charm_with_proxy.py
- tests/integration/test_self_hosted_runner.py
- tests/status_name.py
- tests/unit/init.py
- tests/unit/conftest.py
- tests/unit/mock.py
- tests/unit/test_charm.py
- tests/unit/test_charm_state.py
- tests/unit/test_github_client.py
- tests/unit/test_github_metrics.py
- tests/unit/test_metrics.py
- tests/unit/test_runner.py
- tests/unit/test_runner_logs.py
- tests/unit/test_runner_manager.py
- tests/unit/test_runner_metrics.py
- tests/unit/test_shared_fs.py
- tests/unit/test_utilities.py
- tox.ini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has totally checked 133 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
0 | 57 | 76 | 0 |
Click to see the invalid file list
- actions.yaml
- charmcraft.yaml
- config.yaml
- generate-src-docs.sh
- lib/charms/grafana_agent/v0/cos_agent.py
- metadata.yaml
- pyproject.toml
- scripts/build-image.sh
- scripts/pre-integration-test.sh
- scripts/repo_policy_compliance_service.py
- src/charm.py
- src/charm_state.py
- src/errors.py
- src/event_timer.py
- src/firewall.py
- src/github_client.py
- src/github_metrics.py
- src/github_type.py
- src/lxd.py
- src/lxd_type.py
- src/metrics.py
- src/repo_policy_compliance_client.py
- src/runner.py
- src/runner_logs.py
- src/runner_manager.py
- src/runner_manager_type.py
- src/runner_metrics.py
- src/runner_type.py
- src/shared_fs.py
- src/utilities.py
- tests/init.py
- tests/conftest.py
- tests/integration/conftest.py
- tests/integration/helpers.py
- tests/integration/test_charm_fork_repo.py
- tests/integration/test_charm_metrics.py
- tests/integration/test_charm_no_runner.py
- tests/integration/test_charm_one_runner.py
- tests/integration/test_charm_scheduled_events.py
- tests/integration/test_charm_with_proxy.py
- tests/integration/test_self_hosted_runner.py
- tests/status_name.py
- tests/unit/init.py
- tests/unit/conftest.py
- tests/unit/mock.py
- tests/unit/test_charm.py
- tests/unit/test_charm_state.py
- tests/unit/test_github_client.py
- tests/unit/test_github_metrics.py
- tests/unit/test_metrics.py
- tests/unit/test_runner.py
- tests/unit/test_runner_logs.py
- tests/unit/test_runner_manager.py
- tests/unit/test_runner_metrics.py
- tests/unit/test_shared_fs.py
- tests/unit/test_utilities.py
- tox.ini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one nitpicky comment
Co-authored-by: Christopher Bartz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minor questions!
Test coverage for 5e9c51e
Static code analysis report
|
Overview
For setup of a integration test, deploy a juju machine and disable external network access in it, then deploy the charm within the juju machine with aproxy setup.
Use tinyproxy instead of proxy.py.
Rationale
This test whether the charm works in an environment with HTTP proxy.
There were previous bugs related to not all traffic is routed through the proxy.
Tinyproxy is written in C and much faster than proxy.py. Since the deployment (juju, downloading image, installing deps) will be using the proxy, switching the a faster proxy seems to reduce the chance of failure.
Checklist
src-docs
urgent
,trivial
,complex
)