Skip to content

Conversation

JacksonTian
Copy link
Contributor

No description provided.

@JacksonTian JacksonTian requested a review from xiahuai as a code owner June 12, 2024 08:11
@JacksonTian JacksonTian force-pushed the env branch 2 times, most recently from d460e2d to f6c47bd Compare June 12, 2024 13:31
}
}

public static void setEnvironmentAccessKeyId(String environmentAccessKeyId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

这种方式还不能删掉,用户是可能会用到的,可以先置为弃用,标注弃用时间。时间到期再删。

@@ -1,48 +0,0 @@
package com.aliyuncs.utils;
Copy link
Collaborator

Choose a reason for hiding this comment

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

这种方式还不能删掉,用户是可能会用到的,可以先置为弃用,标注弃用时间。时间到期再删。

defaultProviders.add(new SystemPropertiesCredentialsProvider());
defaultProviders.add(new EnvironmentVariableCredentialsProvider());
defaultProviders.add(new ProfileCredentialsProvider());
String roleName = AuthUtils.getEnvironmentECSMetaData();
Copy link
Collaborator

Choose a reason for hiding this comment

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

需要保留和兼容之前的get方式,因为AuthUtils有对应的set方法

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 81.25000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 89.92%. Comparing base (4368696) to head (13c630a).

Files Patch % Lines
...re/src/main/java/com/aliyuncs/utils/AuthUtils.java 60.00% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #900      +/-   ##
============================================
- Coverage     89.98%   89.92%   -0.07%     
+ Complexity     1654     1638      -16     
============================================
  Files           124      124              
  Lines          4734     4705      -29     
  Branches        544      543       -1     
============================================
- Hits           4260     4231      -29     
- Misses          347      348       +1     
+ Partials        127      126       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants