|
30 | 30 | @FixMethodOrder(MethodSorters.NAME_ASCENDING) |
31 | 31 | public class SdkUnitTests { |
32 | 32 |
|
33 | | - private static final String UserName = System.getProperty("USER_NAME"); |
34 | | - private static final String UserId = System.getProperty("USER_ID"); |
35 | | - private static final String IntegratorKey = System.getProperty("INTEGRATOR_KEY_JWT"); |
36 | | - private static final String IntegratorKeyImplicit = System.getProperty("INTEGRATOR_KEY_IMPLICIT"); |
37 | | - //private static final String ClientSecret = System.getProperty("CLIENT_SECRET"); |
38 | | - private static final String RedirectURI = System.getProperty("REDIRECT_URI"); |
| 33 | + private static final String UserName = System.getenv("USER_NAME"); |
| 34 | + private static final String UserId = System.getenv("USER_ID"); |
| 35 | + private static final String IntegratorKey = System.getenv("INTEGRATOR_KEY_JWT"); |
| 36 | + private static final String IntegratorKeyImplicit = System.getenv("INTEGRATOR_KEY_IMPLICIT"); |
| 37 | + //private static final String ClientSecret = System.getenv("CLIENT_SECRET"); |
| 38 | + private static final String RedirectURI = System.getenv("REDIRECT_URI"); |
39 | 39 |
|
40 | 40 | private static final String BaseUrl = "https://demo.docusign.net/restapi"; |
41 | 41 | //private static final String OAuthBaseUrl = "account-d.docusign.com"; |
42 | | - private static final byte[] privateKeyBytes = System.getProperty("PRIVATE_KEY").getBytes(); |
| 42 | + private static final byte[] privateKeyBytes = System.getenv("PRIVATE_KEY").getBytes(); |
43 | 43 | private static final String brandLogoFullPath = System.getProperty("user.dir") + "/src/test/docs/DS.png"; |
44 | 44 |
|
45 | 45 | private static final String SignTest1File = "/src/test/docs/SignTest1.pdf"; |
46 | | - private static final String TemplateId = System.getProperty("TEMPLATE_ID"); |
47 | | - private static final String BrandId = System.getProperty("BRAND_ID"); |
| 46 | + private static final String TemplateId = System.getenv("TEMPLATE_ID"); |
| 47 | + private static final String BrandId = System.getenv("BRAND_ID"); |
48 | 48 | private String[] envelopeIds = new String[0]; |
49 | 49 | // JUnit 4.12 runs test cases in parallel, so the envelope ID needs to be initiated as well. |
50 | 50 |
|
@@ -78,7 +78,7 @@ public void tearDown() { |
78 | 78 | public void JWTLoginTest() { |
79 | 79 | System.out.println("\nJWTLoginTest:\n" + "==========================================="); |
80 | 80 | ApiClient apiClient = new ApiClient(BaseUrl); |
81 | | - //String currentDir = System.getProperty("user.dir"); |
| 81 | + //String currentDir = System.getenv("user.dir"); |
82 | 82 |
|
83 | 83 | try { |
84 | 84 | // IMPORTANT NOTE: |
|
0 commit comments