-
Notifications
You must be signed in to change notification settings - Fork 3
Fixed testcase assertions to be env agnostic #184
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
base: development
Are you sure you want to change the base?
Conversation
reeshika-h
commented
Apr 23, 2025
- Refactor assertions in tests to use assertNotNull for improved validation
- Introduced SanityReport class to generate test summaries and send reports to Slack. - Updated logging in CSHttpConnection to use logger instead of printStackTrace. - Modified error handling in Entry class to check for empty error messages. - Updated dependency versions in pom.xml and added new dependencies. - Added test configuration properties to .gitignore. - Created send-report.sh script for running tests and sending reports.
@@ -103,7 +103,7 @@ private void includeLivePreview() { | |||
if (config.enableLivePreview) { | |||
String urlLivePreview = config.livePreviewHost; | |||
if(config.region != null && !config.region.name().isEmpty()){ | |||
if(config.region.name() == "US" ){ | |||
if(config.region.name().equals("US") ){ |
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.
Can u please check if the value US is valid or not? For NA region. The known valid values were NA / AWS-NA
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.
well by default it does take the NA host. This US check is being made in live preview functionality
@@ -69,23 +69,28 @@ public void onCompletion(ResponseType responseType, Error error) { | |||
logger.info("passed.."); | |||
} | |||
|
|||
//pass variant uid | |||
@Disabled |
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.
Why did we disable these tests?
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.
If we don't pass the variantsUID the test will fail. Hence disabled the tests.
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.
The other test cases are live preview which cannot be validated(2 tests), and remaining 2tests are of synchronisation which requires pagination token hence disabled.
In total 6 tests are disabled. I have enabled one testcase.
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.
LGTM
…remove disabled test for asset URL update
…ests in TestLivePreview and TestStack