-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from canonical/DPE-2980_credentials_rotation
[DPE-2980] credentials rotation
- Loading branch information
Showing
80 changed files
with
26,032 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ jobs: | |
matrix: | ||
path: | ||
- . | ||
- ./tests/integration/opensearch-operator | ||
name: Build charm | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
|
@@ -76,7 +77,6 @@ jobs: | |
integration-test: | ||
name: Integration test charm | ||
needs: | ||
- lint | ||
- unit-test | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[report] | ||
exclude_lines = | ||
# Skip any pass lines such as may be used for @abstractmethod | ||
pass | ||
|
||
# Ignore abstract methods | ||
@abstractmethod | ||
@abc.abstractmethod | ||
|
||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: |
47 changes: 47 additions & 0 deletions
47
tests/integration/opensearch-operator/.github/ISSUE_TEMPLATE/bug_report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Bug report | ||
about: File a bug report | ||
labels: bug | ||
|
||
--- | ||
|
||
<!-- Thank you for submitting a bug report! All fields are required unless marked optional. --> | ||
|
||
## Steps to reproduce | ||
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) --> | ||
1. | ||
|
||
## Expected behavior | ||
|
||
|
||
## Actual behavior | ||
<!-- If applicable, add screenshots --> | ||
|
||
|
||
## Versions | ||
|
||
<!-- Run `lsb_release -sd` --> | ||
Operating system: | ||
|
||
<!-- Run `juju version` --> | ||
Juju CLI: | ||
|
||
<!-- Model version from `juju status` --> | ||
Juju agent: | ||
|
||
<!-- App revision from `juju status` or (advanced) commit hash --> | ||
Charm revision: | ||
|
||
<!-- Run `lxd version` --> | ||
LXD: | ||
|
||
## Log output | ||
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) --> | ||
<!-- Then, run `juju debug-log --replay > log.txt` and upload "log.txt" file here --> | ||
Juju debug log: | ||
|
||
<!-- (Optional) Copy the logs that are relevant to the bug & paste inside triple backticks below --> | ||
|
||
|
||
## Additional context | ||
<!-- (Optional) Add any additional information here --> |
4 changes: 4 additions & 0 deletions
4
tests/integration/opensearch-operator/.github/pull_request_template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Issue | ||
|
||
|
||
## Solution |
88 changes: 88 additions & 0 deletions
88
tests/integration/opensearch-operator/.github/workflows/ci.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Copyright 2022 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Tests | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: '53 0 * * *' # Daily at 00:53 UTC | ||
# Triggered on push to branch "main" by .github/workflows/release.yaml | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
|
||
unit-test: | ||
name: Unit test charm | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install tox & poetry | ||
run: | | ||
pipx install tox | ||
pipx install poetry | ||
- name: Run tests | ||
run: tox run -e unit | ||
|
||
|
||
lib-check: | ||
name: Check libraries | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: | | ||
# Workaround for https://github.com/canonical/charmcraft/issues/1389#issuecomment-1880921728 | ||
touch requirements.txt | ||
- name: Check libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: ${{ secrets.CHARMHUB_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
use-labels: false | ||
fail-build: ${{ github.event_name == 'pull_request' }} | ||
|
||
build: | ||
name: Build charm | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
path: | ||
- . | ||
- ./tests/integration/relations/opensearch_provider/application-charm/ | ||
- ./tests/integration/relations/opensearch_provider/opensearch-dashboards-operator/ | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
path-to-charm-directory: ${{ matrix.path }} | ||
cache: true | ||
|
||
integration-test: | ||
name: Integration test charm | ||
needs: | ||
- unit-test | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
artifact-prefix: packed-charm-cache-true | ||
cloud: lxd | ||
juju-snap-channel: 3.3/stable | ||
secrets: | ||
integration-test: | | ||
{ | ||
"AWS_ACCESS_KEY": "${{ secrets.AWS_ACCESS_KEY }}", | ||
"AWS_SECRET_KEY": "${{ secrets.AWS_SECRET_KEY }}", | ||
"GCP_ACCESS_KEY": "${{ secrets.GCP_ACCESS_KEY }}", | ||
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}", | ||
"GCP_SERVICE_ACCOUNT": "${{ secrets.GCP_SERVICE_ACCOUNT }}", | ||
} |
48 changes: 48 additions & 0 deletions
48
tests/integration/opensearch-operator/.github/workflows/release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Release to latest/edge | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ci-tests: | ||
name: Tests | ||
uses: ./.github/workflows/ci.yaml | ||
secrets: inherit | ||
|
||
# release-libraries: | ||
# name: Release libraries | ||
# needs: | ||
# - ci-tests | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 60 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - name: Release charm libraries | ||
# uses: canonical/charming-actions/[email protected] | ||
# with: | ||
# credentials: ${{ secrets.CHARMHUB_TOKEN }} | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build: | ||
name: Build charm | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
|
||
release: | ||
name: Release charm | ||
needs: | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
channel: 2/edge | ||
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | ||
secrets: | ||
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | ||
permissions: | ||
contents: write # Needed to create GitHub release |
21 changes: 21 additions & 0 deletions
21
tests/integration/opensearch-operator/.github/workflows/sync_issue_to_jira.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Sync issue to Jira | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, closed] | ||
|
||
jobs: | ||
sync: | ||
name: Sync GitHub issue to Jira | ||
uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v2 | ||
with: | ||
jira-base-url: https://warthogs.atlassian.net | ||
jira-project-key: DPE | ||
jira-component-names: opensearch-vm | ||
secrets: | ||
jira-api-token: ${{ secrets.JIRA_API_TOKEN }} | ||
jira-user-email: ${{ secrets.JIRA_USER_EMAIL }} | ||
permissions: | ||
issues: write # Needed to create GitHub issue comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
venv/ | ||
build/ | ||
*.charm | ||
.tox/ | ||
.coverage | ||
__pycache__/ | ||
*.py[cod] | ||
.idea | ||
.vscode | ||
|
||
*.tar.gz | ||
*.tar.xz | ||
cloudinit-userdata.yaml | ||
/.pytest_cache/ | ||
|
||
# Moving to Poetry, we do not need this file to be pushed any longer | ||
/requirements.txt | ||
/requirements-last-build.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/venv | ||
*.py[cod] | ||
*.charm |
Oops, something went wrong.