@@ -30,7 +30,6 @@ public class CloudFormationTest {
3030 public static void setUp () {
3131 cfClient = CloudFormationClient .builder ()
3232 .region (Region .US_EAST_1 )
33- .credentialsProvider (EnvironmentVariableCredentialsProvider .create ())
3433 .build ();
3534
3635 // Get the values to run these tests from AWS Secrets Manager.
@@ -42,31 +41,6 @@ public static void setUp() {
4241 location = values .getLocation ();
4342 key = values .getKey ();
4443 value = values .getValue ();
45-
46- // Uncomment this code block if you prefer using a config.properties file to
47- // retrieve AWS values required for these tests.
48- /*
49- * try (InputStream input =
50- * CloudFormationTest.class.getClassLoader().getResourceAsStream(
51- * "config.properties")) {
52- * Properties prop = new Properties();
53- * if (input == null) {
54- * System.out.println("Sorry, unable to find config.properties");
55- * return;
56- * }
57- *
58- * // Populate the data members required for all tests.
59- * prop.load(input);
60- * stackName = prop.getProperty("stackName");
61- * roleARN = prop.getProperty("roleARN");
62- * location = prop.getProperty("location");
63- * key = prop.getProperty("key");
64- * value = prop.getProperty("value");
65- *
66- * } catch (IOException ex) {
67- * ex.printStackTrace();
68- * }
69- */
7044 }
7145
7246 @ Test
@@ -104,7 +78,6 @@ public void DeleteStack() {
10478 private static String getSecretValues () {
10579 SecretsManagerClient secretClient = SecretsManagerClient .builder ()
10680 .region (Region .US_EAST_1 )
107- .credentialsProvider (EnvironmentVariableCredentialsProvider .create ())
10881 .build ();
10982 String secretName = "test/cloudformation" ;
11083
0 commit comments