File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed
container/root/tests/nginx Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,14 @@ group:
11
11
command :
12
12
nginx -v :
13
13
exit-status : 0
14
- stderr : []
14
+ stderr : ['nginx/1.']
15
+ stdout : ['!/./']
15
16
nginx -t :
16
17
exit-status : 0
17
- stderr : []
18
+ stderr : ['is ok']
19
+ stdout : ['!/./']
18
20
19
21
file :
20
- /etc/nginx/sites-available/default :
21
- exists : true
22
- contains :
23
- - listen 8080;
24
- - root /var/www/html;
25
- - index index.html index.htm;
26
- - client_max_body_size 1m;
27
- - try_files $uri $uri/ =404;
28
- - location ~ /\. {
29
- - access_log off;
30
- - log_not_found off;
31
- - deny all;
32
22
/etc/nginx/nginx.conf :
33
23
exists : true
34
24
contains :
51
41
- ' /#{0}tcp_nodelay\s*on;/'
52
42
- ' /#{0}tcp_nopush\s*on;/'
53
43
- ' /#{0}include\s*mime.types;/'
54
- - ' /#{0}default_type application/octet-stream;/'
55
- - ' /#{0}access_log /dev/stdout main;/'
44
+ - ' /#{0}default_type\s* application/octet-stream;/'
45
+ - ' /#{0}access_log\s* /dev/stdout\s* main;/'
56
46
- ' /#{0}sendfile\s*on;/'
57
47
- ' /#{0}keepalive_timeout\s*\d+;/'
58
48
- ' /#{0}client_body_temp_path\s*/tmp/.nginx/client_body;/'
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ ubuntu:
12
12
SERVER_LARGE_CLIENT_HEADER_BUFFERS : 8 16k
13
13
SERVER_CLIENT_BODY_BUFFER_SIZE : 128k
14
14
volumes :
15
- - ./container/root/goss. nginx. yaml:/goss. nginx.yaml
15
+ - ./container/root/tests/ nginx/base.goss. yaml:/tests/ nginx/base.goss .yaml
16
16
- ./container/root/var/www/html:/var/www/html
17
17
alpine :
18
18
build : .
@@ -25,3 +25,6 @@ alpine:
25
25
S6_KILL_FINISH_MAXTIME : 1
26
26
S6_KILL_GRACETIME : 1
27
27
SERVER_WORKER_PROCESSES : 1
28
+ volumes :
29
+ - ./container/root/tests/nginx/base.goss.yaml:/tests/nginx/base.goss.yaml
30
+ - ./container/root/var/www/html:/var/www/html
You can’t perform that action at this time.
0 commit comments