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

[Reporting] Address Canvas PDF test failing in Cloud #112623

Merged

Conversation

tsullivan
Copy link
Member

Summary

Closes #87713

Updates the functional test to allow the content length of the downloaded Canvas report to be between 20725 and 20726

@tsullivan tsullivan requested a review from a team as a code owner September 21, 2021 00:03
@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes v7.16.0 v8.0.0 v7.14.2 v7.15.1 labels Sep 21, 2021
@tsullivan tsullivan requested a review from liza-mae September 21, 2021 00:05
Copy link
Contributor

@liza-mae liza-mae left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@clintandrewhall clintandrewhall left a comment

Choose a reason for hiding this comment

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

Approving to unblock.

@@ -198,7 +198,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
"
`);

expect(res.get('content-length')).to.be('20725');
const contentLength = parseInt(res.get('content-length'), 10);
expect(contentLength >= 20725 && contentLength <= 20726).to.be(true); // contentLength can be between 20725 and 20726
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should these be documented constants, or is this specific to this test?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is specific to this test - it's essentially a snapshot of the content length of the downloaded PDF file.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@tsullivan tsullivan merged commit 6980064 into elastic:master Sep 21, 2021
@tsullivan tsullivan deleted the reporting/canvas-pdf-size-test-adjustment branch September 21, 2021 03:36
tsullivan added a commit to tsullivan/kibana that referenced this pull request Sep 21, 2021
tsullivan added a commit to tsullivan/kibana that referenced this pull request Sep 21, 2021
tsullivan added a commit to tsullivan/kibana that referenced this pull request Sep 21, 2021
tsullivan added a commit that referenced this pull request Sep 22, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.14.2 v7.15.1 v7.16.0 v8.0.0
Projects
None yet
4 participants