mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 23:20:24 +00:00
CI docker: remove armv7 support
CI is still unreliable if we enable armv7 support
This commit is contained in:
parent
200b1d08c7
commit
46157ebbb6
2 changed files with 12 additions and 12 deletions
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -144,7 +144,7 @@ jobs:
|
|||
context: .
|
||||
builder: ${{ steps.builder.outputs.name }}
|
||||
file: ./${{ steps.info.outputs.dockerfile }}
|
||||
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7
|
||||
platforms: linux/amd64,linux/arm64,linux/ppc64le
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.info.outputs.tags }}
|
||||
build-args: |
|
||||
|
|
|
@ -3509,7 +3509,7 @@ func TestSkipNaturalKeysValidation(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr = executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
form = make(url.Values)
|
||||
form.Set(csrfFormToken, csrfToken)
|
||||
form.Set("code", lastResetCode)
|
||||
|
@ -3602,7 +3602,7 @@ func TestSkipNaturalKeysValidation(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr = executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
form = make(url.Values)
|
||||
form.Set(csrfFormToken, csrfToken)
|
||||
form.Set("code", lastResetCode)
|
||||
|
@ -8210,7 +8210,7 @@ func TestMaxSessions(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr := executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
form = make(url.Values)
|
||||
form.Set(csrfFormToken, csrfToken)
|
||||
form.Set("password", defaultPassword)
|
||||
|
@ -8285,7 +8285,7 @@ func TestSFTPLoopError(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr := executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
form = make(url.Values)
|
||||
form.Set(csrfFormToken, csrfToken)
|
||||
form.Set("password", defaultPassword)
|
||||
|
@ -14325,7 +14325,7 @@ func TestAdminForgotPassword(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr = executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
|
||||
form = make(url.Values)
|
||||
req, err = http.NewRequest(http.MethodPost, webAdminResetPwdPath, bytes.NewBuffer([]byte(form.Encode())))
|
||||
|
@ -14363,7 +14363,7 @@ func TestAdminForgotPassword(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr = executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
|
||||
// not working smtp server
|
||||
smtpCfg = smtp.Config{
|
||||
|
@ -14477,7 +14477,7 @@ func TestUserForgotPassword(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr = executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
// no csrf token
|
||||
form = make(url.Values)
|
||||
req, err = http.NewRequest(http.MethodPost, webClientResetPwdPath, bytes.NewBuffer([]byte(form.Encode())))
|
||||
|
@ -14518,7 +14518,7 @@ func TestUserForgotPassword(t *testing.T) {
|
|||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
rr = executeRequest(req)
|
||||
assert.Equal(t, http.StatusFound, rr.Code)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
|
||||
smtpCfg = smtp.Config{}
|
||||
err = smtpCfg.Initialize("..")
|
||||
|
@ -14582,7 +14582,7 @@ func TestAPIForgotPassword(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
rr = executeRequest(req)
|
||||
checkResponseCode(t, http.StatusOK, rr)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
|
||||
// invalid JSON
|
||||
req, err = http.NewRequest(http.MethodPost, path.Join(adminPath, altAdminUsername, "/reset-password"), bytes.NewBuffer([]byte(`{`)))
|
||||
|
@ -14639,7 +14639,7 @@ func TestAPIForgotPassword(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
rr = executeRequest(req)
|
||||
checkResponseCode(t, http.StatusOK, rr)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
|
||||
// invalid JSON
|
||||
req, err = http.NewRequest(http.MethodPost, path.Join(userPath, defaultUsername, "/reset-password"), bytes.NewBuffer([]byte(`{`)))
|
||||
|
@ -14699,7 +14699,7 @@ func TestAPIForgotPassword(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
rr = executeRequest(req)
|
||||
checkResponseCode(t, http.StatusOK, rr)
|
||||
assert.Greater(t, len(lastResetCode), 20)
|
||||
assert.GreaterOrEqual(t, len(lastResetCode), 20)
|
||||
|
||||
smtpCfg = smtp.Config{}
|
||||
err = smtpCfg.Initialize("..")
|
||||
|
|
Loading…
Reference in a new issue