Skip to content

Commit

Permalink
Update control plane API path for getting compute spec. (#5357)
Browse files Browse the repository at this point in the history
We changed the path in the control plane. The old path is still accepted
for compatibility with existing computes, but we'd like to phase it out.
  • Loading branch information
hlinnaka authored Nov 6, 2023
1 parent 09b5954 commit b85fc39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compute_tools/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn get_spec_from_control_plane(
base_uri: &str,
compute_id: &str,
) -> Result<Option<ComputeSpec>> {
let cp_uri = format!("{base_uri}/management/api/v2/computes/{compute_id}/spec");
let cp_uri = format!("{base_uri}/compute/api/v2/computes/{compute_id}/spec");
let jwt: String = match std::env::var("NEON_CONTROL_PLANE_TOKEN") {
Ok(v) => v,
Err(_) => "".to_string(),
Expand Down
2 changes: 1 addition & 1 deletion test_runner/regress/test_ddl_forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, httpserver: HTTPServer, vanilla_pg: VanillaPostgres, host: st
self.dbs: Dict[str, str] = {}
self.roles: Dict[str, str] = {}
self.fail = False
endpoint = "/management/api/v2/roles_and_databases"
endpoint = "/test/roles_and_databases"
ddl_url = f"http://{host}:{port}{endpoint}"
self.pg.configure(
[
Expand Down

1 comment on commit b85fc39

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2426 tests run: 2304 passed, 0 failed, 122 skipped (full report)


Flaky tests (1)

Postgres 16

  • test_timeline_deletion_with_files_stuck_in_upload_queue: release

Code coverage (full report)

  • functions: 53.4% (8695 of 16292 functions)
  • lines: 81.5% (50177 of 61590 lines)

The comment gets automatically updated with the latest test results
b85fc39 at 2023-11-06T08:09:48.593Z :recycle:

Please sign in to comment.