-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore(e2etests): #1898
chore(e2etests): #1898
Conversation
📝 WalkthroughWalkthroughThis pull request introduces a conditional constant Changes
Possibly related PRs
Suggested reviewers
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
tests/k6/common/config.js (2)
69-69
: Document the significance of the yt01-specific organization number.The organization number "713431400" appears to be specific to the yt01 environment. Consider adding a comment explaining its significance or defining it as a named constant for better maintainability.
+// Organization number for yt01 environment +const YT01_SERVICE_OWNER_ORG_NO = "713431400"; export const activityActorId = __ENV.API_ENVIRONMENT == "yt01" ? - "713431400" : + YT01_SERVICE_OWNER_ORG_NO : "991825827";
69-69
: Consider reusing defaultServiceOwnerOrgNo constant.For non-yt01 environments, consider reusing the
defaultServiceOwnerOrgNo
constant instead of duplicating the value "991825827".-export const activityActorId = __ENV.API_ENVIRONMENT == "yt01" ? "713431400" : "991825827"; +export const activityActorId = __ENV.API_ENVIRONMENT == "yt01" ? "713431400" : defaultServiceOwnerOrgNo;
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
tests/k6/common/config.js
(1 hunks)tests/k6/tests/performancetest_data/01-create-dialog.js
(1 hunks)tests/k6/tests/serviceowner/testdata/01-create-dialog.js
(2 hunks)
🔇 Additional comments (2)
tests/k6/tests/serviceowner/testdata/01-create-dialog.js (1)
2-2
: LGTM! Good use of environment-specific configuration.The changes correctly implement environment-specific actor IDs by:
- Importing the new
activityActorId
constant- Using it to dynamically construct the URN for the activity performer
Also applies to: 304-304
tests/k6/tests/performancetest_data/01-create-dialog.js (1)
4-14
: LGTM! Good simplification of the cleanup function.The function has been simplified while maintaining:
- Input validation
- Sentinel tag addition for test cleanup
- Immutable payload handling
The orgNumbers in yt01 are 'scrambled', meaning we for some cases can't use same orgNumbers in yt01 as in other environments
Related Issue(s)
Verification
Documentation
docs
-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)