Skip to content

Commit a6a996d

Browse files
committed
fix(tests): use DEFAULT profile instead of API_KEY_AUTH in integration tests
1 parent d520316 commit a6a996d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_oci_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ def test_config_file_auth(self):
225225
if not compartment_id:
226226
self.skipTest("OCI_COMPARTMENT_ID not set")
227227

228-
# Use API_KEY_AUTH profile (DEFAULT may be session-based)
229-
profile = os.getenv("OCI_PROFILE", "API_KEY_AUTH")
228+
profile = os.getenv("OCI_PROFILE", "DEFAULT")
230229
client = cohere.OciClientV2(
231230
oci_region="us-chicago-1",
232231
oci_compartment_id=compartment_id,
@@ -284,7 +283,7 @@ def test_invalid_model(self):
284283
if not compartment_id:
285284
self.skipTest("OCI_COMPARTMENT_ID not set")
286285

287-
profile = os.getenv("OCI_PROFILE", "API_KEY_AUTH")
286+
profile = os.getenv("OCI_PROFILE", "DEFAULT")
288287
client = cohere.OciClientV2(
289288
oci_region="us-chicago-1",
290289
oci_compartment_id=compartment_id,

0 commit comments

Comments
 (0)