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

Add integ tests #131

Merged
merged 5 commits into from
Dec 28, 2021
Merged

Add integ tests #131

merged 5 commits into from
Dec 28, 2021

Conversation

sarthak77
Copy link
Member

@sarthak77 sarthak77 commented Dec 24, 2021

Ref issue : #130

@codecov
Copy link

codecov bot commented Dec 24, 2021

Codecov Report

Merging #131 (aff6124) into main (4daed08) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #131   +/-   ##
=========================================
  Coverage     81.25%   81.25%           
  Complexity      574      574           
=========================================
  Files            53       53           
  Lines          2235     2235           
  Branches        236      236           
=========================================
  Hits           1816     1816           
  Misses          325      325           
  Partials         94       94           
Flag Coverage Δ
integration 81.25% <ø> (ø)
unit 79.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 4daed08...aff6124. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Arguments.arguments(
buildQueryFromJsonFile("query4.json"),
10,
"{\"internal.span.format\":\"jaeger\",\"http.status_code\":\"200\",\"component\":\"net/http\",\"span.kind\":\"server\",\"sampler.type\":\"const\",\"sampler.param\":\"1\",\"http.url\":\"/dispatch?customer=392&nonse=0.2664909002836733\",\"servicename\":\"frontend\",\"http.method\":\"GET\"}"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also put that in json file as query4-expected-response.json? (its not redable)

Copy link
Member Author

Choose a reason for hiding this comment

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

It is coming in this format only. It is a string.

Copy link
Member Author

Choose a reason for hiding this comment

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

created a new test for this case.

@github-actions

This comment has been minimized.

List<Row> rows = list.get(0).getRowList();
assertEquals(10, rows.size());
assertEquals(
"\"http.status_code\":\"200\"", rows.get(0).getColumn(0).getString().split(",")[1]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are all the rows are having the same values? Would this always be true that the first-row first column will have this value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Are all the rows are having the same values?

No

Would this always be true that the first-row first column will have this value?

Should be as we are generating same load ?

LOG.info("Not contains key query");
Iterator<ResultSetChunk> itr =
queryServiceClient.executeQuery(
buildQueryFromJsonFile("query4.json"), TENANT_ID_MAP, 10000);

Choose a reason for hiding this comment

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

is there a 1-1 mapping between the test method and query file, if yes then maybe you can name the query file after the method name?

@github-actions

This comment has been minimized.

@sarthak77 sarthak77 merged commit 976986d into main Dec 28, 2021
@sarthak77 sarthak77 deleted the add_integ_tests branch December 28, 2021 11:59
@github-actions
Copy link

Unit Test Results

  30 files  ±0    30 suites  ±0   10s ⏱️ +2s
185 tests +3  185 ✔️ +3  0 💤 ±0  0 ❌ ±0 

Results for commit 976986d. ± Comparison against base commit 4daed08.

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.

None yet

3 participants