-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Outsources Connection Test + added Test for Connection to Socket with…
…out Authentication
- Loading branch information
1 parent
f228c9f
commit fcd878e
Showing
2 changed files
with
21 additions
and
7 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,20 @@ | ||
#ifndef DOCKERXX_TEST_CONNECTION_HPP | ||
#define DOCKERXX_TEST_CONNECTION_HPP | ||
|
||
#include <gtest/gtest.h> | ||
#include <docker.hpp> | ||
#include "credential.hpp" | ||
|
||
TEST(Connection, LocalDaemonPing) { | ||
dockerxx::Docker docker; | ||
|
||
ASSERT_EQ(docker.ping(), "OK"); | ||
} | ||
|
||
TEST(Connection, RemoteDaemonPingNoAuthentication) { | ||
dockerxx::Docker docker = dockerxx::Docker(REMOTE_DAEMON_ADDRESS); | ||
|
||
ASSERT_EQ(docker.ping(), "OK"); | ||
} | ||
|
||
#endif /* DOCKERXX_TEST_CONNECTION_HPP */ |