Skip to content
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

[DPE-2844] New interface indico test and new legacy extensions test #324

Merged
merged 4 commits into from
Nov 21, 2023

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Nov 16, 2023

Issue

  • Indico charm was ported to the new interface
  • No tests left checking for legacy interface extension behaviour

Solution

  • Split the old indico test into one checking legacy relations and one testing that indico deploys with the new interface

Comment on lines -40 to -41
APPLICATION_NAME = "postgresql-test-app"
METADATA = yaml.safe_load(Path("./metadata.yaml").read_text())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have those in the root helpers module

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no special behaviour for extensions in the new interface, so just deploying indico and waiting to idle.

Comment on lines -118 to -123
- name: Select test secret usage
id: select-test-secrets
if: ${{ github.event.pull_request.head.repo.full_name != 'canonical/postgresql-k8s-operator' }}
run: |
echo Skipping tests using secrets
echo "mark_secrets=and not uses_secrets" >> "$GITHUB_OUTPUT"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New dpw would skip automatically so we no longer need this logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test app has a legacy interface with extensions for PGB tests, so using that to replace indico.

@dragomirp dragomirp marked this pull request as ready for review November 17, 2023 13:15
Copy link
Member

@marceloneppel marceloneppel left a comment

Choose a reason for hiding this comment

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

LGTM! Nice split of tests.

tests/integration/new_relations/test_new_relations.py Outdated Show resolved Hide resolved
tests/integration/test_db.py Outdated Show resolved Hide resolved
@dragomirp dragomirp merged commit 73f7ccb into main Nov 21, 2023
35 checks passed
@dragomirp dragomirp deleted the dpe-2844-indico branch November 21, 2023 10:58
marceloneppel pushed a commit that referenced this pull request Nov 22, 2023
…324)

* New legacy extension test

* Indico test

* Remove not failing on blocks

* Use version not hash

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
marceloneppel pushed a commit that referenced this pull request Nov 22, 2023
…324)

* New legacy extension test

* Indico test

* Remove not failing on blocks

* Use version not hash

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
BON4 pushed a commit to BON4/postgresql-k8s-operator that referenced this pull request May 20, 2024
…anonical#324)

* New legacy extension test

* Indico test

* Remove not failing on blocks

* Use version not hash
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.

3 participants