package de.pretrendr.awscli;

import static org.junit.Assert.assertTrue;

import java.io.File;

import org.junit.Test;
import org.springframework.context.annotation.Bean;

import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;

public class AWSCLITest{

	@Test
	public void checkAWSCLIConnection() throws Exception{
		ProfileCredentialsProvider credentialsProvider = new ProfileCredentialsProvider();
		assertTrue("Bad AWS CLI credentials",(credentialsProvider.getCredentials() != null));
	}
}

@@ -207,16 +207,82 @@
 ntials;%0A
+import com.amazonaws.auth.EnvironmentVariableCredentialsProvider;%0A
 import c
@@ -426,16 +426,18 @@
 tion%7B%0A%09%09
+//
 ProfileC
@@ -551,17 +551,40 @@
 tials%22,(
-c
+new EnvironmentVariableC
 redentia
@@ -593,16 +593,18 @@
 Provider
+()
 .getCred

test aws cli for circleci