Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

add basic test checking deployment status #51

Merged
merged 8 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .abs/main.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
chart-dir: ./helm/linkerd-viz
replace-chart-version-with-git: true
replace-app-version-with-git: false
generate-metadata: true
chart-dir: ./helm/linkerd-viz
destination: ./build
# CI overwrites this, check .circleci/config.yaml
catalog-base-url: https://giantswarm.github.io/giantswarm-catalog/
# until we support custom template helper filenames
disable-giantswarm-helm-validator: true
5 changes: 5 additions & 0 deletions .ats/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
app-tests-skip-app-deploy: true

smoke-tests-cluster-config-file: tests/kind_config.yaml
smoke-tests-cluster-type: kind
skip-steps: [functional, upgrade]
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ workflows:
- architect/push-to-app-catalog:
name: push-to-giantswarm-app-catalog
context: architect
executor: app-build-suite
executor: "app-build-suite"
app_catalog: "giantswarm-catalog"
app_catalog_test: "giantswarm-test-catalog"
chart: "linkerd-viz"
persist_chart_archive: true
filters:
# Trigger the job also on git tag.
tags:
only: /^v.*/

- architect/run-tests-with-ats:
name: execute chart tests
app-test-suite_container_tag: "0.2.3"
filters:
# Do not trigger the job on merge to main.
branches:
ignore:
- main
requires:
- push-to-giantswarm-app-catalog
8 changes: 8 additions & 0 deletions .github/.gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[allowlist]
description = "Allowlisted files"
files = [
'''^cert-default-values.yaml$''',
'''^\.?gitleaks.toml$''',
'''(.*?)(png|jpg|gif|doc|docx|pdf|bin|xls|pyc|zip)$''',
'''(go.mod|go.sum)$'''
]
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
linkerd-viz*.tgz
linkerd-viz*.tgz-meta/
*.kube.config
test_results_*.xml
.pytest_cache
linkerd-cli
__pycache__
**/.idea/
vendor
build
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add basic tests.

### Changed

- Add PSS flag for PSP->PSS migration.
Expand Down
18 changes: 18 additions & 0 deletions tests/ats/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[packages]
pytest-helm-charts = ">=0.7.0"
pytest = ">=6.2.5"
pykube-ng = ">=21.10.0"
pyyaml = "~=6.0"
pytest-rerunfailures = ">=10.2"
requests = "~=2.31.0"

[requires]
python_version = "3.9"

[pipenv]
allow_prereleases = true
357 changes: 357 additions & 0 deletions tests/ats/Pipfile.lock

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions tests/ats/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
identity:
issuer:
crtExpiry: "2121-07-22T19:15:01Z"
tls:
crtPEM: |
-----BEGIN CERTIFICATE-----
MIIBtjCCAVugAwIBAgIRAKihbxILFs3NPt1ML68yD0QwCgYIKoZIzj0EAwIwJTEj
MCEGA1UEAxMacm9vdC5saW5rZXJkLmNsdXN0ZXIubG9jYWwwIBcNMjEwNzIyMTMx
NTAxWhgPMjEyMTA3MjIxOTE1MDFaMCkxJzAlBgNVBAMTHmlkZW50aXR5Lmxpbmtl
cmQuY2x1c3Rlci5sb2NhbDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCqkyBMN
EqSMJKr5uY20w7OpmQLoRGk2XPTfZnRIglXVzjFSwEkjGEgaxo2s7cWNcU0JBJcM
tFVM6sJTz1xw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+P+VLlhJ
-----END CERTIFICATE-----
Loading
Loading