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

[Improvement][Test] Remove the usage of powermock in datasource-plugin module #12194

Merged
merged 4 commits into from
Sep 30, 2022

Conversation

EricGao888
Copy link
Member

@EricGao888 EricGao888 commented Sep 28, 2022

Purpose of the pull request

Brief change log

  • Remove the usage of powermock in datasource-plugin module
  • Switch datasource-plugin module to use PropertyUtils in common module instead of that in spi module.

Verify this pull request

  • Verified by unit tests.

@EricGao888 EricGao888 self-assigned this Sep 28, 2022
@EricGao888 EricGao888 added improvement make more easy to user or prompt friendly backend test labels Sep 28, 2022
@EricGao888 EricGao888 added this to the 3.2.0 milestone Sep 28, 2022
@github-actions github-actions bot removed the test label Sep 28, 2022
import org.apache.dolphinscheduler.spi.utils.StringUtils;

import sun.security.krb5.Config;

Check notice

Code scanning / CodeQL

Access to unsupported JDK-internal API

Access to unsupported JDK-internal API 'sun.security.krb5.Config'. (Use com.sun.security.jgss)
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 the order rearrangement by spotless, not new import added.

@EricGao888 EricGao888 marked this pull request as ready for review September 29, 2022 12:56
kezhenxu94
kezhenxu94 previously approved these changes Sep 29, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #12194 (d736c6b) into dev (1a4d7a8) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                dev   #12194      +/-   ##
============================================
- Coverage     39.44%   39.44%   -0.01%     
+ Complexity     4142     4140       -2     
============================================
  Files          1011     1011              
  Lines         37845    37852       +7     
  Branches       4345     4347       +2     
============================================
+ Hits          14929    14930       +1     
- Misses        21185    21191       +6     
  Partials       1731     1731              
Impacted Files Coverage Δ
...atasource/api/plugin/DataSourceClientProvider.java 0.00% <0.00%> (ø)
...atasource/api/provider/JDBCDataSourceProvider.java 0.00% <0.00%> (ø)
...duler/plugin/datasource/api/utils/CommonUtils.java 55.88% <ø> (ø)
...ler/plugin/datasource/api/utils/PasswordUtils.java 43.47% <ø> (ø)
...r/plugin/datasource/hive/HiveDataSourceClient.java 1.35% <0.00%> (-0.02%) ⬇️
...duler/plugin/datasource/hive/utils/CommonUtil.java 0.00% <0.00%> (ø)
.../datasource/api/client/CommonDataSourceClient.java 2.43% <0.00%> (+2.43%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarcloud
Copy link

sonarcloud bot commented Sep 29, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@EricGao888 EricGao888 merged commit 585efe3 into apache:dev Sep 30, 2022
xdu-chenrj pushed a commit to xdu-chenrj/dolphinscheduler that referenced this pull request Oct 13, 2022
…n module (apache#12194)

* Remove the usage of powermock in datasource-plugin module

* Switch datasource-plugin module to use PropertyUtils in common module
fuchanghai pushed a commit to fuchanghai/dolphinscheduler that referenced this pull request Nov 16, 2022
…n module (apache#12194)

* Remove the usage of powermock in datasource-plugin module

* Switch datasource-plugin module to use PropertyUtils in common module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend improvement make more easy to user or prompt friendly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement][Test] Remove powermock in datasource-plugin module
3 participants