From 5bc1c2de2d2d8a9ac7ce64ba6e33cacea61c54d7 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Thu, 29 Oct 2020 21:50:21 +0100 Subject: [PATCH] add a link to the heml chart Fixes #210 --- docker/README.md | 4 ++++ httpd/httpd_test.go | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/docker/README.md b/docker/README.md index eab2370a..1c1d98f7 100644 --- a/docker/README.md +++ b/docker/README.md @@ -88,3 +88,7 @@ This is the defacto image, it is based on [Debian](https://www.debian.org/), ava This image is based on the popular [Alpine Linux project](https://alpinelinux.org/), available in [the `alpine` official image](https://hub.docker.com/_/alpine). Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general. This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use [musl libc](https://musl.libc.org/) instead of [glibc and friends](https://www.etalabs.net/compare_libcs.html), so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See [this Hacker News comment thread](https://news.ycombinator.com/item?id=10782897) for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images. + +## Helm Chart + +An helm chart is [available](https://artifacthub.io/packages/helm/sagikazarmark/sftpgo). You can find the source code [here](https://github.com/sagikazarmark/helm-charts/tree/master/charts/sftpgo). diff --git a/httpd/httpd_test.go b/httpd/httpd_test.go index 391c38ea..857a92c3 100644 --- a/httpd/httpd_test.go +++ b/httpd/httpd_test.go @@ -2308,6 +2308,13 @@ func TestMetricsMock(t *testing.T) { checkResponseCode(t, http.StatusOK, rr.Code) } +func TestHealthCheck(t *testing.T) { + req, _ := http.NewRequest(http.MethodGet, "/healthz", nil) + rr := executeRequest(req) + checkResponseCode(t, http.StatusOK, rr.Code) + assert.Equal(t, "ok", rr.Body.String()) +} + func TestPProfEndPointMock(t *testing.T) { req, _ := http.NewRequest(http.MethodGet, pprofPath, nil) rr := executeRequest(req)