Fixed Collection tests being included as not Enterprise
(cherry picked from commit d977a45c25
)
This commit is contained in:
parent
a38114ee65
commit
fc1a7f0f99
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from include.common_classes_60 import PandoraWebDriverTestCase
|
||||
from include.common_functions_60 import click_menu_element, detect_and_pass_all_wizards, gen_random_string
|
||||
from include.common_functions_60 import click_menu_element, detect_and_pass_all_wizards, gen_random_string, is_enterprise
|
||||
from include.module_functions import create_module
|
||||
from include.agent_functions import create_agent_group
|
||||
from include.policy_functions import *
|
||||
|
@ -24,6 +24,7 @@ class Collections(PandoraWebDriverTestCase):
|
|||
collection_name = gen_random_string(6)
|
||||
new_collection_name = gen_random_string(6)
|
||||
|
||||
@is_enterprise
|
||||
def test_A_create_collection(self):
|
||||
|
||||
driver = self.driver
|
||||
|
@ -37,11 +38,10 @@ class Collections(PandoraWebDriverTestCase):
|
|||
element = driver.find_element_by_xpath('//a[contains(.,self.collection_name)]')
|
||||
self.assertIsInstance(element,WebElement)
|
||||
|
||||
@is_enterprise
|
||||
def test_B_edit_collection(self):
|
||||
|
||||
driver = self.driver
|
||||
#login(driver,pandora_url="http://192.168.50.50:84/")
|
||||
#detect_and_pass_all_wizards(driver)
|
||||
|
||||
edit_collection(driver,self.collection_name,new_name=self.new_collection_name,group="Applications",description="Edit collectionPAN11")
|
||||
|
||||
|
@ -50,34 +50,30 @@ class Collections(PandoraWebDriverTestCase):
|
|||
element = driver.find_element_by_xpath('//a[contains(.,self.new_collection_name)]')
|
||||
self.assertIsInstance(element,WebElement)
|
||||
|
||||
@is_enterprise
|
||||
def test_C_create_text_collection(self):
|
||||
|
||||
driver = self.driver
|
||||
#login(driver,pandora_url="http://192.168.50.50:84/")
|
||||
#detect_and_pass_all_wizards(driver)
|
||||
|
||||
create_text_in_collection(driver,self.new_collection_name,"file_collectionPAN11",text_file="test file")
|
||||
|
||||
element = driver.find_element_by_xpath('//a[contains(.,"file_collectionPAN11")]')
|
||||
self.assertIsInstance(element,WebElement)
|
||||
|
||||
@is_enterprise
|
||||
def test_D_directory_collection(self):
|
||||
|
||||
driver = self.driver
|
||||
#login(driver,pandora_url="http://192.168.50.50:84/")
|
||||
#detect_and_pass_all_wizards(driver)
|
||||
|
||||
create_directory_in_collection(driver,self.new_collection_name,"directory_collectionPAN11")
|
||||
|
||||
element = driver.find_element_by_xpath('//a[contains(.,"directory_collectionPAN11")]')
|
||||
self.assertIsInstance(element,WebElement)
|
||||
|
||||
|
||||
@is_enterprise
|
||||
def test_E_delete_collection(self):
|
||||
|
||||
driver = self.driver
|
||||
#login(driver,pandora_url="http://192.168.50.50:84/")
|
||||
#detect_and_pass_all_wizards(driver)
|
||||
|
||||
delete_collection(driver,self.new_collection_name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue