Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Add integration test cases for report definition rest APIs #272

Merged
merged 7 commits into from
Dec 22, 2020
Merged

Add integration test cases for report definition rest APIs #272

merged 7 commits into from
Dec 22, 2020

Conversation

joshuali925
Copy link
Contributor

Issue #, if available:

Description of changes:

  • Add integration test cases for report definition rest APIs
  • Allow custom error types in validateErrorResponse helper function

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Dec 22, 2020

Codecov Report

Merging #272 (222b514) into dev (caa260d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #272   +/-   ##
=======================================
  Coverage   74.91%   74.91%           
=======================================
  Files          32       32           
  Lines        1754     1754           
  Branches      340      340           
=======================================
  Hits         1314     1314           
  Misses        435      435           
  Partials        5        5           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update caa260d...afc8e7e. Read the comment docs.

Copy link
Contributor

@akbhatta akbhatta left a comment

Choose a reason for hiding this comment

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

May be other values can be validated in some test cases?

Copy link
Contributor

@davidcui1225 davidcui1225 left a comment

Choose a reason for hiding this comment

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

LGTM

@joshuali925 joshuali925 merged commit c47b983 into opendistro-for-elasticsearch:dev Dec 22, 2020
zhongnansu pushed a commit to zhongnansu/kibana-reports that referenced this pull request Jan 5, 2021
…o-for-elasticsearch#272)

* WIP create requests

* Allow custom error types in validateErrorResponse

* Add more test cases

* Address comments

* Use multiple constants instead of one variable

* Move helper method to TestHelpers
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants