Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Dec 14, 2023
1 parent 3441d16 commit 760f153
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion .github/docker-images/integration-tests/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ RUN apt-get update && apt-get install -y libcurl4-openssl-dev libssl-dev uuid-de

RUN mkdir -p /home/aws-iot-securetunneling-localproxy/certs && \
cd /home/aws-iot-securetunneling-localproxy/certs && \
wget https://www.amazontrust.com/repository/AmazonRootCA1.pem && \
wget --no-check-certificate https://www.amazontrust.com/repository/AmazonRootCA1.pem && \
openssl rehash ./
###############################################################################
# Copy the binaries from builder stages.
Expand Down
13 changes: 0 additions & 13 deletions integration-tests/source/GTestMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,6 @@ class GlobalEnvironment : public ::testing::Environment
{
public:
~GlobalEnvironment() override {}
// cppcheck-suppress unusedFunction
void SetUp() override
{
Aws::InitAPI(options);
{
Aws::Client::ClientConfiguration clientConfig;
clientConfig.region = REGION;
resourceHandler =
std::shared_ptr<IntegrationTestResourceHandler>(new IntegrationTestResourceHandler(clientConfig));
}
}

// cppcheck-suppress unusedFunction
void SetUp() override
{
Expand All @@ -146,7 +134,6 @@ class GlobalEnvironment : public ::testing::Environment
// cppcheck-suppress unusedFunction
void TearDown() override
{
resourceHandler->CleanUp();
if (CLEAN_UP)
{
printf("Clean up thingName: %s\n", THING_NAME.c_str());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ class TestSecureTunnelingFeature : public ::testing::Test
{
if (!SKIP_ST)
{
ClientConfiguration clientConfig;
resourceHandler =
unique_ptr<IntegrationTestResourceHandler>(new IntegrationTestResourceHandler(clientConfig));
Aws::IoTSecureTunneling::Model::OpenTunnelResult openTunnelResult = resourceHandler->OpenTunnel(THING_NAME);
tunnelId = openTunnelResult.GetTunnelId();
sourceToken = openTunnelResult.GetSourceAccessToken();

Aws::IoTSecureTunneling::Model::OpenTunnelResult openTunnelResult = resourceHandler->OpenTunnel(THING_NAME);
tunnelId = openTunnelResult.GetTunnelId();
Expand Down

0 comments on commit 760f153

Please sign in to comment.