-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Integration test] Allows for clouds(...)
marker and --no-deploy
handling
#237
Conversation
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 checked 138 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1 | 67 | 70 | 0 |
Click to see the invalid file list
- charms/worker/build-snap-installation.sh
- charms/worker/charmcraft.yaml
- charms/worker/k8s/build-snap-installation.sh
- charms/worker/k8s/charmcraft.yaml
- charms/worker/k8s/scripts/rules-patches/core-alert-rules.patch
- charms/worker/k8s/scripts/update_alert_rules.py
- charms/worker/k8s/scripts/update_dashboards.py
- charms/worker/k8s/src/charm.py
- charms/worker/k8s/src/cloud_integration.py
- charms/worker/k8s/src/config/extra_args.py
- charms/worker/k8s/src/containerd.py
- charms/worker/k8s/src/cos_integration.py
- charms/worker/k8s/src/events/update_status.py
- charms/worker/k8s/src/inspector.py
- charms/worker/k8s/src/kube_control.py
- charms/worker/k8s/src/literals.py
- charms/worker/k8s/src/prometheus_alert_rules/kubePrometheus-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubeStateMetrics-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubernetesControlPlane-prometheusRule.yaml
- charms/worker/k8s/src/protocols.py
- charms/worker/k8s/src/reschedule.py
- charms/worker/k8s/src/snap.py
- charms/worker/k8s/src/token_distributor.py
- charms/worker/k8s/src/upgrade.py
- charms/worker/k8s/templates/cos_roles.yaml
- charms/worker/k8s/templates/ksm.yaml
- charms/worker/k8s/templates/snap_installation.yaml
- charms/worker/k8s/terraform/main.tf
- charms/worker/k8s/terraform/outputs.tf
- charms/worker/k8s/terraform/variables.tf
- charms/worker/k8s/terraform/versions.tf
- charms/worker/k8s/tests/unit/test_base.py
- charms/worker/k8s/tests/unit/test_cloud_integration.py
- charms/worker/k8s/tests/unit/test_config_options.py
- charms/worker/k8s/tests/unit/test_containerd.py
- charms/worker/k8s/tests/unit/test_inspector.py
- charms/worker/k8s/tests/unit/test_k8sd_api_manager.py
- charms/worker/k8s/tests/unit/test_reschedule.py
- charms/worker/k8s/tests/unit/test_snap.py
- charms/worker/k8s/tests/unit/test_token_distributor.py
- charms/worker/k8s/tests/unit/test_upgrade.py
- charms/worker/terraform/main.tf
- charms/worker/terraform/outputs.tf
- charms/worker/terraform/variables.tf
- charms/worker/terraform/versions.tf
- generate-src-docs.sh
- tests/integration/init.py
- tests/integration/conftest.py
- tests/integration/cos_substrate.py
- tests/integration/data/cos-offers-overlay.yaml
- tests/integration/data/k8s.profile
- tests/integration/data/microk8s.profile
- tests/integration/data/static-proxy-config.yaml
- tests/integration/data/test-bundle-ceph.yaml
- tests/integration/data/test-bundle-etcd.yaml
- tests/integration/data/test-bundle.yaml
- tests/integration/data/test_ceph/ceph-xfs-pvc.yaml
- tests/integration/data/test_ceph/pv-reader-pod.yaml
- tests/integration/data/test_ceph/pv-writer-pod.yaml
- tests/integration/grafana.py
- tests/integration/helpers.py
- tests/integration/prometheus.py
- tests/integration/test_ceph.py
- tests/integration/test_etcd.py
- tests/integration/test_k8s.py
- tests/integration/test_openstack.py
- tests/integration/test_upgrade.py
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
24fa49f
to
6f1d4da
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 checked 138 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
2 | 66 | 70 | 0 |
Click to see the invalid file list
- charms/worker/build-snap-installation.sh
- charms/worker/charmcraft.yaml
- charms/worker/k8s/build-snap-installation.sh
- charms/worker/k8s/charmcraft.yaml
- charms/worker/k8s/scripts/rules-patches/core-alert-rules.patch
- charms/worker/k8s/scripts/update_alert_rules.py
- charms/worker/k8s/scripts/update_dashboards.py
- charms/worker/k8s/src/charm.py
- charms/worker/k8s/src/cloud_integration.py
- charms/worker/k8s/src/config/extra_args.py
- charms/worker/k8s/src/containerd.py
- charms/worker/k8s/src/cos_integration.py
- charms/worker/k8s/src/events/update_status.py
- charms/worker/k8s/src/inspector.py
- charms/worker/k8s/src/kube_control.py
- charms/worker/k8s/src/literals.py
- charms/worker/k8s/src/prometheus_alert_rules/kubePrometheus-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubeStateMetrics-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubernetesControlPlane-prometheusRule.yaml
- charms/worker/k8s/src/protocols.py
- charms/worker/k8s/src/reschedule.py
- charms/worker/k8s/src/snap.py
- charms/worker/k8s/src/token_distributor.py
- charms/worker/k8s/src/upgrade.py
- charms/worker/k8s/templates/cos_roles.yaml
- charms/worker/k8s/templates/ksm.yaml
- charms/worker/k8s/templates/snap_installation.yaml
- charms/worker/k8s/terraform/main.tf
- charms/worker/k8s/terraform/outputs.tf
- charms/worker/k8s/terraform/variables.tf
- charms/worker/k8s/terraform/versions.tf
- charms/worker/k8s/tests/unit/test_base.py
- charms/worker/k8s/tests/unit/test_cloud_integration.py
- charms/worker/k8s/tests/unit/test_config_options.py
- charms/worker/k8s/tests/unit/test_containerd.py
- charms/worker/k8s/tests/unit/test_inspector.py
- charms/worker/k8s/tests/unit/test_k8sd_api_manager.py
- charms/worker/k8s/tests/unit/test_reschedule.py
- charms/worker/k8s/tests/unit/test_snap.py
- charms/worker/k8s/tests/unit/test_token_distributor.py
- charms/worker/k8s/tests/unit/test_upgrade.py
- charms/worker/terraform/main.tf
- charms/worker/terraform/outputs.tf
- charms/worker/terraform/variables.tf
- charms/worker/terraform/versions.tf
- generate-src-docs.sh
- tests/integration/init.py
- tests/integration/conftest.py
- tests/integration/cos_substrate.py
- tests/integration/data/cos-offers-overlay.yaml
- tests/integration/data/k8s.profile
- tests/integration/data/microk8s.profile
- tests/integration/data/static-proxy-config.yaml
- tests/integration/data/test-bundle-ceph.yaml
- tests/integration/data/test-bundle-etcd.yaml
- tests/integration/data/test-bundle.yaml
- tests/integration/data/test_ceph/ceph-xfs-pvc.yaml
- tests/integration/data/test_ceph/pv-reader-pod.yaml
- tests/integration/data/test_ceph/pv-writer-pod.yaml
- tests/integration/grafana.py
- tests/integration/helpers.py
- tests/integration/prometheus.py
- tests/integration/test_ceph.py
- tests/integration/test_etcd.py
- tests/integration/test_k8s.py
- tests/integration/test_upgrade.py
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
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 checked 138 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
2 | 66 | 70 | 0 |
Click to see the invalid file list
- charms/worker/build-snap-installation.sh
- charms/worker/charmcraft.yaml
- charms/worker/k8s/build-snap-installation.sh
- charms/worker/k8s/charmcraft.yaml
- charms/worker/k8s/scripts/rules-patches/core-alert-rules.patch
- charms/worker/k8s/scripts/update_alert_rules.py
- charms/worker/k8s/scripts/update_dashboards.py
- charms/worker/k8s/src/charm.py
- charms/worker/k8s/src/cloud_integration.py
- charms/worker/k8s/src/config/extra_args.py
- charms/worker/k8s/src/containerd.py
- charms/worker/k8s/src/cos_integration.py
- charms/worker/k8s/src/events/update_status.py
- charms/worker/k8s/src/inspector.py
- charms/worker/k8s/src/kube_control.py
- charms/worker/k8s/src/literals.py
- charms/worker/k8s/src/prometheus_alert_rules/kubePrometheus-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubeStateMetrics-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubernetesControlPlane-prometheusRule.yaml
- charms/worker/k8s/src/protocols.py
- charms/worker/k8s/src/reschedule.py
- charms/worker/k8s/src/snap.py
- charms/worker/k8s/src/token_distributor.py
- charms/worker/k8s/src/upgrade.py
- charms/worker/k8s/templates/cos_roles.yaml
- charms/worker/k8s/templates/ksm.yaml
- charms/worker/k8s/templates/snap_installation.yaml
- charms/worker/k8s/terraform/main.tf
- charms/worker/k8s/terraform/outputs.tf
- charms/worker/k8s/terraform/variables.tf
- charms/worker/k8s/terraform/versions.tf
- charms/worker/k8s/tests/unit/test_base.py
- charms/worker/k8s/tests/unit/test_cloud_integration.py
- charms/worker/k8s/tests/unit/test_config_options.py
- charms/worker/k8s/tests/unit/test_containerd.py
- charms/worker/k8s/tests/unit/test_inspector.py
- charms/worker/k8s/tests/unit/test_k8sd_api_manager.py
- charms/worker/k8s/tests/unit/test_reschedule.py
- charms/worker/k8s/tests/unit/test_snap.py
- charms/worker/k8s/tests/unit/test_token_distributor.py
- charms/worker/k8s/tests/unit/test_upgrade.py
- charms/worker/terraform/main.tf
- charms/worker/terraform/outputs.tf
- charms/worker/terraform/variables.tf
- charms/worker/terraform/versions.tf
- generate-src-docs.sh
- tests/integration/init.py
- tests/integration/conftest.py
- tests/integration/cos_substrate.py
- tests/integration/data/cos-offers-overlay.yaml
- tests/integration/data/k8s.profile
- tests/integration/data/microk8s.profile
- tests/integration/data/static-proxy-config.yaml
- tests/integration/data/test-bundle-ceph.yaml
- tests/integration/data/test-bundle-etcd.yaml
- tests/integration/data/test-bundle.yaml
- tests/integration/data/test_ceph/ceph-xfs-pvc.yaml
- tests/integration/data/test_ceph/pv-reader-pod.yaml
- tests/integration/data/test_ceph/pv-writer-pod.yaml
- tests/integration/grafana.py
- tests/integration/helpers.py
- tests/integration/prometheus.py
- tests/integration/test_ceph.py
- tests/integration/test_etcd.py
- tests/integration/test_k8s.py
- tests/integration/test_upgrade.py
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
6f1d4da
to
c33473f
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 checked 138 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
2 | 66 | 70 | 0 |
Click to see the invalid file list
- charms/worker/build-snap-installation.sh
- charms/worker/charmcraft.yaml
- charms/worker/k8s/build-snap-installation.sh
- charms/worker/k8s/charmcraft.yaml
- charms/worker/k8s/scripts/rules-patches/core-alert-rules.patch
- charms/worker/k8s/scripts/update_alert_rules.py
- charms/worker/k8s/scripts/update_dashboards.py
- charms/worker/k8s/src/charm.py
- charms/worker/k8s/src/cloud_integration.py
- charms/worker/k8s/src/config/extra_args.py
- charms/worker/k8s/src/containerd.py
- charms/worker/k8s/src/cos_integration.py
- charms/worker/k8s/src/events/update_status.py
- charms/worker/k8s/src/inspector.py
- charms/worker/k8s/src/kube_control.py
- charms/worker/k8s/src/literals.py
- charms/worker/k8s/src/prometheus_alert_rules/kubePrometheus-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubeStateMetrics-prometheusRule.yaml
- charms/worker/k8s/src/prometheus_alert_rules/kubernetesControlPlane-prometheusRule.yaml
- charms/worker/k8s/src/protocols.py
- charms/worker/k8s/src/reschedule.py
- charms/worker/k8s/src/snap.py
- charms/worker/k8s/src/token_distributor.py
- charms/worker/k8s/src/upgrade.py
- charms/worker/k8s/templates/cos_roles.yaml
- charms/worker/k8s/templates/ksm.yaml
- charms/worker/k8s/templates/snap_installation.yaml
- charms/worker/k8s/terraform/main.tf
- charms/worker/k8s/terraform/outputs.tf
- charms/worker/k8s/terraform/variables.tf
- charms/worker/k8s/terraform/versions.tf
- charms/worker/k8s/tests/unit/test_base.py
- charms/worker/k8s/tests/unit/test_cloud_integration.py
- charms/worker/k8s/tests/unit/test_config_options.py
- charms/worker/k8s/tests/unit/test_containerd.py
- charms/worker/k8s/tests/unit/test_inspector.py
- charms/worker/k8s/tests/unit/test_k8sd_api_manager.py
- charms/worker/k8s/tests/unit/test_reschedule.py
- charms/worker/k8s/tests/unit/test_snap.py
- charms/worker/k8s/tests/unit/test_token_distributor.py
- charms/worker/k8s/tests/unit/test_upgrade.py
- charms/worker/terraform/main.tf
- charms/worker/terraform/outputs.tf
- charms/worker/terraform/variables.tf
- charms/worker/terraform/versions.tf
- generate-src-docs.sh
- tests/integration/init.py
- tests/integration/conftest.py
- tests/integration/cos_substrate.py
- tests/integration/data/cos-offers-overlay.yaml
- tests/integration/data/k8s.profile
- tests/integration/data/microk8s.profile
- tests/integration/data/static-proxy-config.yaml
- tests/integration/data/test-bundle-ceph.yaml
- tests/integration/data/test-bundle-etcd.yaml
- tests/integration/data/test-bundle.yaml
- tests/integration/data/test_ceph/ceph-xfs-pvc.yaml
- tests/integration/data/test_ceph/pv-reader-pod.yaml
- tests/integration/data/test_ceph/pv-writer-pod.yaml
- tests/integration/grafana.py
- tests/integration/helpers.py
- tests/integration/prometheus.py
- tests/integration/test_ceph.py
- tests/integration/test_etcd.py
- tests/integration/test_k8s.py
- tests/integration/test_upgrade.py
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
acb52b3
to
3e1cfb2
Compare
29d933d
to
abe3b91
Compare
Test coverage for abe3b91
Static code analysis report
|
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, I probably would have used test tags to mark tests for specific clouds but this also works.
Great work @addyess
Overview
Facilitates running most of the tests on existing models that are already deployed handling situations where specific tests or entire tests modules can be executed. Some tests will be excluded if they match the wrong cloud or require changing the existing model.
clouds(...)
in order to skip tests unless they are on a certain cloud--no-deploy
flag is provided and the tests would deploy new applications/units into the modelDetails
no-deploy
pytest variable frompytest-operator
to skip deployment of applications into the main kubernetes model in the event this is a model intended to be reusedclouds
marker.abort_on_fail
marker with a simplerexitfirst
argument to pytest.