mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
key files into code, no include in package
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user