Skip to content

Fix billing tests to pass if default provider id != 2#1021

Merged
mdujava merged 1 commit into
3scale-qe:mainfrom
mdujava:billing_default_customer.id
Jun 23, 2026
Merged

Fix billing tests to pass if default provider id != 2#1021
mdujava merged 1 commit into
3scale-qe:mainfrom
mdujava:billing_default_customer.id

Conversation

@mdujava

@mdujava mdujava commented Mar 23, 2026

Copy link
Copy Markdown
Member

No description provided.

@mdujava
mdujava requested a review from a team as a code owner March 23, 2026 18:48
@mdujava mdujava added the to_backport Commits to be backported to stable branches label Mar 23, 2026
cathal-bailey
cathal-bailey previously approved these changes Mar 25, 2026

@mastastny mastastny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In the test_mail_completed_payment there is subject hardcoded to default tenant with name "Provider Name", so if we use private_tenant, the test fails. I would change it to:
subject=f"{provider_account['org_name']} API - Payment completed"

Also for the private_tenant the normalize_url function doesn't work well and the replacement should be changed from this:("3scale-admin", "3scale") to this: ("-admin.", ".").

@mdujava
mdujava force-pushed the billing_default_customer.id branch 2 times, most recently from d9ad2e4 to 5aecee3 Compare April 23, 2026 08:48
mastastny
mastastny previously approved these changes Apr 23, 2026
@mdujava
mdujava force-pushed the billing_default_customer.id branch 2 times, most recently from 5afbb5d to 162acb1 Compare May 14, 2026 10:27
@mdujava

mdujava commented May 14, 2026

Copy link
Copy Markdown
Member Author

when resolving conflict I wrongly reverted one function R6301: Method could be a function (no-self-use) caught it.

@mdujava
mdujava force-pushed the billing_default_customer.id branch from 162acb1 to cc5a417 Compare May 18, 2026 08:27
@mdujava
mdujava requested a review from dhlavac May 18, 2026 14:37
@mdujava
mdujava force-pushed the billing_default_customer.id branch from cc5a417 to ddd7ce2 Compare June 18, 2026 13:28
@mdujava
mdujava requested a review from cathal-bailey June 22, 2026 15:10
@mdujava
mdujava merged commit 7ee51cc into 3scale-qe:main Jun 23, 2026
1 check passed
@mdujava
mdujava deleted the billing_default_customer.id branch June 23, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

to_backport Commits to be backported to stable branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants