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

Test for dashboard_utils #1202

Merged
merged 5 commits into from Jan 5, 2023
Merged

Test for dashboard_utils #1202

merged 5 commits into from Jan 5, 2023

Conversation

strickvl
Copy link
Contributor

2 tests for one of the dashboard_utils functions.

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • If my change requires a change to docs, I have updated the documentation accordingly.
  • If I have added an integration, I have updated the integrations table and the corresponding website section.
  • I have added tests to cover my changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

@strickvl strickvl added internal To filter out internal PRs and issues tests Test suite additions or updates labels Dec 22, 2022
Comment on lines +53 to +56
if Client().zen_store.type == "rest":
url = dashboard_utils.get_run_url("test")
assert url == "https://aria_rules.com/pipelines/all-runs"
assert isinstance(url, str)
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is meant to test get run URL, can we add another test where the runs list is not empty and the returned URL is actually right for a run name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added an extra test to cover this case. Thanks!

@strickvl strickvl merged commit 02e657e into develop Jan 5, 2023
@strickvl strickvl deleted the test/ENG-1583-dashboard-utils branch January 5, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal To filter out internal PRs and issues tests Test suite additions or updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants