Skip to content

Draft: Start of simple plugin system #16

Draft: Start of simple plugin system

Draft: Start of simple plugin system #16

Workflow file for this run

name: e2e Tests
on: [push, pull_request]
jobs:
jest:
name: e2e tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: ./build-test.sh
working-directory: ./tests/e2e
- run: ./run-test.sh
working-directory: ./tests/e2e
- run: >
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/index.php"}' | grep -q '{"statusCode":200,"headers"'
- run: >
curl -s -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/index.php", "postRequestPlugin": "1"}' | grep -q '{"statusCode":201,"body":"Foo"}'
- run: >
curl -s -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/index.php", "preRequestPlugin": "1"}' | grep -q '{"statusCode":200,"body":"Foo"}'
- run: >
curl -s -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/static.css"}' | grep -q 'background-color: blue'