Skip to content

Commit

Permalink
Update tests that used tenant_create
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsp committed Jun 25, 2024
1 parent 9b4e505 commit e749975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test_runner/regress/test_pageserver_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def check_client(env: NeonEnv, client: PageserverHttpClient):

# create new tenant and check it is also there
tenant_id = TenantId.generate()
client.tenant_create(
env.pageserver.tenant_create(
tenant_id, generation=env.storage_controller.attach_hook_issue(tenant_id, env.pageserver.id)
)
assert tenant_id in {TenantId(t["id"]) for t in client.tenant_list()}
Expand Down
2 changes: 1 addition & 1 deletion test_runner/regress/test_storage_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def test_storage_controller_onboarding(neon_env_builder: NeonEnvBuilder, warm_up
# Create a tenant directly via pageserver HTTP API, skipping the storage controller
tenant_id = TenantId.generate()
generation = 123
origin_ps.http_client().tenant_create(tenant_id, generation=generation)
origin_ps.tenant_create(tenant_id, generation=generation)

# As if doing a live migration, first configure origin into stale mode
r = origin_ps.http_client().tenant_location_conf(
Expand Down

0 comments on commit e749975

Please sign in to comment.