diff options
author | Valery Piashchynski <[email protected]> | 2021-09-16 21:31:34 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-09-16 21:31:34 +0300 |
commit | 0a843b0d812d4421025b323a637e0df39d805f75 (patch) | |
tree | e99227af4518cd1584fd6995646d077f1ed688c1 /tests | |
parent | 44d0b505031e8f042783792883021f21fcba5f72 (diff) | |
parent | 337d292dd2d6ff0a555098b1970d8194d8df8bc2 (diff) |
Merge remote-tracking branch 'origin' into feat/plugins-refactor
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/env/Dockerfile-beanstalkd.yaml | 14 | ||||
-rw-r--r-- | tests/env/Dockerfile-elastic-mq.yaml | 9 | ||||
-rw-r--r-- | tests/env/custom.conf | 8 | ||||
-rw-r--r-- | tests/env/docker-compose.yaml | 44 | ||||
-rw-r--r-- | tests/psr-worker-bench.php | 2 | ||||
-rwxr-xr-x | tests/script.sh | 2 |
6 files changed, 4 insertions, 75 deletions
diff --git a/tests/env/Dockerfile-beanstalkd.yaml b/tests/env/Dockerfile-beanstalkd.yaml deleted file mode 100644 index 7b36f8d3..00000000 --- a/tests/env/Dockerfile-beanstalkd.yaml +++ /dev/null @@ -1,14 +0,0 @@ -FROM ubuntu:latest - -ARG DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && apt-get install -y curl build-essential pkg-config - -RUN curl -sL https://github.com/kr/beanstalkd/archive/v1.12.tar.gz | tar xvz -C /tmp - -WORKDIR /tmp/beanstalkd-1.12 -RUN make -RUN cp beanstalkd /usr/bin - -EXPOSE 11300 -ENTRYPOINT ["/usr/bin/beanstalkd"] diff --git a/tests/env/Dockerfile-elastic-mq.yaml b/tests/env/Dockerfile-elastic-mq.yaml deleted file mode 100644 index e1513450..00000000 --- a/tests/env/Dockerfile-elastic-mq.yaml +++ /dev/null @@ -1,9 +0,0 @@ -FROM openjdk:16 - -ADD https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-1.2.0.jar / -COPY custom.conf / -ENTRYPOINT ["java", "-Dconfig.file=custom.conf", "-jar", "/elasticmq-server-1.2.0.jar"] - -EXPOSE 9324 - -CMD ["-help"] diff --git a/tests/env/custom.conf b/tests/env/custom.conf deleted file mode 100644 index 9be7730e..00000000 --- a/tests/env/custom.conf +++ /dev/null @@ -1,8 +0,0 @@ -include classpath("application.conf") - -node-address { - protocol = http - host = "*" - port = 9324 - context-path = "" -} diff --git a/tests/env/docker-compose.yaml b/tests/env/docker-compose.yaml deleted file mode 100644 index d93bc5af..00000000 --- a/tests/env/docker-compose.yaml +++ /dev/null @@ -1,44 +0,0 @@ -version: '3' - -services: - memcached: - image: memcached:latest - ports: - - "127.0.0.1:11211:11211" - redis: - image: redis:6 - ports: - - "127.0.0.1:6379:6379" - redis2: - image: redis:6 - ports: - - "127.0.0.1:6378:6379" - - toxicproxy: - image: shopify/toxiproxy - network_mode: "host" - - beanstalk: - build: - context: . - dockerfile: Dockerfile-beanstalkd.yaml - ports: - - "127.0.0.1:11300:11300" - - sqs: - build: - context: . - dockerfile: Dockerfile-elastic-mq.yaml - ports: - - "127.0.0.1:9324:9324" - - rabbitmq: - image: rabbitmq:3-management - ports: - - "127.0.0.1:15672:15672" - - "127.0.0.1:5672:5672" - - prometheus: - image: prom/prometheus - ports: - - "9090:9090" diff --git a/tests/psr-worker-bench.php b/tests/psr-worker-bench.php index 80fc435c..e809f380 100644 --- a/tests/psr-worker-bench.php +++ b/tests/psr-worker-bench.php @@ -1,7 +1,9 @@ <?php + /** * @var Goridge\RelayInterface $relay */ + use Spiral\Goridge; use Spiral\RoadRunner; diff --git a/tests/script.sh b/tests/script.sh new file mode 100755 index 00000000..746fb768 --- /dev/null +++ b/tests/script.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +php ../../../tests/client.php echo pipes
\ No newline at end of file |