// // Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”) // All rights reserved. // // 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. // // Ensure that gtest is the first header otherwise Windows raises an error #include // Keep this comment to keep gtest.h above. (clang-format off/on is not working here!) #include #include #include #include #include #include #include #include "adapter/adapter.hpp" #include "agent_test_helper.hpp" #include "observation/observation.hpp" #include "pipeline/deliver.hpp" #include "pipeline/delta_filter.hpp" #include "pipeline/duplicate_filter.hpp" #include "pipeline/pipeline.hpp" #include "pipeline/shdr_token_mapper.hpp" using namespace mtconnect; using namespace mtconnect::adapter; using namespace mtconnect::pipeline; using namespace mtconnect::observation; using namespace std; using namespace std::literals; using namespace std::chrono_literals; using namespace mtconnect::rest_sink; // main int main(int argc, char *argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } class PythonTransformTest : public testing::Test { protected: void SetUp() override { m_agentTestHelper = make_unique(); m_agentTestHelper->createAgent("/samples/SimpleDevlce.xml", 8, 4, "1.7", 25); m_agentId = to_string(getCurrentTimeInSec()); m_device = m_agentTestHelper->m_agent->getDeviceByName("LinuxCNC"); } void TearDown() override { m_agentTestHelper.reset(); } std::unique_ptr m_agentTestHelper; std::string m_agentId; DevicePtr m_device {nullptr}; }; TEST_F(PythonTransformTest, add_python_transform_to_adapter_pipeline) {}