Skip to content

PIN-19784 | Update PNS spec to support region field for Cross Region Peering#2008

Open
saritathakur0 wants to merge 12 commits into
acquia:mainfrom
saritathakur0:PIN-19784
Open

PIN-19784 | Update PNS spec to support region field for Cross Region Peering#2008
saritathakur0 wants to merge 12 commits into
acquia:mainfrom
saritathakur0:PIN-19784

Conversation

@saritathakur0

@saritathakur0 saritathakur0 commented Jun 21, 2026

Copy link
Copy Markdown

Copilot AI review requested due to automatic review settings June 21, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

saritathakur0 and others added 3 commits July 3, 2026 11:34
TestBase::getPathMethodCodeFromSpec() was iterating over all keys in
each path object (including 'servers' keys added in 4c6a038) and
accessing $endpoint['operationId'] without checking if the key was
an HTTP method. Added a guard to skip non-method keys and entries
without operationId.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Restore root-level 'servers' key to acquia-spec.json (removed
  when path-level servers were introduced in 4c6a038)
- Add missing endpoints back to spec: /v3/environments/{environmentId}
  (operationId: environment_by_id) and /codebases/{codebaseId}/sites
  (codebases:sites-list) which were dropped in the spec update
- Fix timestamp formats: restore .000Z suffix on backup/environment
  timestamps (2012-05-15T12:00:00Z -> 2012-05-15T12:00:00.000Z) and
  SSH key created_at (+00:00 -> .000Z) to match test expectations
- Update from/to parameter examples to full ISO 8601 format
- Update testApiCommandDefinitionRequestBody expected usage string
  to include new 'region' field in vpc_peers (added in 4c6a038)
- Update testBuildApiCommandConfiguresResponsesServersAndHelp to use
  api:codebases:sites-list as the pre-release command example

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.49%. Comparing base (25a3ea8) to head (2084638).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2008   +/-   ##
=========================================
  Coverage     92.49%   92.49%           
  Complexity     1991     1991           
=========================================
  Files           123      123           
  Lines          7232     7232           
=========================================
  Hits           6689     6689           
  Misses          543      543           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Try the dev build for this PR: https://acquia-cli.s3.amazonaws.com/build/pr/2008/acli.phar

curl -OL https://acquia-cli.s3.amazonaws.com/build/pr/2008/acli.phar
chmod +x acli.phar

saritathakur0 and others added 5 commits July 3, 2026 12:11
The GET /codebases/{codebaseId}/applications endpoint (operationId:
codebase_applications, x-cli-name: codebases:applications:list) was
accidentally dropped during the spec update in 4c6a038. Restoring it
allows testBuildApiCommandConfiguresResponsesServersAndHelp to use
the original command name without any test code change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The following endpoint groups were removed and are now restored:
- site-instances:* (13 endpoints) - database, backups, domains, files, find, dissociate
- sites:* (6 endpoints) - CRUD, list, environments-list
- codebases:environments-list/find, codebases:create
- environments:sites-list, environments:site-instances:create
- environments-v3:update, environments-v3:clear-caches
- subscriptions:sites-list

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants