key files into code, no include in package

This commit is contained in:
xiang.zhou
2024-12-23 10:51:58 +08:00
parent 15a10f5b02
commit 0c833f0343
6 changed files with 45 additions and 22 deletions
-7
View File
@@ -463,19 +463,12 @@ class TestPersist:
@description(given="upload pem in certs", when="login", then="success")
def test_jwt(self):
if not os.path.exists('./build/certs/'):
os.makedirs('./build/certs/')
shutil.copyfile('./build/config/neuron.pem', './build/certs/neuron.pem')
p = process.NeuronProcess()
p.start()
response = api.login()
assert 200 == response.status_code
shutil.rmtree('./build/certs/')
p.stop()
@description(given="new schema", when="upload schema , restart and add tags", then="success")
-2
View File
@@ -19,8 +19,6 @@ target_include_directories(http_test PRIVATE
${CMAKE_SOURCE_DIR}/plugins/restful)
target_link_libraries(http_test neuron-base gtest_main gtest jansson nng)
file(COPY ${CMAKE_SOURCE_DIR}/neuron.key DESTINATION ${UT_DIRECTORY}/config)
file(COPY ${CMAKE_SOURCE_DIR}/neuron.pem DESTINATION ${UT_DIRECTORY}/config)
add_executable(jwt_test jwt_test.cc)
target_include_directories(jwt_test PRIVATE
${CMAKE_SOURCE_DIR}/src