def setUpClass(inst): inst.disk_identifiers = GET_OUTPUT("/storage/disk", "disk_identifier") inst.disk_indent_1 = inst.disk_identifiers.split()[0]
def test_22_Verify_SMB_service_is_disabled(self): assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "STOPPED"
def test_04_checking_to_see_if_smb_service_is_enabled(self): assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "RUNNING"
def test_25_Verify_SMB_service_has_shut_down(self): assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "STOPPED"
def test_06_Checking_to_see_if_NFS_service_is_enabled(self): assert GET_OUTPUT("/services/services/nfs/", "srv_state") == "RUNNING"
def test_03_Validate_that_SNMP_service_is_running(self): assert GET_OUTPUT("/services/services/snmp/", "srv_state") == "RUNNING"
def test_05_Checking_to_see_if_AFP_service_is_enabled(self): assert GET_OUTPUT("/services/services/afp/", "srv_state") == "RUNNING"
def test_03_Checking_that_API_reports_the_cronjob_as_updated(self): assert GET_OUTPUT("/tasks/cronjob/%s/" % CRONJOB_ID, "cron_enabled") is False
def test_04_Checking_if_NIS_service_is_enable(self): assert GET_OUTPUT("/directoryservice/nis/", "nis_enable") is True
def test_07_Checking_to_see_if_SMB_service_is_enabled(self): GET_OUTPUT("/services/services/cifs/", "srv_state")
def test_3_Checking_ssh_enabled(self): assert GET_OUTPUT("/services/services/ssh/", 'srv_state') == "RUNNING"
def test_05_Checking_to_see_if_SMB_service_is_running(self): assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "RUNNING"
def test_02_Checking_to_see_if_cronjob_was_created_and_enabled(self): assert GET_OUTPUT("/tasks/cronjob/1/", "cron_enabled") is True
def test_02_Check_that_API_reports_new_SMARTTest(self): assert GET_OUTPUT("/tasks/smarttest/", "smarttest_disks") == self.disk_ident_1
def test_02_Validating_API_alert_values(self): assert GET_OUTPUT("/system/alert/", "level") == "CRIT" assert GET_OUTPUT("/system/alert/", "dismissed") is False
def test_07_Checking_if_secure_mode_is_enable(self): assert GET_OUTPUT("/directoryservice/nis/", "nis_secure_mode") is True
def test_02_Checking_to_see_if_rsync_service_is_enabled(self): assert GET_OUTPUT("/services/services/rsync/", "srv_state") == "RUNNING"
def test_10_Checking_if_manycast_is_enable(self): assert GET_OUTPUT("/directoryservice/nis/", "nis_manycast") is True
def test_04_Validate_that_SNMP_settings_were_preserved(self): assert GET_OUTPUT("/services/snmp/", "snmp_community") == COMMUNITY assert GET_OUTPUT("/services/snmp/", "snmp_traps") == TRAPS assert GET_OUTPUT("/services/snmp/", "snmp_contact") == CONTACT assert GET_OUTPUT("/services/snmp/", "snmp_location") == LOCATION assert GET_OUTPUT("/services/snmp/", "snmp_v3_password") == PASSWORD
def test_05_Verifying_that_the_WebDAV_service_has_started(self): assert GET_OUTPUT("/services/services/webdav", "srv_state") == "RUNNING"
def test_24_Verify_LDAP_is_disabledd(self): assert GET_OUTPUT("/directoryservice/ldap/", "ldap_enable") is False
def test_07_Verifying_that_the_WebDAV_service_has_stopped(self): assert GET_OUTPUT("/services/services/webdav", "srv_state") == "STOPPED"
def test_03_Checking_LDAPd(self): assert GET_OUTPUT("/directoryservice/ldap/", "ldap_enable") is True
def test_22_Verify_the_iSCSI_service_is_disabled(self): assert GET_OUTPUT("/services/services/iscsitarget/", "srv_state") == "STOPPED"
def test_21_Verify_Active_Directory_is_disabled(self): assert GET_OUTPUT("/directoryservice/activedirectory/", "ad_enable") is False
def test_08_Verify_the_iSCSI_service_is_enabled(self): assert GET_OUTPUT("/services/services/iscsitarget/", "srv_state") == "RUNNING"
def test_03_checking_active_directory(self): assert GET_OUTPUT("/directoryservice/activedirectory/", "ad_enable") is True
def test_01_Polling_API_endpoint_for_new_system_alert(self): assert GET_OUTPUT("/system/alert/", "message") == ALERT_MSG
def test_02_Verify_that_API_returns_WWW_download_path(self): assert GET_OUTPUT("/system/debug/", "url") == "/system/debug/download/"
def test_03_Checking_that_API_reports_LLDP_configuration_as_saved(self): assert GET_OUTPUT("/services/lldp/", "lldp_country") == COUNTRY assert GET_OUTPUT("/services/lldp/", "lldp_intdesc") == INTDESC assert GET_OUTPUT("/services/lldp/", "lldp_location") == LOCATION