def setUpClass(cls): mage.connect() cls.a = mage.Assessment.create('EXTERNAL', name='UNITTEST') cls.ar_id = cls.a.start() cls.ar = mage.AssessmentRun.get(cls.ar_id) cls.asset = mage.Asset.create('DOMAIN', cls.TEST_ASSET) cls.ttp = mage.TTP.create('Port Scan', cls.ar_id, cls.asset.id) time.sleep(3)
def setUpClass(cls): mage.connect() cls.a = mage.Assessment.create('EXTERNAL', name='UNITTEST') cls.ar_id = cls.a.start() cls.ar = mage.AssessmentRun.get(cls.ar_id) cls.lead = mage.Lead.create('Default Password on WEBSRV1', 'Password has not been changed yet.', cls.ar_id) # give time to replicate to ES time.sleep(3)
def setUpClass(cls): mage.connect()
def setUpClass(cls): mage.connect() cls.a = mage.Assessment.create('EXTERNAL', name='UNITTEST') cls.ar_id = cls.a.start() cls.ar = mage.AssessmentRun.get(cls.ar_id)