Skip to content

Commit

Permalink
v0.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesfsp committed Apr 17, 2023
1 parent b0316a5 commit 38fbd59
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ jobs:
env:
MONGO_INITDB_DATABASE: api

sftp:
image: atmoz/sftp
env:
SFTP_USERS: foo:pass
SFTP_PASSWORD_AUTH: false
ports:
- "2222:22"
# Can't use this because CI doesn't support "command"...
# sftp:
# image: atmoz/sftp
# env:
# SFTP_USERS: foo:pass
# SFTP_PASSWORD_AUTH: false
# ports:
# - "2222:22"
# command: foo:pass:::upload

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.4.3
Expand Down
1 change: 1 addition & 0 deletions integration.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ AWS_SESSION_TOKEN=""
FILE_DIR="/tmp"
FILE_FILENAME="dal-test.json"

SFTP_SKIP="true"
STFP_ADDR="sftp://sftp:2222"
STFP_USER="foo"
STFP_PASSWORD="pass"
Expand Down
4 changes: 4 additions & 0 deletions sftp/sftp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ func TestNew(t *testing.T) {

t.Setenv("HTTPCLIENT_METRICS_PREFIX", "dal_"+Name+"_test")

if os.Getenv("STFP_SKIP") == "true" {
t.Skip("Skipping test. STFP_SKIP is set to true.")
}

addr := os.Getenv("STFP_ADDR")
user := os.Getenv("STFP_USER")
pwd := os.Getenv("STFP_PASSWORD")
Expand Down

0 comments on commit 38fbd59

Please sign in to comment.