This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.
You can find the published source code at github.com/wireapp.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
End-to-end Test Service (ETS) for Wire's test automation suite.
First, make sure you have all dependencies installed by running:
yarn
Then run the server with:
yarn start:dev
The ETS will now be running locally and is ready to process requests.
yarn test
yarn
yarn dist
yarn start
To create a release, checkout the "dev" branch and execute yarn release:patch
, yarn release:minor
or yarn release:major
. Afterwards, create a PR against the "main" branch with the latest changes.
- Swagger UI is available at
/swagger-ui
when running the ETS, i.e. http://localhost:21080/swagger-ui/
- Add endpoint description in
swagger.json
- Add business logic in
InstanceService.ts
- Add endpoint implementation in
conversationRoutes.ts
The following ETS deployments are reachable via Wire's VPN:
- Create an instance (POST
/instance
) - Use the received
instanceId
to use resources likesendText
Example payload to create an instance
{
"backend": "staging",
"email": "you@email.com",
"password": "secret",
"deviceClass": "desktop",
"name": "Some Instance Name"
}
Example payload to start a poll
{
"buttons": ["A", "B"],
"text": "Do you like A or B?",
"conversationId": "b894b2e4-e862-4b55-a97e-56ea3690be20"
}
{
"code": "400",
"error": "Payload is not valid JSON data."
}
{
"code": "404",
"error": "<string>"
}
{
"code": "422",
"error": "<string>"
}
{
"code": "500",
"error": "<string>",
"stack": "string"
}