Skip to content

Commit

Permalink
Adopt tempesta-tech.com in LXC container test (#602)
Browse files Browse the repository at this point in the history
* Add LXC testing backend

* Add LXC container healthcheck

* Remove unused variables

* Remove reference to another branch

* Add LXC server factory

* Remove unused code

* LXC pretest snapshot

* Semi-working site test

* rework LXCServer:
- subprocess changed to `node.run_cmd`;
- the waiting moved from run_start to wait_for_connection;
- removed all optional functions for this class. They are not necessary, but it makes the code more difficult. We don't plan to create other containers or multiple ports.

* fix and add tests for tempesta-tech with LXCServer, update default test configs

* remove docker and tests using docker.

* add tempesta-tech as git submodule

* remove docker-compose backend, update README.

* typo fix and update tests_disabled_* files

* change link for tempesta-tech module to `https` because currently CI uses creds with login/password

* change IP for `cache_purge_acl` because by default the client IP in test framework is 127.0.0.2

* add test case
- add a new post page;
- add a new comment to this page;
- update cache;
- cache the comment is present on this page;

* fix setup.sh

* typo fix and update comment

---------

Co-authored-by: Roman <rb@tempesta-tech.com>
  • Loading branch information
mbabitski-t and RomanBelozerov committed Jun 20, 2024
1 parent df8a0e7 commit b7351d0
Show file tree
Hide file tree
Showing 42 changed files with 791 additions and 1,129 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tempesta-tech.com"]
path = tempesta-tech.com
url = https://github.com/tempesta-tech/tempesta-tech.com.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ as root:
## Requirements

- Host for testing framework: `python3`, `wrk`, `ab`, `nghttp2`, `h2spec`,
`curl`, `h2load`, `tls-perf`, `netstat`, `docker.io`, `nginx`, web content
`curl`, `h2load`, `tls-perf`, `netstat`, `lxc`, `nginx`, web content
directory accessible by nginx, nginx should not be running before the tests start.
See Python libraries in `requirements.txt`
- All hosts except previous one: `sftp-server`
Expand Down
96 changes: 0 additions & 96 deletions docker/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docker/httpbin/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions docker/python/.dockerignore

This file was deleted.

10 changes: 0 additions & 10 deletions docker/python/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions docker/python/hello.py

This file was deleted.

1 change: 0 additions & 1 deletion docker/python/requirements.txt

This file was deleted.

56 changes: 0 additions & 56 deletions docker/wordpress/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions docker/wordpress/composer.json

This file was deleted.

121 changes: 0 additions & 121 deletions docker/wordpress/fixtures.yml

This file was deleted.

Empty file removed docker/wordpress/html/empty.txt
Empty file.
1 change: 0 additions & 1 deletion docker/wordpress/html/generated.php

This file was deleted.

1 change: 0 additions & 1 deletion docker/wordpress/html/hello.txt

This file was deleted.

10 changes: 0 additions & 10 deletions docker/wordpress/html/images.html

This file was deleted.

19 changes: 0 additions & 19 deletions docker/wordpress/html/images.php

This file was deleted.

1 change: 0 additions & 1 deletion docker/wordpress/html/info.php

This file was deleted.

6 changes: 0 additions & 6 deletions docker/wordpress/tt-docker-entrypoint.sh

This file was deleted.

Loading

0 comments on commit b7351d0

Please sign in to comment.