Skip to content

Commit

Permalink
Add tunnel field to splitgraph.yml external object
Browse files Browse the repository at this point in the history
  • Loading branch information
neumark committed Aug 4, 2022
1 parent 9499135 commit c60b233
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions splitgraph/cloud/project/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class External(BaseModel):
tables: Dict[str, Table]
is_live: bool = True
schedule: Optional[IngestionSchedule]
tunnel: bool = False


class Source(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions splitgraph/commandline/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ def load_c(
repository.external,
credential_map=credential_map,
initial_private=initial_private,
tunnel=repository.external.tunnel,
)
external_repositories.append(external_repository)
rest_client.bulk_upsert_external(
Expand Down
3 changes: 3 additions & 0 deletions test/splitgraph/commandline/http_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def cb(request, uri, response_headers):
},
"schedule": None,
"initial_private": initial_private,
"tunnel": False,
},
{
"namespace": "someuser",
Expand All @@ -434,6 +435,7 @@ def cb(request, uri, response_headers):
"credential_id": "123e4567-e89b-12d3-a456-426655440000",
"schedule": None,
"initial_private": initial_private,
"tunnel": False,
},
{
"namespace": "someuser",
Expand All @@ -445,6 +447,7 @@ def cb(request, uri, response_headers):
"credential_id": "00000000-0000-0000-0000-000000000000",
"schedule": None,
"initial_private": initial_private,
"tunnel": False,
},
]

Expand Down

0 comments on commit c60b233

Please sign in to comment.