[cpp-sp] branch main updated: Yank test that's impossible on most Boost versions.

Scott Cantor cantor.2 at osu.edu
Mon Oct 20 16:55:14 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=7b1fb4f4a86b82b32da90fc99e198cf7cbd384de

The following commit(s) were added to refs/heads/main by this push:
     new 7b1fb4f4 Yank test that's impossible on most Boost versions.
7b1fb4f4 is described below

commit 7b1fb4f4a86b82b32da90fc99e198cf7cbd384de
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Oct 20 12:55:10 2025 -0400

    Yank test that's impossible on most Boost versions.
---
 Projects/vc22/Tests.vcxproj                  |  10 +--
 Projects/vc22/Tests.vcxproj.filters          |   5 +-
 tests/Makefile.am                            |   1 -
 tests/remoting/impl/RemotingServiceTests.cpp | 101 ---------------------------
 4 files changed, 2 insertions(+), 115 deletions(-)

diff --git a/Projects/vc22/Tests.vcxproj b/Projects/vc22/Tests.vcxproj
index e7adbc1d..a56e8c7d 100644
--- a/Projects/vc22/Tests.vcxproj
+++ b/Projects/vc22/Tests.vcxproj
@@ -32,14 +32,6 @@
     <ClCompile Include="..\..\tests\attribute\impl\DefaultAttributeConfigurationTests.cpp" />
     <ClCompile Include="..\..\tests\impl\XMLAccessControlTests.cpp" />
     <ClCompile Include="..\..\tests\impl\XMLRequestMapperTests.cpp" />
-    <ClCompile Include="..\..\tests\remoting\impl\RemotingServiceTests.cpp">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
     <ClCompile Include="..\..\tests\remoting\impl\SecretSourceTests.cpp">
       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS=1;SHIBSP_LITE;WIN32;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -329,4 +321,4 @@
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
diff --git a/Projects/vc22/Tests.vcxproj.filters b/Projects/vc22/Tests.vcxproj.filters
index 2aabfd68..bf118c5e 100644
--- a/Projects/vc22/Tests.vcxproj.filters
+++ b/Projects/vc22/Tests.vcxproj.filters
@@ -93,9 +93,6 @@
     <ClCompile Include="..\..\tests\util\ReloadableXMLFileTests.cpp">
       <Filter>Source Files\util</Filter>
     </ClCompile>
-    <ClCompile Include="..\..\tests\remoting\impl\RemotingServiceTests.cpp">
-      <Filter>Source Files\Remoting</Filter>
-    </ClCompile>
     <ClCompile Include="..\..\tests\remoting\impl\SecretSourceTests.cpp">
       <Filter>Source Files\Remoting</Filter>
     </ClCompile>
@@ -285,4 +282,4 @@
       <Filter>Data\attribute\impl</Filter>
     </None>
   </ItemGroup>
-</Project>
\ No newline at end of file
+</Project>
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ea87d224..4fde6654 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -19,7 +19,6 @@ shibsptest_SOURCES = \
 	impl/XMLAccessControlTests.cpp \
 	impl/XMLRequestMapperTests.cpp \
 	platform/iis/ModuleConfigTests.cpp \
-	remoting/impl/RemotingServiceTests.cpp \
 	remoting/impl/SecretSourceTests.cpp \
 	session/impl/MemorySessionCacheTests.cpp \
 	session/impl/FilesystemSessionCacheTests.cpp \
diff --git a/tests/remoting/impl/RemotingServiceTests.cpp b/tests/remoting/impl/RemotingServiceTests.cpp
deleted file mode 100644
index 214500ea..00000000
--- a/tests/remoting/impl/RemotingServiceTests.cpp
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * 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.
- */
-
-/**
- * remoting/impl/RemotingServiceTests.cpp
- *
- * Unit tests for RemotingService implementations.
- */
-
-#include "Agent.h"
-#include "AgentConfig.h"
-#include "exceptions.h"
-#include "remoting/RemotingService.h"
-
-#include <memory>
-#include <string>
-#include <boost/test/unit_test.hpp>
-
-
-using namespace shibsp;
-using namespace std;
-
-#if defined (_MSC_VER)
-#define setenv(name, value, overwrite) _putenv_s(name, value)
-#define unsetenv(name) _putenv_s(name, "")
-#endif
-
-#define DATA_PATH "./data/remoting/impl/"
-
-namespace {
-
-#ifdef BOOST_FIXTURE_TEST_CASE_WITH_DECOR
-// Used as test decorator for any tests requiring testbed.
-struct testbedRunning {
-    boost::test_tools::assertion_result operator()(boost::unit_test::test_unit_id) {
-        const char* var = getenv("SHIBSP_TESTBED_RUNNING");
-        return var && *var == '1';
-    }
-};
-#endif
-
-struct RemotingFixture
-{
-    RemotingFixture() : data_path(DATA_PATH) {
-        setenv("SHIBSP_AGENT_SECRET", "foo", true);
-        AgentConfig::getConfig().init(nullptr, (data_path + "./agent.ini").c_str(), true);
-    }
-    ~RemotingFixture() {
-        AgentConfig::getConfig().term();
-        unsetenv("SHIBSP_AGENT_SECRET");
-    }
-
-    string data_path;
-};
-
-/////////////
-
-#ifdef BOOST_FIXTURE_TEST_CASE_WITH_DECOR
-
-BOOST_FIXTURE_TEST_CASE(RemotingService_startup, RemotingFixture)
-{
-    AgentConfig::getConfig().getAgent().getRemotingService();
-}
-
-BOOST_FIXTURE_TEST_CASE(RemotingService_wrong_path, RemotingFixture, * boost::unit_test::precondition(testbedRunning()))
-{
-    const RemotingService* service = AgentConfig::getConfig().getAgent().getRemotingService();
-    DDF input("/missing");
-    DDFJanitor injanitor(input);
-    BOOST_CHECK_THROW(service->send(input), RemotingException);
-}
-
-BOOST_FIXTURE_TEST_CASE(RemotingService_ping, RemotingFixture, * boost::unit_test::precondition(testbedRunning()))
-{
-    const RemotingService* service = AgentConfig::getConfig().getAgent().getRemotingService();
-    DDF input("ping");
-    DDFJanitor injanitor(input);
-
-    DDF output = service->send(input);
-    DDFJanitor outjanitor(output);
-    BOOST_CHECK_LE(output.getmember("epoch").longinteger(), time(nullptr));
-
-    DDF output2 = service->send(input);
-    DDFJanitor outjanitor2(output2);
-    BOOST_CHECK_LE(output2.getmember("epoch").longinteger(), time(nullptr));
-}
-
-#endif
-
-};
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list