File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ ARG UID=991
43
43
ARG GID=991
44
44
45
45
RUN apk add --no-cache \
46
+ 'curl>=8' \
46
47
'gcompat>=0' \
47
48
'tzdata>=2024' \
48
49
'libxml2>=2' \
Original file line number Diff line number Diff line change @@ -51,6 +51,22 @@ task :test do
51
51
Output . describe 'Listing docker containers matching html2rss-web-test filter'
52
52
sh 'docker ps -a --filter name=html2rss-web-test'
53
53
54
+ Output . describe 'Expect health status to be healthy'
55
+ health_status = nil
56
+ 10 . times do
57
+ health_status = `docker inspect --format='{{.State.Health.Status}}' html2rss-web-test` . strip
58
+
59
+ if health_status == 'healthy'
60
+ puts '✅ Health status reports `healthy`'
61
+ break
62
+ else
63
+ putc '.'
64
+ sleep 1
65
+ end
66
+ end
67
+
68
+ raise "❌ Health status reports `#{ health_status } `" if health_status != 'healthy'
69
+
54
70
Output . describe 'Generating feed from a html2rss-configs config'
55
71
sh 'curl -f http://127.0.0.1:3000/dfs.de/pressemitteilungen.rss || exit 1'
56
72
72
88
sh 'docker stop html2rss-web-test'
73
89
sh 'docker rm html2rss-web-test'
74
90
end
91
+
92
+ exit 1 if $ERROR_INFO
75
93
end
You can’t perform that action at this time.
0 commit comments