e2e

package
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package e2e contains end-to-end tests that run the client against the published Serverless SSH CA package.

The tests require Node.js 24 or later and npm, and use the "e2e" build tag so they are not run as part of the unit tests:

go test -tags e2e -race ./internal/e2e/...

The CA is run by the test server from the @andrewheberle/serverless-ssh-ca-testing package, which is released with the CA and installed with it in testdata/ca. The npm dependencies are installed automatically when the tests start, which requires network access.

By default the test server runs the CA under Node.js using the Node.js helpers from the CA package with an in-memory node:sqlite database. Setting E2E_CA_RUNTIME to "workerd" runs it under workerd, the Cloudflare Workers runtime, using the Wrangler test harness with a local D1 database and Secrets Store.

Setting E2E_CA_PACKAGE to an npm install spec, such as the path to a tarball from "npm pack", tests against that CA package instead of the version pinned in testdata/ca/package-lock.json. The package must be version 0.20.0 or later, which added the Node.js helpers. E2E_CA_TESTING_PACKAGE does the same for the test server package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL