def test_get_new_entity_record_classifier(self): """ Given fake classifier path. When getting entity record for classifier. Then Ensure the method is valid and returns the classifier name and description. """ name, description = get_new_entity_record(os.path.join(TEST_DATA_PATH, 'FakePack5', 'Classifiers', 'fake_classifier.json')) assert name == 'Fake classifier' assert description == 'Maps incoming Prisma Cloud event fields.'
def test_get_new_entity_record_layoutscontainer(self): """ Given fake layoutscontainer path. When getting entity record for layoutscontainer. Then Ensure the method is valid and returns the layoutscontainer name and the fromversion. """ name, description = get_new_entity_record(os.path.join(TEST_DATA_PATH, 'FakePack5', 'Layouts', 'layoutscontainer-fake.json')) assert name == 'layoutscontainer-fake' assert description == '(Available from Cortex XSOAR 6.0.0)'
def test_get_new_entity_record_layout(self): """ Given fake layout path. When getting entity record for layout. Then Ensure the method is valid and returns the layout name and description. """ name, description = get_new_entity_record(os.path.join(TEST_DATA_PATH, 'FakePack5', 'Layouts', 'fake_layout.json')) assert name == 'Fake layout - Close' assert description == ''
def test_get_new_entity_record_integration(self): """ Given fake integration path. When getting entity record for integration. Then Ensure the method is valid and returns the integration name and description. """ name, description = get_new_entity_record(os.path.join(TEST_DATA_PATH, 'FakePack5', 'Integrations', 'fake_integration.yml')) assert name == 'fake_integration' assert description == 'Use the Zoom integration manage your Zoom users and meetings'