Skip to content

Commit ccd10c0

Browse files
committed
Try fix stupid dotenv
1 parent 3185466 commit ccd10c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/src/test/java/com/sap/ai/sdk/core/AiCoreServiceKeyAccessorTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class AiCoreServiceKeyAccessorTest {
1212

1313
@Test
1414
void testValidDotenv() {
15-
var dotenv = Dotenv.configure().directory("./src/test/resources").filename("valid.testenv");
15+
var dotenv = Dotenv.configure().filename("valid.testenv");
1616
var accessor = new AiCoreServiceKeyAccessor(dotenv);
1717
assertThat(accessor.getServiceBindings()).isNotEmpty().hasSize(1);
1818
assertThat(accessor.getServiceBindings().get(0).getCredentials())
@@ -24,8 +24,7 @@ void testValidDotenv() {
2424

2525
@Test
2626
void testMissingClientIdDotenv() {
27-
var dotenv =
28-
Dotenv.configure().directory("src/test/resources").filename("missingClientId.testenv");
27+
var dotenv = Dotenv.configure().filename("missingClientId.testenv");
2928
var accessor = new AiCoreServiceKeyAccessor(dotenv);
3029
assertThatThrownBy(accessor::getServiceBindings)
3130
.isInstanceOf(ServiceBindingAccessException.class)
@@ -42,7 +41,7 @@ void testMissingDotenv() {
4241

4342
@Test
4443
void testMalformedDotenv() {
45-
var dotenv = Dotenv.configure().directory("src/test/resources").filename("malformed.testenv");
44+
var dotenv = Dotenv.configure().filename("malformed.testenv");
4645

4746
// Dotenv should be loaded lazily and not throw before actually loading the file
4847
var accessor = new AiCoreServiceKeyAccessor(dotenv);

0 commit comments

Comments
 (0)