Skip to content

Conversation

@khansaad
Copy link
Contributor

@khansaad khansaad commented Dec 1, 2025

Description

This PR contains tests for the validations added as part of PR #1557

Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

How has this been tested?

Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.

  • New Test X
  • Functional testsuite

Test Configuration

  • Kubernetes clusters tested on: Openshift

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

Additional information

Include any additional information such as links, test results, screenshots here

Signed-off-by: Saad Khan <[email protected]>
@khansaad khansaad added this to the Kruize 0.8 Release milestone Dec 1, 2025
@khansaad khansaad requested a review from chandrams December 1, 2025 08:05
@khansaad khansaad self-assigned this Dec 1, 2025
@khansaad khansaad added the test label Dec 1, 2025
@khansaad khansaad moved this to Under Review in Monitoring Dec 1, 2025


@pytest.mark.test_bulk_api_ros
@pytest.mark.parametrize("start, end, expected_error", [
Copy link
Contributor

Choose a reason for hiding this comment

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

@khansaad Can you update the test documentation with the test scenarios. Also add a description in the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: Saad Khan <[email protected]>
@khansaad khansaad requested a review from chandrams December 2, 2025 16:58
Signed-off-by: Saad Khan <[email protected]>
…s-test

# Conflicts:
#	tests/scripts/helpers/utils.py
@khansaad
Copy link
Contributor Author

khansaad commented Dec 3, 2025

bulk-test-results.zip
Test Results

validate_job_status(response.json()["job_id"], URL, caplog)


@pytest.mark.test_bulk_api_ros
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this marker added in the tests list in the script to run? If not, you can add negative/sanity marker too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, its added in the pytest.ini file

Copy link
Contributor

@chandrams chandrams left a comment

Choose a reason for hiding this comment

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

LGTM

("2024-01-01 10:00:00", "2024-01-01T12:00:00Z", "Invalid date format. Must follow ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ) for the jobId:"), # bad format
("2025-01-02T12:00:00Z", "2025-01-01T12:00:00Z", "Start time should be before end time for the jobId:"), # start > end
# less than 24 hours difference
("2025-01-01T00:00:00Z", "2025-01-01T10:00:00Z", "Time range must be between 24 hours and 15 days for the jobId:"),
Copy link
Contributor

Choose a reason for hiding this comment

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

@khansaad I don't think we should have this time range check, please verify and update

Copy link
Contributor

@chandrams chandrams left a comment

Choose a reason for hiding this comment

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

@khansaad I don't think we should have this time range check, please verify and update the code & tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Under Review

Development

Successfully merging this pull request may close these issues.

2 participants