def setUp(self): self.test_package_location = pkg_resources.resource_filename(__name__, "test.son") self.app = init_test_context() self.user = create_logged_in_user(self.app, 'username') self.wsid = str(create_workspace(self.user, 'workspaceName')) self.pjid = create_project(self.wsid, 'project_name') self.pjid2 = create_project(self.wsid, 'InvalidProjectName')
def setUp(self): # Initializes test context self.app = init_test_context() # Add some session stuff ( need for finding the user's workspace ) self.user = create_logged_in_user(self.app, 'user') self.wsid = create_workspace(self.user, 'workspaceName') self.pjid = create_project(self.wsid, 'ProjectA') # Create catalogue by request self.catalogue_id = create_catalogue(self.wsid, "Catalogue_Integration_Test", CATALOGUE_INSTANCE_URL) self.ns_dict = {'descriptor': {"vendor": "de.upb.integration_test", "name": "service_1", "version": "0.0.1", "descriptor_version": "0.1"}, 'meta': {}} self.ns_dict_2 = {'descriptor': {"vendor": "de.upb.integration_test", "name": "service_2", "version": "0.0.2", "descriptor_version": "0.1"}, 'meta': {}} self.vnf_dict = get_sample_vnf("service_1", "de.upb.integration_test", "0.0.1") self.vnf_dict_2 = get_sample_vnf("service_2", "de.upb.integration_test", "0.0.2")
def setUp(self): # Initializes test context self.app = init_test_context() # Add user self.user = create_logged_in_user(self.app, 'user') # Create real workspace by request self.ws_id = create_workspace(self.user, "test_ws") create_project(self.ws_id, "test_pj")
def setUp(self): # Initializes test context self.app = init_test_context() self.user = create_logged_in_user(self.app, 'user_b') # Create a workspace and project self.wsid = create_workspace(self.user, 'WorkspaceA') self.pid = create_project(self.wsid, 'ProjectA') self.sid = create_ns(self.wsid, self.pid, "service_a", "de.upb.cs.cn.pgsandman", "0.0.1")
def setUp(self): # Initializes test context self.app = init_test_context() # Add some session stuff ( need for finding the user's workspace ) self.user = create_logged_in_user(self.app, 'user') # Create real workspace by request self.wsid = create_workspace(self.user, 'CatalogueTest')
def setUp(self): # Initializes test context self.app = init_test_context() # Add some session stuff ( need for finding the user's workspace ) self.user = create_logged_in_user(self.app, 'username') # Create a workspace and project self.wsid = str(create_workspace(self.user, 'WorkspaceA')) self.pjid = str(create_project(self.wsid, 'ProjectA')) self.fid = create_vnf(self.wsid, self.pjid, "function_a", "de.upb.cs.cn.pgsandman", "0.0.1")
def setUp(self): # Initializes test context self.app = init_test_context() self.project = Project(name="Project A") self.workspace = Workspace(name="Workspace A") self.service = Service(name="Service A") self.function = Function(name="Function A") self.catalogue = Catalogue(name="Catalogue A", url="") self.platform = Catalogue(name="Platform A", url="") self.user = User(name="User A")
def setUp(self): # Initializes test context self.app = init_test_context() # Add some session stuff ( need for finding the user's workspace ) self.username = GITHUB_USER # Create a user with valid github token self.user = create_logged_in_user(self.app, self.username, GITHUB_ACCESS_TOKEN) # Create a workspace and project self.wsid = str(create_workspace(self.user, 'WorkspaceA')) # Create sample project self.pjid = str(create_project(int(self.wsid), 'ProjectA')) self.clean_github()
def setUp(self): # Initializes test context self.app = init_test_context() # Create login self.user = create_logged_in_user(self.app, "user_a") self.wsid = create_workspace(self.user, "workspace_a") self.pjid = create_project(self.wsid, "project_a") self.vnf_vendor = "de.upb.cs.cn.pgsandman" self.vnf_name = "virtual_function_a" self.vnf_version = "0.0.1" self.ns_name = "network_service_a" self.ns_vendor = "de.upb.cs.cn.pgsandman" self.ns_version = "0.0.1" self.vnfid = create_vnf(self.wsid, self.pjid, "virtual_function_a", "de.upb.cs.cn.pgsandman", "0.0.1") self.nsid = create_ns(self.wsid, self.pjid, self.ns_name, self.ns_vendor, self.ns_version)
def setUp(self): # Initializes test context self.app = init_test_context() # Add some session stuff ( need for finding the user's workspace ) self.user = create_logged_in_user(self.app, 'user') self.wsid = create_workspace(self.user, 'workspaceName') self.pjid = create_project(self.wsid, 'ProjectA') # Create catalogue by request self.catalogue_id = create_catalogue(self.wsid, "Catalogue_Integration_Test", CATALOGUE_INSTANCE_URL) self.ns_dict = { 'descriptor': { "vendor": "de.upb.integration_test", "name": "service_1", "version": "0.0.1", "descriptor_version": "0.1" }, 'meta': {} } self.ns_dict_2 = { 'descriptor': { "vendor": "de.upb.integration_test", "name": "service_2", "version": "0.0.2", "descriptor_version": "0.1" }, 'meta': {} } self.vnf_dict = get_sample_vnf("vnf_1", "de.upb.integration_test", "0.0.1") self.vnf_dict_2 = get_sample_vnf("vnf_2", "de.upb.integration_test", "0.0.2")
def setUp(self): # Initializes test context self.app = init_test_context() self.user = create_logged_in_user(self.app, 'user') self.workspace = create_workspace(self.user, 'Workspace A') self.project = create_project(self.workspace, 'Project A')
def setUp(self): # Initializes test context self.app = init_test_context() self.user = create_logged_in_user(self.app, 'user') self.wsid = create_workspace(self.user, 'PlatformTest')
def setUp(self): # Initializes test context self.app = init_test_context() self.user = create_logged_in_user(self.app, "user_a") # Create real workspace by request self.wsid = create_workspace(self.user, 'ProjectTest')