Skip to content

[7.x] [Reporting] Improve functional test steps (#63259)#63519

Merged
tsullivan merged 5 commits intoelastic:7.xfrom
tsullivan:backport/7.x/pr-63259
Apr 16, 2020
Merged

[7.x] [Reporting] Improve functional test steps (#63259)#63519
tsullivan merged 5 commits intoelastic:7.xfrom
tsullivan:backport/7.x/pr-63259

Conversation

@tsullivan
Copy link
Copy Markdown
Member

Backports the following commits to 7.x:

@tsullivan tsullivan added the backport This PR is a backport of another PR label Apr 14, 2020
@tsullivan tsullivan force-pushed the backport/7.x/pr-63259 branch from bc6dd5e to d668da3 Compare April 15, 2020 19:56
@tsullivan
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These changes bring the 7.x branch in sync with master for this file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

note: getUrl returns a relative URL

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note: relative URL is returned

Copy link
Copy Markdown
Member Author

@tsullivan tsullivan Apr 15, 2020

Choose a reason for hiding this comment

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

Note: This file's changes are from being copied from master

@tsullivan tsullivan force-pushed the backport/7.x/pr-63259 branch from 93f6d7a to d668da3 Compare April 15, 2020 21:14
);
expect(percentSimilar).to.be.lessThan(0.05);
const url = await PageObjects.reporting.getReportURL(60000);
expect(url).to.match(/download/);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@joelgriffith I found that I was not able to use the same code here as there is in master, where we're actually sending a request out for the URL and checking response headers for OK values. In this branch, the url value returned is relative, so the fetch was failing since it didn't have the correct host or port number.

There aren't very many code differences between 7.x and master in this branch, so I'm not sure what the difference is that is making the return URL something that can't be requested. That's why this just does a regex match on the returned URL string.

@tsullivan
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

  • 💚 Build #41082 succeeded 93f6d7af4a795120b06c5fbe83fb15b2acdd1127
  • 💔 Build #41079 failed bc6dd5ee3789f63cff1ccd6e2b8681ab0081efa8
  • 💔 Build #40798 failed 36d23da2c8e70aac37ca143a0f311289eb08df9b

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

@tsullivan tsullivan merged commit 0f04d2a into elastic:7.x Apr 16, 2020
@tsullivan tsullivan deleted the backport/7.x/pr-63259 branch April 16, 2020 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants