Skip to content

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

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

reeshika-h
Copy link
Contributor

  • 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.
AniketDev7
AniketDev7 previously approved these changes May 5, 2025
@@ -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") ){

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

Copy link
Contributor Author

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

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

harshithad0703
harshithad0703 previously approved these changes May 5, 2025
Copy link
Contributor

@harshithad0703 harshithad0703 left a comment

Choose a reason for hiding this comment

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

LGTM

@reeshika-h reeshika-h dismissed stale reviews from harshithad0703 and AniketDev7 via 10f0bd2 May 5, 2025 05:22
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.

3 participants