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

(s/antelope) Change skipVersion decorator to a function #1043

Open
wants to merge 1 commit into
base: stable/antelope
Choose a base branch
from

Conversation

ajkavanagh
Copy link
Collaborator

The skipVersion decorator was proving to be tricky to use because it took an application name which we didn't want to hard-code, since it is in hacluster/tests.py. One alternative was to pass a charm name instead of application name, but if there were mutiple hacluster applications in the model (e.g. keystone-hacluster and nova-hacluster) we would have to pick just one to test the package version on. After further discussion we decided to change the decorator to a function so that we could use existing class variables to generate the desired hacluster application name.

cherry-pick 95fcad2 From PR#1037

@coreycb
Copy link

coreycb commented Sep 15, 2023

Alex, is this still needed?

@coreycb coreycb added the stale Review is stale; needs action from contributor; may be deleted in the near future. label Sep 15, 2023
The skipVersion decorator was proving to be tricky to use because
it took an application name which we didn't want to hard-code,
since it is in hacluster/tests.py. One alternative was to pass a
charm name instead of application name, but if there were mutiple
hacluster applications in the model (e.g. keystone-hacluster and
nova-hacluster) we would have to pick just one to test the package
version on. After further discussion we decided to change the
decorator to a function so that we could use existing class
variables to generate the desired hacluster application name.

cherry-pick 95fcad2
From PR#1037
@ajkavanagh ajkavanagh force-pushed the update-skip-version-antelope branch from 8507622 to 29ef68f Compare September 26, 2023 18:18
@ajkavanagh ajkavanagh removed the stale Review is stale; needs action from contributor; may be deleted in the near future. label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants