-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b5e571
commit 872c8ed
Showing
43 changed files
with
2,067 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Dockerfile to create a go-getter container with smbclient dependency that is used by the get_smb.go tests | ||
FROM golang:latest | ||
|
||
COPY . /go-getter | ||
WORKDIR /go-getter | ||
|
||
RUN go mod download | ||
RUN apt-get update | ||
RUN apt-get -y install smbclient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Dockerfile to create a smb server that is used by the get_smb.go tests | ||
FROM dperson/samba | ||
|
||
# Create shared folders | ||
RUN mkdir -p /public && mkdir -p /private | ||
|
||
# Create shared files and directories under the shared folders (data and mnt) | ||
RUN echo 'Hello' > /public/file.txt && mkdir -p /public/subdir && echo 'Hello' > /public/subdir/file.txt | ||
RUN echo 'Hello' > /private/file.txt && mkdir -p /private/subdir && echo 'Hello' > /private/subdir/file.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
start-smb: | ||
@docker-compose build | ||
docker-compose up -d samba | ||
|
||
smbtests-prepare: | ||
@docker-compose build | ||
@docker-compose up -d | ||
@sleep 60 | ||
|
||
smbtests: | ||
@docker cp ./ gogetter:/go-getter/ | ||
@docker exec -it gogetter bash -c "env ACC_SMB_TEST=1 go test -v ./... -run=TestSmb_" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.