Procházet zdrojové kódy

add a link to the heml chart

Fixes #210
Nicola Murino před 4 roky
rodič
revize
5bc1c2de2d
2 změnil soubory, kde provedl 11 přidání a 0 odebrání
  1. 4 0
      docker/README.md
  2. 7 0
      httpd/httpd_test.go

+ 4 - 0
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).

+ 7 - 0
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)