Example #1
0
 def setUpClass(inst):
     inst.disk_identifiers = GET_OUTPUT("/storage/disk", "disk_identifier")
     inst.disk_indent_1 = inst.disk_identifiers.split()[0]
Example #2
0
 def test_22_Verify_SMB_service_is_disabled(self):
     assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "STOPPED"
Example #3
0
 def test_04_checking_to_see_if_smb_service_is_enabled(self):
     assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "RUNNING"
Example #4
0
 def test_25_Verify_SMB_service_has_shut_down(self):
     assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "STOPPED"
Example #5
0
 def test_06_Checking_to_see_if_NFS_service_is_enabled(self):
     assert GET_OUTPUT("/services/services/nfs/", "srv_state") == "RUNNING"
Example #6
0
 def test_03_Validate_that_SNMP_service_is_running(self):
     assert GET_OUTPUT("/services/services/snmp/", "srv_state") == "RUNNING"
Example #7
0
 def test_05_Checking_to_see_if_AFP_service_is_enabled(self):
     assert GET_OUTPUT("/services/services/afp/", "srv_state") == "RUNNING"
Example #8
0
 def test_03_Checking_that_API_reports_the_cronjob_as_updated(self):
     assert GET_OUTPUT("/tasks/cronjob/%s/" % CRONJOB_ID,
                       "cron_enabled") is False
Example #9
0
 def test_04_Checking_if_NIS_service_is_enable(self):
     assert GET_OUTPUT("/directoryservice/nis/", "nis_enable") is True
Example #10
0
 def test_07_Checking_to_see_if_SMB_service_is_enabled(self):
     GET_OUTPUT("/services/services/cifs/", "srv_state")
Example #11
0
 def test_3_Checking_ssh_enabled(self):
     assert GET_OUTPUT("/services/services/ssh/", 'srv_state') == "RUNNING"
Example #12
0
 def test_05_Checking_to_see_if_SMB_service_is_running(self):
     assert GET_OUTPUT("/services/services/cifs/", "srv_state") == "RUNNING"
Example #13
0
 def test_02_Checking_to_see_if_cronjob_was_created_and_enabled(self):
     assert GET_OUTPUT("/tasks/cronjob/1/", "cron_enabled") is True
Example #14
0
 def test_02_Check_that_API_reports_new_SMARTTest(self):
     assert GET_OUTPUT("/tasks/smarttest/",
                       "smarttest_disks") == self.disk_ident_1
Example #15
0
 def test_02_Validating_API_alert_values(self):
     assert GET_OUTPUT("/system/alert/", "level") == "CRIT"
     assert GET_OUTPUT("/system/alert/", "dismissed") is False
Example #16
0
 def test_07_Checking_if_secure_mode_is_enable(self):
     assert GET_OUTPUT("/directoryservice/nis/", "nis_secure_mode") is True
Example #17
0
 def test_02_Checking_to_see_if_rsync_service_is_enabled(self):
     assert GET_OUTPUT("/services/services/rsync/",
                       "srv_state") == "RUNNING"
Example #18
0
 def test_10_Checking_if_manycast_is_enable(self):
     assert GET_OUTPUT("/directoryservice/nis/", "nis_manycast") is True
Example #19
0
 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
Example #20
0
 def test_05_Verifying_that_the_WebDAV_service_has_started(self):
     assert GET_OUTPUT("/services/services/webdav",
                       "srv_state") == "RUNNING"
Example #21
0
 def test_24_Verify_LDAP_is_disabledd(self):
     assert GET_OUTPUT("/directoryservice/ldap/", "ldap_enable") is False
Example #22
0
 def test_07_Verifying_that_the_WebDAV_service_has_stopped(self):
     assert GET_OUTPUT("/services/services/webdav",
                       "srv_state") == "STOPPED"
Example #23
0
 def test_03_Checking_LDAPd(self):
     assert GET_OUTPUT("/directoryservice/ldap/", "ldap_enable") is True
Example #24
0
 def test_22_Verify_the_iSCSI_service_is_disabled(self):
     assert GET_OUTPUT("/services/services/iscsitarget/",
                       "srv_state") == "STOPPED"
Example #25
0
 def test_21_Verify_Active_Directory_is_disabled(self):
     assert GET_OUTPUT("/directoryservice/activedirectory/",
                       "ad_enable") is False
Example #26
0
 def test_08_Verify_the_iSCSI_service_is_enabled(self):
     assert GET_OUTPUT("/services/services/iscsitarget/",
                       "srv_state") == "RUNNING"
Example #27
0
 def test_03_checking_active_directory(self):
     assert GET_OUTPUT("/directoryservice/activedirectory/",
                       "ad_enable") is True
Example #28
0
 def test_01_Polling_API_endpoint_for_new_system_alert(self):
     assert GET_OUTPUT("/system/alert/", "message") == ALERT_MSG
Example #29
0
 def test_02_Verify_that_API_returns_WWW_download_path(self):
     assert GET_OUTPUT("/system/debug/", "url") == "/system/debug/download/"
Example #30
0
 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