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

Regression testing for keyword replacement #695

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

Ahmed-Ghanam
Copy link
Contributor

Description

Implement regression testing to ensure that keywords in notifications are correctly replaced with the appropriate values.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

}

const subscriptionKey = __ENV.subscriptionKey || null;
if (!subscriptionKey) {
Copy link
Member

Choose a reason for hiding this comment

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

This if assumes that subscription key is provided in all cases. This isn't true. We can keep the if, but would need to update all workflow files as well. Subscription key is currently added only when running the orders_email.js file.

Copy link
Contributor Author

@Ahmed-Ghanam Ahmed-Ghanam Jan 22, 2025

Choose a reason for hiding this comment

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

This conditional statement is removed.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
70 Duplicated Lines on New Code (required ≤ 5)

See analysis details on SonarQube Cloud

-e env=*** `
-e orgNoRecipient=*** `
-e resourceId=*** `
podman compose run k6 run /src/tests/orders_org_no.js \
Copy link
Member

Choose a reason for hiding this comment

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

When it comes to ` vs \ . It depends on what type of console you use. If you use command prompt, powershell or bash. I don't remember which is which. Now that you have changed it maybe write down as a comment which shell the command is made for?

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