Esempio n. 1
0
 def test_service_info(self):
     from multiprocessing import Pipe
     from FreeTAKServer.model.ServiceObjects.FTS import FTS
     pipe1, pipe2 = Pipe(True)
     from FreeTAKServer.controllers.services.API import RestAPI
     RestAPI.CommandPipe = pipe1
     pipe2.send(FTS())
     RestAPI.show_service_info()
Esempio n. 2
0
 def test_change_status(self):
     from FreeTAKServer.controllers.services import RestAPI
     RestAPI.changeStatus({
         "services": {
             "TCPDataPackageService": {
                 "status": "off"
             }
         },
         "ip": ""
     })
Esempio n. 3
0
 def test_add_system_user(self):
     import json
     from FreeTAKServer.controllers.services import RestAPI
     RestAPI.addSystemUser(
         json.dumps({
             "systemUsers": [{
                 "Name": "bbrdk",
                 "Group": "Yellow",
                 "Token": "token",
                 "Password": "******",
                 "Certs": "true"
             }]
         }))
Esempio n. 4
0
 def test_get_system_user(self):
     from FreeTAKServer.controllers.services import RestAPI
     RestAPI.systemUsers()