PRDONE-94: updated to ignore missing .env file

This commit is contained in:
Tim Chamberlain
2022-08-30 12:17:37 -05:00
parent 4316b47916
commit 4c2ebf8a94
2 changed files with 6 additions and 2 deletions

View File

@ -103,7 +103,9 @@ class ConnectionManagerTest
private RDBMSBackendMetaData getAuroraBacked() private RDBMSBackendMetaData getAuroraBacked()
{ {
Dotenv dotenv = Dotenv.configure().load(); Dotenv dotenv = Dotenv.configure()
.ignoreIfMissing()
.load();
return new RDBMSBackendMetaData() return new RDBMSBackendMetaData()
.withName("aurora-test") .withName("aurora-test")
.withVendor(dotenv.get("RDBMS_VENDOR")) .withVendor(dotenv.get("RDBMS_VENDOR"))

View File

@ -135,7 +135,9 @@ public class SampleMetaDataProvider
.withName(PersonsByCreateDateBarChart.class.getSimpleName()) .withName(PersonsByCreateDateBarChart.class.getSimpleName())
.withCodeReference(new QCodeReference(PersonsByCreateDateBarChart.class, null))); .withCodeReference(new QCodeReference(PersonsByCreateDateBarChart.class, null)));
Dotenv dotenv = Dotenv.configure().load(); Dotenv dotenv = Dotenv.configure()
.ignoreIfMissing()
.load();
QWidgetMetaDataInterface quickSightChartMetaData = new QuickSightChartMetaData() QWidgetMetaDataInterface quickSightChartMetaData = new QuickSightChartMetaData()
.withAccountId(dotenv.get("QUICKSIGHT_ACCCOUNT_ID")) .withAccountId(dotenv.get("QUICKSIGHT_ACCCOUNT_ID"))
.withAccessKey(dotenv.get("QUICKSIGHT_ACCESS_KEY")) .withAccessKey(dotenv.get("QUICKSIGHT_ACCESS_KEY"))