Ejemplo n.º 1
0
    def setUp(self):
        super().setUp()

        # truncate data old table
        if db_utils.check_table_exist(Tables.PM_AFFILIATION):
            db_utils.delete_table(Tables.PM_AFFILIATION)
        if db_utils.check_table_exist(Tables.PM_EXCLUSION_RESOURCES):
            db_utils.delete_table(Tables.PM_EXCLUSION_RESOURCES)
        if db_utils.check_table_exist(Tables.PM_AWSACCOUNTCOOPS):
            db_utils.delete_table(Tables.PM_AWSACCOUNTCOOPS)

        # create table
        mock_pm_affiliation.create_table()
        mock_pm_awsAccountCoops.create_table()
        mock_pm_exclusionResources.create_table()
Ejemplo n.º 2
0
    def setUp(self):
        super().setUp()

        # truncate old data in the table
        if db_utils.check_table_exist(Tables.PM_AFFILIATION):
            db_utils.delete_table(Tables.PM_AFFILIATION)
        if db_utils.check_table_exist(Tables.PM_AWSACCOUNTCOOPS):
            db_utils.delete_table(Tables.PM_AWSACCOUNTCOOPS)
        if db_utils.check_table_exist(Tables.PM_ASSESSMENT_ITEMS):
            db_utils.delete_table(Tables.PM_ASSESSMENT_ITEMS)

        # create table
        mock_pm_affiliation.create_table()
        mock_pm_awsAccountCoops.create_table()
        mock_pm_assessmentItems.create_table()
Ejemplo n.º 3
0
    def setUp(self):
        super().setUp()

        # truncate old data in the table
        if db_utils.check_table_exist(Tables.PM_AFFILIATION):
            db_utils.delete_table(Tables.PM_AFFILIATION)
        if db_utils.check_table_exist(Tables.PM_AWSACCOUNTCOOPS):
            db_utils.delete_table(Tables.PM_AWSACCOUNTCOOPS)
        if db_utils.check_table_exist(Tables.PM_CHECK_RESULT_ITEMS):
            db_utils.delete_table(Tables.PM_CHECK_RESULT_ITEMS)
        if db_utils.check_table_exist(Tables.PM_LATEST_CHECK_RESULT):
            db_utils.delete_table(Tables.PM_LATEST_CHECK_RESULT)

        # create table
        mock_pm_affiliation.create_table()
        mock_pm_awsAccountCoops.create_table()
        mock_pm_checkResultItems.create_table()
        mock_pm_latestCheckResult.create_table()
Ejemplo n.º 4
0
    def setUp(self):
        super().setUp()

        # truncate old data in the table
        if db_utils.check_table_exist(Tables.PM_AFFILIATION):
            db_utils.delete_table(Tables.PM_AFFILIATION)
        if db_utils.check_table_exist(Tables.PM_PROJECTS):
            db_utils.delete_table(Tables.PM_PROJECTS)
        if db_utils.check_table_exist(Tables.PM_CHECK_HISTORY):
            db_utils.delete_table(Tables.PM_CHECK_HISTORY)

        # create table
        mock_pm_affiliation.create_table()
        mock_pm_projects.create_table()
        mock_pm_checkHistory.create_table()

        # create data table
        mock_pm_projects.create(data_pm_project)
        mock_pm_affiliation.create(data_pm_affiliation)
    def setUp(self):
        super().setUp()

        # truncate old data in the table
        if db_utils.check_table_exist(Tables.PM_EMAIL_CHANGE_APPLY):
            db_utils.delete_table(Tables.PM_EMAIL_CHANGE_APPLY)

        if db_utils.check_table_exist(Tables.PM_AFFILIATION):
            db_utils.delete_table(Tables.PM_AFFILIATION)

        if db_utils.check_table_exist(Tables.PM_ORG_NOTIFY_MAIL_DESTINATIONS):
            db_utils.delete_table(Tables.PM_ORG_NOTIFY_MAIL_DESTINATIONS)

        # create PM_Affiliation table
        mock_pm_affiliation.create_table()
        # create PM_EmailChangeApply table
        mock_pm_emailChangeApply.create_table()
        # create PM_OrgNotifyMailDestinations table
        mock_pm_orgNotifyMailDestinations.create_table()
Ejemplo n.º 6
0
    def setUp(self):
        super().setUp()

        # truncate old data in the table
        if db_utils.check_table_exist(Tables.PM_AFFILIATION):
            db_utils.delete_table(Tables.PM_AFFILIATION)
        if db_utils.check_table_exist(Tables.PM_PROJECTS):
            db_utils.delete_table(Tables.PM_PROJECTS)
        if db_utils.check_table_exist(Tables.PM_ASSESSMENT_ITEMS):
            db_utils.delete_table(Tables.PM_ASSESSMENT_ITEMS)
        if db_utils.check_table_exist(Tables.PM_EXCLUSION_ITEMS):
            db_utils.delete_table(Tables.PM_EXCLUSION_ITEMS)
        if db_utils.check_table_exist(Tables.PM_EXCLUSION_RESOURCES):
            db_utils.delete_table(Tables.PM_EXCLUSION_RESOURCES)
        if db_utils.check_table_exist(Tables.PM_AWSACCOUNTCOOPS):
            db_utils.delete_table(Tables.PM_AWSACCOUNTCOOPS)

        # create table
        mock_pm_affiliation.create_table()
        mock_pm_projects.create_table()
        mock_pm_awsAccountCoops.create_table()
        mock_pm_assessmentItems.create_table()
        mock_pm_exclusionItems.create_table()
        mock_pm_exclusionResources.create_table()