@@ -35,7 +35,6 @@ public class EMRTest {
3535 public static void setUp () throws IOException {
3636 emrClient = EmrClient .builder ()
3737 .region (Region .US_WEST_2 )
38- .credentialsProvider (EnvironmentVariableCredentialsProvider .create ())
3938 .build ();
4039
4140 // Get the values to run these tests from AWS Secrets Manager.
@@ -48,31 +47,6 @@ public static void setUp() throws IOException {
4847 logUri = values .getLogUri ();
4948 name = values .getName ();
5049 existingClusterId = values .getExistingClusterId ();
51-
52- // Uncomment this code block if you prefer using a config.properties file to
53- // retrieve AWS values required for these tests.
54- /*
55- *
56- * try (InputStream input =
57- * EMRTest.class.getClassLoader().getResourceAsStream("config.properties")) {
58- * Properties prop = new Properties();
59- * if (input == null) {
60- * System.out.println("Sorry, unable to find config.properties");
61- * return;
62- * }
63- * // Populate the data members required for all tests.
64- * prop.load(input);
65- * jar = prop.getProperty("jar");
66- * myClass = prop.getProperty("myClass");
67- * keys = prop.getProperty("keys");
68- * logUri = prop.getProperty("logUri");
69- * name = prop.getProperty("name");
70- * existingClusterId= prop.getProperty("existingClusterId");
71- *
72- * } catch (IOException ex) {
73- * ex.printStackTrace();
74- * }
75- */
7650 }
7751
7852 @ Test
@@ -123,7 +97,6 @@ public void customEmrfsMaterialsTest() {
12397 private static String getSecretValues () {
12498 SecretsManagerClient secretClient = SecretsManagerClient .builder ()
12599 .region (Region .US_EAST_1 )
126- .credentialsProvider (EnvironmentVariableCredentialsProvider .create ())
127100 .build ();
128101 String secretName = "text/emr" ;
129102
0 commit comments