Add a karaf launch option 'server' in python nose files.
This option disables the karaf local console.
(OPTS="-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true")
Change-Id: Iac160454fa6a74aa31813dacbb74a94dce417592
Signed-off-by: Martial COULIBALY <martial.coulibaly@gfi.fr>
executable = "../karaf/target/assembly/bin/karaf"
with open('odl.log', 'w') as outfile:
cls.odl_process = subprocess.Popen(
executable = "../karaf/target/assembly/bin/karaf"
with open('odl.log', 'w') as outfile:
cls.odl_process = subprocess.Popen(
- ["bash", executable], stdout=outfile,
+ ["bash", executable, "server"], stdout=outfile,
stdin=open(os.devnull))
@classmethod
stdin=open(os.devnull))
@classmethod
cls.testtools_process1 = subprocess.Popen(
["java", "-jar", executable, "--schemas-dir", "schemas",
"--initial-config-xml", "sample_configs/ord_1.2.1/sample-config-ROADM.xml",
cls.testtools_process1 = subprocess.Popen(
["java", "-jar", executable, "--schemas-dir", "schemas",
"--initial-config-xml", "sample_configs/ord_1.2.1/sample-config-ROADM.xml",
- "--starting-port","17830"],
+ "--starting-port", "17830"],
stdout=outfile)
with open('testtools2.log', 'w') as outfile:
cls.testtools_process2 = subprocess.Popen(
["java", "-jar", executable, "--schemas-dir", "schemas",
"--initial-config-xml", "sample_configs/ord_1.2.1/sample-config-XPDR.xml",
stdout=outfile)
with open('testtools2.log', 'w') as outfile:
cls.testtools_process2 = subprocess.Popen(
["java", "-jar", executable, "--schemas-dir", "schemas",
"--initial-config-xml", "sample_configs/ord_1.2.1/sample-config-XPDR.xml",
- "--starting-port","17831"],
+ "--starting-port", "17831"],
stdout=outfile)
@classmethod
stdout=outfile)
@classmethod
executable = "../karaf/target/assembly/bin/karaf"
with open('odl.log', 'w') as outfile:
cls.odl_process = subprocess.Popen(
executable = "../karaf/target/assembly/bin/karaf"
with open('odl.log', 'w') as outfile:
cls.odl_process = subprocess.Popen(
- ["bash", executable], stdout=outfile,
+ ["bash", executable, "server"], stdout=outfile,
stdin=open(os.devnull))
@classmethod
stdin=open(os.devnull))
@classmethod
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application","error-tag":"data-missing",
+ {"error-type":"application", "error-tag":"data-missing",
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application","error-tag":"data-missing",
+ {"error-type":"application", "error-tag":"data-missing",
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application","error-tag":"data-missing",
+ {"error-type":"application", "error-tag":"data-missing",
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application","error-tag":"data-missing",
+ {"error-type":"application", "error-tag":"data-missing",
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
self.assertEqual(response.status_code, requests.codes.not_found)
res = response.json()
self.assertIn(
- {"error-type":"application","error-tag":"data-missing",
+ {"error-type":"application", "error-tag":"data-missing",
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
"error-message":"Request could not be completed because the relevant data model content does not exist "},
res['errors']['error'])
executable = "../karaf/target/assembly/bin/karaf"
with open('odl.log', 'w') as outfile:
cls.odl_process = subprocess.Popen(
executable = "../karaf/target/assembly/bin/karaf"
with open('odl.log', 'w') as outfile:
cls.odl_process = subprocess.Popen(
- ["bash", executable], stdout=outfile,
+ ["bash", executable, "server"], stdout=outfile,
stdin=open(os.devnull))
@classmethod
stdin=open(os.devnull))
@classmethod