Skip to content

Commit

Permalink
Added integration tests for the embedded DERP server
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont committed Mar 5, 2022
1 parent 88378c2 commit e9eb90f
Show file tree
Hide file tree
Showing 5 changed files with 412 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// development
integration_test.go
integration_test/
!integration_test/etc_embedded_derp/tls/server.crt

Dockerfile*
docker-compose*
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile.tailscale
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ RUN apt-get update \
&& curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | apt-key add - \
&& curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list \
&& apt-get update \
&& apt-get install -y tailscale=${TAILSCALE_VERSION} dnsutils \
&& apt-get install -y ca-certificates tailscale=${TAILSCALE_VERSION} dnsutils \
&& rm -rf /var/lib/apt/lists/*

ADD integration_test/etc_embedded_derp/tls/server.crt /usr/local/share/ca-certificates/
RUN chmod 644 /usr/local/share/ca-certificates/server.crt

RUN update-ca-certificates
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ test_integration:
test_integration_cli:
go test -tags integration -v integration_cli_test.go integration_common_test.go

test_integration_derp:
go test -tags integration -v integration_embedded_derp_test.go integration_common_test.go

coverprofile_func:
go tool cover -func=coverage.out

Expand Down
Loading

0 comments on commit e9eb90f

Please sign in to comment.