Comments (12)
Once the above PR is merged I'll create 1.4 so you can use the fixed version.
If you need this quickly you can checkout the PR and build from source.
If you decide to build from source let me know if you have any problems.
from aws-device-farm-gradle-plugin.
👍
Great to see this issue progressing. It will help us use it more idiomati Any ideas on a release?
Thanks.
from aws-device-farm-gradle-plugin.
Thanks for submitting this issue.
I'm looking into the bug now. Have you seen this issue in previous versions of the plugin? (v1.2 etc)
from aws-device-farm-gradle-plugin.
No, the plugin is new to me and 1.3 is the first one I've tried.
from aws-device-farm-gradle-plugin.
I've reproduced the issue locally on v1.3 using the following in my module build.gradle
devicefarm {
projectName "Test"
authentication {
roleArn "arn:aws:iam::000000000000:role/MyRole"
}
}
from aws-device-farm-gradle-plugin.
Any update on this issue? Appears to affect 1.2 as well.
from aws-device-farm-gradle-plugin.
I appreciate the response. Wound up forking it and adding a fallback to the default credential provider chain if no explicit overrides are provided via configuration.
public AWSDeviceFarm initializeApiClient(final DeviceFarmExtension extension) {
final AWSDeviceFarmClientBuilder clientBuilder = AWSDeviceFarmClientBuilder.standard();
final Authentication authentication = extension.getAuthentication();
final AWSCredentialsProvider credentialsProvider = getAwsCredentialsProvider(authentication);
final ClientConfiguration clientConfiguration = new ClientConfiguration()
.withUserAgentSuffix(String.format(extension.getUserAgent(), pluginVersion));
return clientBuilder.withCredentials(credentialsProvider)
.withClientConfiguration(clientConfiguration)
.withRegion("us-west-2")
.build();
}
private AWSCredentialsProvider getAwsCredentialsProvider(Authentication authentication) {
AWSCredentialsProvider credentialsProvider;
if (authentication != null && authentication.isValid()) {
if (authentication.getRoleArn() != null) {
credentialsProvider = new STSAssumeRoleSessionCredentialsProvider
.Builder(authentication.getRoleArn(), RandomStringUtils.randomAlphanumeric(8))
.build();
} else {
BasicAWSCredentials credentials = new BasicAWSCredentials(authentication.getAccessKey(), authentication.getSecretKey());
credentialsProvider = new STSSessionCredentialsProvider(credentials);
}
} else {
credentialsProvider = DefaultAWSCredentialsProviderChain.getInstance();
}
return credentialsProvider;
}
from aws-device-farm-gradle-plugin.
That's definitely another way of resolving the issue.
As far as I can tell, the devicefarmUpload
task will work even if you don't provide an authentication
closure, correct?
from aws-device-farm-gradle-plugin.
I would also like a release of 1.4 with the roleArn fix please. Any idea when?
from aws-device-farm-gradle-plugin.
Is this issue fixed ?
from aws-device-farm-gradle-plugin.
any update on this or workaround. ?
from aws-device-farm-gradle-plugin.
seeing this as well
from aws-device-farm-gradle-plugin.
Related Issues (15)
- Issue using within Java 7 project HOT 8
- Failed to apply plugin [id 'devicefarm'] The android or android-library has not been applied yet HOT 5
- Test run only gets enqueued, plugin doesn't wait for tests to finish HOT 2
- How to Package the Test Content HOT 1
- How to specify build variant/apk file? HOT 3
- devicefarmUpload fail with NullPointerException on android library (aar) projects HOT 3
- CI Integration (wait for test results in the gradle plugin) HOT 12
- Running the plugin says tests were skipped HOT 3
- What is the zip file of appium ? HOT 5
- AWS doesn't support Appium with Serenity BDD & Gradle configuration? HOT 3
- Can't run configured test on Device Farm with the devicefarmUpload task.(gradle devicefarmUpload. ) HOT 1
- `testSpecName` in Instrumentation tests HOT 3
- Flutter support HOT 1
- AWS Device Farm configuration is NOT VALID (with valid config) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-device-farm-gradle-plugin.