Skip to content

@W-2068341 adding e2e tests for slas,jobs,webdav,sites,code#71

Merged
charithaT07 merged 6 commits intomainfrom
W-20683416-E2E-Tests
Jan 29, 2026
Merged

@W-2068341 adding e2e tests for slas,jobs,webdav,sites,code#71
charithaT07 merged 6 commits intomainfrom
W-20683416-E2E-Tests

Conversation

@charithaT07
Copy link
Copy Markdown
Collaborator

@charithaT07 charithaT07 commented Jan 23, 2026

Summary

Brief description of what this PR does.

This PR adds end-to-end (E2E) test coverage for key B2C CLI workflows using real CLI commands and real sandbox infrastructure.

What’s covered

  • Auth & Tokens
    Token generation, default/custom scopes, and basic failure cases

  • ODS Lifecycle
    Create, list, deploy, check status, stop/start/restart, and delete sandboxes
    Includes basic error and auth scenarios

  • Jobs
    Run jobs, wait for completion, search executions, and import/export flows

  • Sites
    List sites, import site archives, sequential imports, and graceful failures

  • SLAS
    Client create, list, get, update, delete, plus invalid input cases

  • WebDAV
    Upload/download/delete files, directory operations, zip/unzip flows

Test approach

  • These are true E2E tests no mocks, real APIs, real sandboxes
  • Tests assert CLI JSON output and observable side effects
  • Tests are gated by environment variables so they don’t run with unit tests
  • A shared sandbox is used when available so multiple E2E suites can run against the same environment, reducing sandbox creation time and cost
  • Tests automatically fall back to creating their own sandbox when shared mode isn’t enabled

Testing

  • Tests pass (pnpm test)
  • Code is formatted (pnpm run format)

@charithaT07 charithaT07 marked this pull request as ready for review January 27, 2026 14:26
@charithaT07 charithaT07 requested a review from clavery as a code owner January 27, 2026 14:26
Copy link
Copy Markdown
Collaborator

@clavery clavery left a comment

Choose a reason for hiding this comment

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

approved if these run successfully locally

@charithaT07 charithaT07 merged commit 13caadc into main Jan 29, 2026
3 checks passed
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.

2 participants