示例#1
0
    def test_create_provider_account(self, mozwebqa):
        '''
        Create provider account and test provider account connection
        '''
        home_page = Home(mozwebqa)
        assert home_page.login() == "Login successful!"

        page = Aeolus(mozwebqa)

        # create provider account
        for account in Provider.accounts:
            if account["type"] == "ec2":
                account = page.update_ec2_acct_credentials_from_config(account)
            assert page.create_provider_account(account) == \
                   "Account %s was added." % account["provider_account_name"]

        # test provider account
        for account in Provider.accounts:
            assert page.connection_test_provider_account(account) == \
                   "Test Connection Success: Valid Account Details"

        # test cleanup
        if page.test_cleanup == True:
            for account in Provider.accounts:
                assert page.delete_provider_account(account) == \
                       "Provider account was deleted!"

        assert page.logout() == "Aeolus Conductor | Login"
示例#2
0
    def test_provider_connection(self, mozwebqa):
        '''
        test provider connection
        '''
        home_page = Home(mozwebqa)
        assert home_page.login() == "Login successful!"

        page = Aeolus(mozwebqa)

        for account in Provider.accounts:
            assert page.connection_test_provider(account) == \
                   "Successfully Connected to Provider"

        assert page.logout() == "Aeolus Conductor | Login"
示例#3
0
    def test_create_users(self, mozwebqa):
        '''
        Create users
        '''
        home_page = Home(mozwebqa)

        assert home_page.login() == aeolus_msg['login']

        page = Aeolus(mozwebqa)

        for user in Admin.users:
            assert page.create_user(user) == "User registered!"

        # test cleanup
        if page.test_cleanup == True:
            for user in Admin.users:
                assert page.delete_user(user["username"]) == \
                       "User has been successfully deleted."

        if page.product_ver == '1.0.1':
            page.logout()
        else:
            assert page.logout() == "Aeolus Conductor | Login"
        time.sleep(3)
    def test_new_catalog(self, mozwebqa):
        '''
        create new catalogs
        '''
        home_page = Home(mozwebqa)
        assert home_page.login() == "Login successful!"

        page = Aeolus(mozwebqa)

        for catalog in Environment.catalogs:
            assert page.new_catalog(catalog) == "Catalog created!"

        # test cleanup
        if page.test_cleanup == True:
            for catalog in Environment.catalogs:
                assert page.delete_catalog(catalog) == "Catalog deleted!"

        assert page.logout() == "Aeolus Conductor | Login"
    def test_new_environment_pool_family(self, mozwebqa):
        '''
        create new environments or pool families
        '''
        home_page = Home(mozwebqa)
        assert home_page.login() == "Login successful!"

        page = Aeolus(mozwebqa)

        for environment in Environment.pool_family_environments:
            assert page.new_environment(environment) == "Pool family was added."

        # test cleanup
        if page.test_cleanup == True:
            for environment in Environment.pool_family_environments:
                assert page.delete_environment(environment) == \
                       "Pool Family was deleted!"
        assert page.logout() == "Aeolus Conductor | Login"
示例#6
0
    def test_create_user_groups(self, mozwebqa):
        '''
        create user groups
        '''
        home_page = Home(mozwebqa)
        #assert home_page.login() == "Login successful!"
        home_page.login()

        page = Aeolus(mozwebqa)

        for user_group in Admin.user_groups:
            assert page.create_user_group(user_group) == "User Group added"

        # test cleanup
        if page.test_cleanup == True:
            for user_group in Admin.user_groups:
                assert page.delete_user_group(user_group["name"]) == \
                       "Deleted user group " + user_group["name"]

        assert page.logout() == "Aeolus Conductor | Login"