saucelabs/sauce-java

Inconsistent ENV names

Closed this issue · 9 comments

A large amount of documentation refers to:

export SAUCE_USERNAME=”myusername”
export SAUCE_ACCESS_KEY=”xxxxxxxx”

The Java client only checks:

    private static final String SAUCE_USER_NAME = "SAUCE_USER_NAME";
    private static final String SAUCE_API_KEY = "SAUCE_API_KEY";

It'd save me a bunch of work if both were supported. If someone attends a presentation, such as jquery uk, the ENV isn't going to work on Java.

Thanks for letting me know, I've updated the SauceOnDemandAuthentication class to support both environment variables, and have released version 2.1.2 of the sauce java libraries which includes the change

The other difference is SAUCE_USERNAME vs SAUCE_USER_NAME

Okay, I've released version 2.1.3 which includes support for the SAUCE_USERNAME environment variable

Thanks!

I think a new sauce_junit needs to be released for me to use this fix?

It should be available in version 2.1.3 of the sauce helper library, but if it isn't, please let me know.

On 21 May 2014, at 10:55 am, bootstraponline notifications@github.com wrote:

I think a new sauce_junit needs to be released for me to use this fix?


Reply to this email directly or view it on GitHub.

In my pom.xml I have:

  • sauce_junit 2.0.8
  • saucerest 1.0.16

I think I have to change something to use the new version? I'm not sure what should be changed as I don't use sauce_java directly.

Yep, you should just need to change the value of the version element for the sauce_junit dependency to 2.1.3 to pick up the latest version