Skip to content

Use REST API to add tables in system tests - #7954

Open
zhangxinyao88 wants to merge 10 commits into
gchq:developfrom
zhangxinyao88:codex/issue-7347-rest-api-add-table
Open

Use REST API to add tables in system tests#7954
zhangxinyao88 wants to merge 10 commits into
gchq:developfrom
zhangxinyao88:codex/issue-7347-rest-api-add-table

Conversation

@zhangxinyao88

Copy link
Copy Markdown
Contributor

Fixes #7347.

AwsSleeperTablesDriver.addTable now sends a SigV4-signed request to POST /sleeper/tables. The add-table test runs against WireMock, while the remaining LocalStack test uses a test-only driver because LocalStack has no API Gateway support.

Testing:

  • AwsSleeperTablesDriverWiremockIT
  • AwsSleeperTablesDriverIT
  • Java reactor package with Checkstyle and SpotBugs (-DskipRust=true)

@zhangxinyao88
zhangxinyao88 marked this pull request as ready for review August 21, 2026 13:00

@patchwork01 patchwork01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks very much, this looks good. We'll need to test this in AWS ourselves before we can approve/merge it. Have you been able to do that yourself?

It should be enough just to run SetupInstanceST. There's some documentation for running system tests here:

https://github.com/gchq/sleeper/blob/develop/docs/development/system-tests.md#acceptance-tests

That has some costs associated with it so we'll understand if you'd rather leave it to us.

@zhangxinyao88

zhangxinyao88 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

Have you been able to do that yourself?

I haven't run SetupInstanceST in AWS, so I'm happy to leave that one with you. The focused WireMock and LocalStack tests pass locally, as does the Java reactor build.

@patchwork01 patchwork01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I had to fix some things but SetupInstanceST is passing now through the REST API. Thanks very much!

Just waiting on a second review.

@patchwork01 patchwork01 added the needs-reviewer Pull requests that need a reviewer to be assigned label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-reviewer Pull requests that need a reviewer to be assigned

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System test REST API add table endpoint

2 participants