def setUp(self):
        client = helper.init_client()
        self.sling = swaggeraem.apis.SlingApi(client)

        # ensure config.author already exists
        try:
            response = self.sling.post_path_with_http_info('apps/system', 'sling:Folder', 'config.author')
            # create config.author when it does not exist
            self.assertIn(response[1], [200, 201])
        except ApiException as err:
            # ignore when it already exists
            self.assertEqual(err.status, 500)
示例#2
0
    def setUp(self):
        client = helper.init_client()
        self.sling = swaggeraem.apis.SlingApi(client)

        # ensure config.author already exists
        try:
            response = self.sling.post_path_with_http_info(
                'apps/system', 'sling:Folder', 'config.author')
            # create config.author when it does not exist
            self.assertIn(response[1], [200, 201])
        except ApiException as err:
            # ignore when it already exists
            self.assertEqual(err.status, 500)
示例#3
0
    def setUp(self):
        self.aem = init_client()

        # ensure agent doesn't exist prior to testing
        self.replication_agent = self.aem.replication_agent('author', 'some-replication-agent')
        if self.replication_agent.exists().data:
            self.replication_agent.delete()
        result = self.replication_agent.exists()
        self.assertFalse(result.data)

        # create agent
        result = self.replication_agent.create_update('Some Replication Agent Title', 'Some replication agent description', 'http://somehost:8080')
        self.assertEqual(result.message, 'Replication agent some-replication-agent created on author')
示例#4
0
 def setUp(self):
     client = helper.init_client()
     self.cq = swaggeraem.apis.CqApi(client)
     self.sling = swaggeraem.apis.SlingApi(client)
示例#5
0
 def setUp(self):
     client = helper.init_client()
     self.sling = swaggeraem.apis.SlingApi(client)
示例#6
0
 def setUp(self):
     pythonaem = init_client()
     self.aem = pythonaem.aem()
 def setUp(self):
     client = helper.init_client()
     self.console = swaggeraem.apis.ConsoleApi(client)
示例#8
0
 def setUp(self):
     client = helper.init_client()
     self.console = swaggeraem.apis.ConsoleApi(client)
示例#9
0
 def setUp(self):
     swaggeraem.configuration.username = '******'
     swaggeraem.configuration.password = '******'
     client = swaggeraem.ApiClient('http://localhost:4502')
     self.sling = swaggeraem.apis.SlingApi(helper.init_client())