Skip to content

Commit

Permalink
use env vars in postgres url
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Apr 16, 2024
1 parent 203fc26 commit 585e6df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stix2/test/v21/test_datastore_relational_db.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import json
import os

import stix2
from stix2.datastore.relational_db.relational_db import RelationalDBStore
import stix2.properties

store = RelationalDBStore(
"postgresql://0.0.0.0:5432/postgres",
f"postgresql://{os.environ['POSTGRES_USER']}:{os.environ['POSTGRES_PASSWORD']}@0.0.0.0:5432/postgres",
True,
None,
False,
Expand Down

0 comments on commit 585e6df

Please sign in to comment.