Skip to content

[Test]Enable unit test suite: render_opted_in_notice_banner.test.ts#506

Merged
ananzh merged 1 commit intoopensearch-project:mainfrom
ananzh:i-504
Jun 24, 2021
Merged

[Test]Enable unit test suite: render_opted_in_notice_banner.test.ts#506
ananzh merged 1 commit intoopensearch-project:mainfrom
ananzh:i-504

Conversation

@ananzh
Copy link
Copy Markdown
Member

@ananzh ananzh commented Jun 19, 2021

Description

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opted_in_notice_banner.test.ts.

Signed-off-by: Anan Zhuang ananzh@amazon.com

Issues Resolved

#504

Test results

unit test for render_opted_in_notice_banner.test.ts

yarn test:jest /home/anan/work/OpenSearch-Dashboards/src/plugins/telemetry/public/services/telemetry_notifications/render_opted_in_notice_banner.test.ts
yarn run v1.22.10
$ node scripts/jest /home/anan/work/OpenSearch-Dashboards/src/plugins/telemetry/public/services/telemetry_notifications/render_opted_in_notice_banner.test.ts
 PASS  src/plugins/telemetry/public/services/telemetry_notifications/render_opted_in_notice_banner.test.ts
  renderOptedInNoticeBanner
    ✓ adds a banner to banners with priority of 10000 (4 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        3.892 s

Overall test result:
Screen Shot 2021-06-18 at 6 07 32 PM

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

…pensearch-project#504)

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opted_in_notice_banner.test.ts.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@ananzh ananzh requested review from boktorbb, kavilla and tmarkley June 19, 2021 01:08
@ananzh ananzh self-assigned this Jun 19, 2021
@ananzh ananzh changed the title [Test]Enable unit test suite: render_opted_in_notice_banner.test.ts(#504) [Test]Enable unit test suite: render_opted_in_notice_banner.test.ts Jun 19, 2021
@ananzh ananzh mentioned this pull request Jun 19, 2021
26 tasks
@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

✅   DCO Check Passed f1faea6

@ananzh ananzh merged commit e6c5f9e into opensearch-project:main Jun 24, 2021
kavilla pushed a commit that referenced this pull request Jun 26, 2021
…504) (#506)

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opted_in_notice_banner.test.ts.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
kavilla pushed a commit that referenced this pull request Jun 26, 2021
…504) (#506)

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opted_in_notice_banner.test.ts.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@ananzh ananzh deleted the i-504 branch September 14, 2021 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants