-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add go 1.22 and 1.23 in socket tracer tests
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
- Loading branch information
Showing
12 changed files
with
419 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
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
45 changes: 45 additions & 0 deletions
45
.../source_connectors/socket_tracer/testing/container_images/go_1_22_grpc_client_container.h
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,45 @@ | ||
/* | ||
* Copyright 2018- The Pixie Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "src/common/testing/test_environment.h" | ||
#include "src/common/testing/test_utils/container_runner.h" | ||
|
||
namespace px { | ||
namespace stirling { | ||
namespace testing { | ||
|
||
class Go1_22_GRPCClientContainer : public ContainerRunner { | ||
public: | ||
Go1_22_GRPCClientContainer() | ||
: ContainerRunner(::px::testing::BazelRunfilePath(kBazelImageTar), kContainerNamePrefix, | ||
kReadyMessage) {} | ||
|
||
private: | ||
static constexpr std::string_view kBazelImageTar = | ||
"src/stirling/testing/demo_apps/go_grpc_tls_pl/client/golang_1_22_grpc_tls_client.tar"; | ||
static constexpr std::string_view kContainerNamePrefix = "grpc_client"; | ||
static constexpr std::string_view kReadyMessage = ""; | ||
}; | ||
|
||
} // namespace testing | ||
} // namespace stirling | ||
} // namespace px |
45 changes: 45 additions & 0 deletions
45
.../source_connectors/socket_tracer/testing/container_images/go_1_22_grpc_server_container.h
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,45 @@ | ||
/* | ||
* Copyright 2018- The Pixie Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "src/common/testing/test_environment.h" | ||
#include "src/common/testing/test_utils/container_runner.h" | ||
|
||
namespace px { | ||
namespace stirling { | ||
namespace testing { | ||
|
||
class Go1_22_GRPCServerContainer : public ContainerRunner { | ||
public: | ||
Go1_22_GRPCServerContainer() | ||
: ContainerRunner(::px::testing::BazelRunfilePath(kBazelImageTar), kContainerNamePrefix, | ||
kReadyMessage) {} | ||
|
||
private: | ||
static constexpr std::string_view kBazelImageTar = | ||
"src/stirling/testing/demo_apps/go_grpc_tls_pl/server/golang_1_22_grpc_tls_server.tar"; | ||
static constexpr std::string_view kContainerNamePrefix = "grpc_server"; | ||
static constexpr std::string_view kReadyMessage = "Starting HTTP/2 server"; | ||
}; | ||
|
||
} // namespace testing | ||
} // namespace stirling | ||
} // namespace px |
45 changes: 45 additions & 0 deletions
45
...g/source_connectors/socket_tracer/testing/container_images/go_1_22_tls_client_container.h
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,45 @@ | ||
/* | ||
* Copyright 2018- The Pixie Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "src/common/testing/test_environment.h" | ||
#include "src/common/testing/test_utils/container_runner.h" | ||
|
||
namespace px { | ||
namespace stirling { | ||
namespace testing { | ||
|
||
class Go1_22_TLSClientContainer : public ContainerRunner { | ||
public: | ||
Go1_22_TLSClientContainer() | ||
: ContainerRunner(::px::testing::BazelRunfilePath(kBazelImageTar), kContainerNamePrefix, | ||
kReadyMessage) {} | ||
|
||
private: | ||
static constexpr std::string_view kBazelImageTar = | ||
"src/stirling/testing/demo_apps/go_https/client/golang_1_22_https_client.tar"; | ||
static constexpr std::string_view kContainerNamePrefix = "https_client"; | ||
static constexpr std::string_view kReadyMessage = R"({"status":"ok"})"; | ||
}; | ||
|
||
} // namespace testing | ||
} // namespace stirling | ||
} // namespace px |
45 changes: 45 additions & 0 deletions
45
...g/source_connectors/socket_tracer/testing/container_images/go_1_22_tls_server_container.h
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,45 @@ | ||
/* | ||
* Copyright 2018- The Pixie Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "src/common/testing/test_environment.h" | ||
#include "src/common/testing/test_utils/container_runner.h" | ||
|
||
namespace px { | ||
namespace stirling { | ||
namespace testing { | ||
|
||
class Go1_22_TLSServerContainer : public ContainerRunner { | ||
public: | ||
Go1_22_TLSServerContainer() | ||
: ContainerRunner(::px::testing::BazelRunfilePath(kBazelImageTar), kContainerNamePrefix, | ||
kReadyMessage) {} | ||
|
||
private: | ||
static constexpr std::string_view kBazelImageTar = | ||
"src/stirling/testing/demo_apps/go_https/server/golang_1_22_https_server.tar"; | ||
static constexpr std::string_view kContainerNamePrefix = "https_server"; | ||
static constexpr std::string_view kReadyMessage = "Starting HTTPS service"; | ||
}; | ||
|
||
} // namespace testing | ||
} // namespace stirling | ||
} // namespace px |
45 changes: 45 additions & 0 deletions
45
.../source_connectors/socket_tracer/testing/container_images/go_1_23_grpc_client_container.h
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,45 @@ | ||
/* | ||
* Copyright 2018- The Pixie Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "src/common/testing/test_environment.h" | ||
#include "src/common/testing/test_utils/container_runner.h" | ||
|
||
namespace px { | ||
namespace stirling { | ||
namespace testing { | ||
|
||
class Go1_23_GRPCClientContainer : public ContainerRunner { | ||
public: | ||
Go1_23_GRPCClientContainer() | ||
: ContainerRunner(::px::testing::BazelRunfilePath(kBazelImageTar), kContainerNamePrefix, | ||
kReadyMessage) {} | ||
|
||
private: | ||
static constexpr std::string_view kBazelImageTar = | ||
"src/stirling/testing/demo_apps/go_grpc_tls_pl/client/golang_1_23_grpc_tls_client.tar"; | ||
static constexpr std::string_view kContainerNamePrefix = "grpc_client"; | ||
static constexpr std::string_view kReadyMessage = ""; | ||
}; | ||
|
||
} // namespace testing | ||
} // namespace stirling | ||
} // namespace px |
Oops, something went wrong.