File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 77
88from aura_api_ci import AuraApiCI
99
10- logging .basicConfig (level = logging .INFO )
10+ logging .basicConfig (level = logging .DEBUG )
1111
1212
1313def main () -> None :
1414 client_id = os .environ ["AURA_API_CLIENT_ID" ]
1515 client_secret = os .environ ["AURA_API_CLIENT_SECRET" ]
16- tenant_id = os .environ .get ("TENANT_ID " )
16+ tenant_id = os .environ .get ("AURA_API_TENANT_ID " )
1717 aura_api = AuraApiCI (client_id = client_id , client_secret = client_secret , tenant_id = tenant_id )
1818
1919 MAX_INT = 1000000
2020 instance_name = f"ci-build-{ sys .argv [1 ]} " if len (sys .argv ) > 1 else "ci-instance-" + str (rd .randint (0 , MAX_INT ))
2121
2222 create_result = aura_api .create_instance (instance_name , memory = "1GB" , type = "professional-db" )
2323 instance_id = create_result ["id" ]
24- logging .info ("Creation of database accepted " )
24+ logging .info (f "Creation of database with id ' { instance_id } ' " )
2525
2626 try :
2727 aura_api .check_running (instance_id )
28- logging .info ("Database %s up and running" , instance_id )
28+ logging .info ("Database up and running" )
2929
3030 uri = create_result ["connection_url" ]
3131 username = create_result ["username" ]
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ commands =
7272passenv =
7373 AURA_API_CLIENT_ID
7474 AURA_API_CLIENT_SECRET
75+ AURA_API_TENANT_ID
7576 AURA_ENV
7677 AURA_DB_ADDRESS
7778 AURA_DB_USER
@@ -80,4 +81,4 @@ passenv =
8081deps =
8182 -r {toxinidir}/requirements/dev/notebook-aura-ci.txt
8283commands =
83- python ./scripts/run_notebooks.py sessions
84+ python ./scripts/run_notebooks.py sessions
You can’t perform that action at this time.
0 commit comments