Skip to content

[Reporting] Re-enable some skipped tests#27094

Merged
tsullivan merged 8 commits intoelastic:masterfrom
tsullivan:reporting/test-re-enable-ii
Dec 14, 2018
Merged

[Reporting] Re-enable some skipped tests#27094
tsullivan merged 8 commits intoelastic:masterfrom
tsullivan:reporting/test-re-enable-ii

Conversation

@tsullivan
Copy link
Member

Re-enable Reporting tests that were skipped in #26877

Root cause of why the tests were failing is addressed in #26995

This also includes quite a few changes to tests to make them able to run standalone.

@tsullivan tsullivan added review test v7.0.0 zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead v6.6.0 labels Dec 12, 2018
@tsullivan tsullivan changed the title Reporting/test re enable ii [Reporting] Re-enable some skipped tests Dec 12, 2018
* Unfortunately we don't have a logger in scope to log a warning.
*/
err; // no-op
});
Copy link
Member Author

Choose a reason for hiding this comment

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

Normally, we would want to log a warning here, but there is no logger in context in this function.

We could also check the statusCode on the err object to try to be certain it's a case of attempt to create an index that already exists. It isn't super specific though, the statusCode will just be 400.

Copy link
Member Author

Choose a reason for hiding this comment

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

Note: The FIXME was that we should log a warning here. That'll take a bit of refactoring to get a logger in scope

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@@ -13,11 +13,10 @@ export default function ({ getService }) {
const usageAPI = getService('usageAPI');

describe('reporting usage', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice cleanup here

@tsullivan tsullivan merged commit 15ee6de into elastic:master Dec 14, 2018
@tsullivan tsullivan deleted the reporting/test-re-enable-ii branch December 14, 2018 00:05
tsullivan added a commit to tsullivan/kibana that referenced this pull request Dec 14, 2018
* [Test/Reporting] Enable "generates a report with/without data"

* navigate to discover before each csv test

* get another test working

* re-enable more tests

* refactor api usage tests

* catch error in createIndex to avoid race condition in test

* delete reports before
@tsullivan
Copy link
Member Author

6.x/6.6: #27177

tsullivan added a commit that referenced this pull request Dec 14, 2018
* [Test/Reporting] Enable "generates a report with/without data"

* navigate to discover before each csv test

* get another test working

* re-enable more tests

* refactor api usage tests

* catch error in createIndex to avoid race condition in test

* delete reports before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review test v6.6.0 v7.0.0 zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants