You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-22 09:02:11 +03:00
Support Podman style of accessing the host network in Cypress tests (#11421)
* Supply '--network slirp4netns:allow_host_loopback=true' argument when launching via Podman This means that the host.containers.internal address will work as a way to access the host machine's network from within the container in Podman. This is eqivalent to '--add-host host.docker.internal:host-gateway' in Docker. * Log the locations of generated files for Cypress tests * Use 'host.containers.internal' to access the host network when using Podman * Support Podman in email Cypress tests too * Restrict code that decides between Docker and Podman to run in Cypress plugins Because it can't run in the browser - it needs to run a command line command to find out. * Move logic for HOST_DOCKER_INTERNAL into cfgDirFromTemplate
This commit is contained in:
@@ -39,15 +39,22 @@ declare global {
|
||||
interface Chainable {
|
||||
/**
|
||||
* Start a homeserver instance with a given config template.
|
||||
*
|
||||
* @param opts: either the template path (within cypress/plugins/{homeserver}docker/template/), or
|
||||
* an options object
|
||||
*
|
||||
* If any of opts.variables has the special value
|
||||
* '{{HOST_DOCKER_INTERNAL}}', it will be replaced by
|
||||
* 'host.docker.interal' if we are on Docker, or
|
||||
* 'host.containers.internal' on Podman.
|
||||
*/
|
||||
startHomeserver(opts: string | StartHomeserverOpts): Chainable<HomeserverInstance>;
|
||||
|
||||
/**
|
||||
* Custom command wrapping task:{homeserver}Stop whilst preventing uncaught exceptions
|
||||
* for if Homeserver stopping races with the app's background sync loop.
|
||||
* @param homeserver the homeserver instance returned by start{Homeserver}
|
||||
*
|
||||
* @param homeserver the homeserver instance returned by {homeserver}Start (e.g. synapseStart).
|
||||
*/
|
||||
stopHomeserver(homeserver: HomeserverInstance): Chainable<AUTWindow>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user