Skip to content

fix(organizations,server): route the AWSOrganizationsV20161128 target prefix (#610) - #611

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/organizations-target-prefix-610
Aug 9, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/organizations-target-prefix-610

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Found by the live-server gate: aws organizations list-roots against
substrate server answered service not emulated: awsorganizationsv20161128,
so the whole plugin was unreachable from any SDK despite being registered and
unit-tested.

extractServiceFromTarget strips a leading Amazon and a version suffix that
follows an underscore. AWSOrganizationsV20161128 has neither, so the name
never reduces and no registry entry matches. One alias fixes it.

The regression test goes through ParseAWSRequest rather than constructing an
AWSRequest — that is exactly why the existing Organizations tests could not
catch this, and it mirrors the #561 test for the same reason.

Verified against a live server with AWS_MAX_ATTEMPTS=1: the full vending
journey (stable root, OU create, async create → poll → move, the duplicate-move
refusal, ListParents, the seeded async failure, the depth limit) now works
through the AWS CLI.

Closes #610

… prefix

Organizations' targetPrefix carries its API version inside the prefix rather
than after an underscore, so extractServiceFromTarget's generic version strip
never fired and the name never reduced to "organizations". The plugin was
registered and unit-tested but unreachable from any SDK: every call answered
"service not emulated: awsorganizationsv20161128".

Same class as #561. The in-process tests pass either way because they set
AWSRequest.Service directly instead of going through the parser, so the
regression test asserts three real target values through ParseAWSRequest.

Closes #610
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 0f32be9 into main Aug 9, 2026
13 checks passed
@scttfrdmn
scttfrdmn deleted the fix/organizations-target-prefix-610 branch August 9, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

organizations: every SDK call answers "service not emulated" — the X-Amz-Target prefix has no alias

1 participant