Skip to content

add proxy server as docker service #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ language: cpp
dist: trusty
sudo: required
group: beta

services:
- docker

compiler:
- gcc
- clang
script:
- ./autogen.sh && ./configure --enable-coverage
- make ci

before_install:
- docker pull chrisdaish/squid
- docker run -d -p 3128:3128 chrisdaish/squid
- docker ps -a
install:
- gem install fpm
- gem install package_cloud
Expand Down
4 changes: 2 additions & 2 deletions test/test_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@ TEST_F(ConnectionTest, TestNoSignal)

TEST_F(ConnectionTest, TestProxy)
{
conn->SetProxy("37.187.100.23:3128");
conn->SetProxy("127.0.0.1:3128");
RestClient::Response res = conn->get("/get");
EXPECT_EQ(200, res.code);
}

TEST_F(ConnectionTest, TestProxyAddressPrefixed)
{
conn->SetProxy("https://37.187.100.23:3128");
conn->SetProxy("https://127.0.0.1:3128");
RestClient::Response res = conn->get("/get");
EXPECT_EQ(200, res.code);
}
Expand Down