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