Skip to content

Commit

Permalink
Tests: fix AwsS3ServiceImplTests
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuescher committed Feb 23, 2017
1 parent 8b1b152 commit 12b143e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@
import com.amazonaws.Protocol;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.InstanceProfileCredentialsProvider;

import org.elasticsearch.common.settings.MockSecureSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.repositories.s3.S3Repository;
import org.elasticsearch.test.ESTestCase;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;

Expand All @@ -38,7 +37,7 @@ public class AwsS3ServiceImplTests extends ESTestCase {
public void testAWSCredentialsWithSystemProviders() {
AWSCredentialsProvider credentialsProvider =
InternalAwsS3Service.buildCredentials(logger, deprecationLogger, Settings.EMPTY, Settings.EMPTY, "default");
assertThat(credentialsProvider, instanceOf(InstanceProfileCredentialsProvider.class));
assertThat(credentialsProvider, instanceOf(AWSCredentialsProvider.class));
}

public void testAwsCredsDefaultSettings() {
Expand Down

0 comments on commit 12b143e

Please sign in to comment.