t_smf.py revision 3046
2310N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2310N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2310N/Aimport pkg5unittest
2310N/Aecho $0 "$@" >> $PKG_TEST_DIR/svcadm_arguments
2310N/A svc:/system/test_refresh_svc:default)
2310N/A svc:/system/test_multi_svc?:default)
2310N/A # "svcs sys/foo/tZst_suspend_svc:defXX"
2310N/A FMRI=svc:/system/test_suspend_svc:default
2310N/A FMRI=svc:/system/test_disable_svc:default
2310N/A FMRI=svc:/system/test_restart_svc:default
2310N/A FMRI="ERROR - t_actuators.py svcs wrapper failed to match $4"
3046N/Aecho "zlogin $zone_name" >> $PKG_TEST_DIR/zlogin_arguments
2310N/A misc_files = { \
2310N/Ageneral/entity_stability astring Unstable
2310N/Ageneral/single_instance boolean true
2310N/Arestarter/start_method_timestamp time 1222382991.639687000
2310N/Arestarter/start_method_waitstatus integer 0
2310N/Arestarter/auxiliary_state astring none
2310N/Arestarter/next_state astring none
2310N/Arestarter/state_timestamp time 1222382991.644413000
2310N/Arestarter_actions/refresh integer
2310N/Arestarter_actions/maint_on integer
2310N/Arestarter_actions/maint_off integer
2310N/Arestarter_actions/restart integer
2310N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2310N/Alocal-filesystems/grouping astring require_all
2310N/Alocal-filesystems/restart_on astring none
2310N/Alocal-filesystems/type astring service
2310N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2310N/Aremote-filesystems/grouping astring optional_all
2310N/Aremote-filesystems/restart_on astring none
2310N/Aremote-filesystems/type astring service
2310N/Astart/timeout_seconds count 0
2310N/Astop/timeout_seconds count 0
2310N/Ageneral/entity_stability astring Unstable
2310N/Ageneral/single_instance boolean true
2310N/Arestarter/start_method_timestamp time 1222382991.639687000
2310N/Arestarter/start_method_waitstatus integer 0
2310N/Arestarter/auxiliary_state astring none
2310N/Arestarter/next_state astring none
2310N/Arestarter/state_timestamp time 1222992132.445811000
2310N/Arestarter_actions/refresh integer
2310N/Arestarter_actions/maint_on integer
2310N/Arestarter_actions/maint_off integer
2310N/Arestarter_actions/restart integer
2310N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2310N/Alocal-filesystems/grouping astring require_all
2310N/Alocal-filesystems/restart_on astring none
2310N/Alocal-filesystems/type astring service
2310N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2310N/Aremote-filesystems/grouping astring optional_all
2310N/Aremote-filesystems/restart_on astring none
2310N/Aremote-filesystems/type astring service
2310N/Astart/timeout_seconds count 0
2310N/Astop/timeout_seconds count 0
2310N/Ageneral/entity_stability astring Unstable
2310N/Ageneral/single_instance boolean true
2310N/Arestarter/start_method_timestamp time 1222992237.506096000
2310N/Arestarter/start_method_waitstatus integer 0
2310N/Arestarter/auxiliary_state astring none
2310N/Arestarter/next_state astring none
2310N/Arestarter/state_timestamp time 1222992237.527408000
2310N/Arestarter_actions/refresh integer
2310N/Arestarter_actions/maint_on integer
2310N/Arestarter_actions/maint_off integer
2310N/Arestarter_actions/restart integer
2310N/Ageneral_ovr/enabled boolean true
2310N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2310N/Alocal-filesystems/grouping astring require_all
2310N/Alocal-filesystems/restart_on astring none
2310N/Alocal-filesystems/type astring service
2310N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2310N/Aremote-filesystems/grouping astring optional_all
2310N/Aremote-filesystems/restart_on astring none
2310N/Aremote-filesystems/type astring service
2310N/Astart/timeout_seconds count 0
2310N/Astop/timeout_seconds count 0
2375N/Ageneral/entity_stability astring Unstable
2375N/Ageneral/single_instance boolean true
2375N/Arestarter/start_method_timestamp time 1222992237.506096000
2375N/Arestarter/start_method_waitstatus integer 0
2375N/Arestarter/auxiliary_state astring none
2375N/Arestarter/next_state astring none
2375N/Arestarter/state_timestamp time 1222992237.527408000
2375N/Arestarter_actions/refresh integer
2375N/Arestarter_actions/maint_on integer
2375N/Arestarter_actions/maint_off integer
2375N/Arestarter_actions/restart integer
2375N/Ageneral_ovr/enabled boolean true
2375N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2375N/Alocal-filesystems/grouping astring require_all
2375N/Alocal-filesystems/restart_on astring none
2375N/Alocal-filesystems/type astring service
2375N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2375N/Aremote-filesystems/grouping astring optional_all
2375N/Aremote-filesystems/restart_on astring none
2375N/Aremote-filesystems/type astring service
2375N/Astart/timeout_seconds count 0
2375N/Astop/timeout_seconds count 0
2310N/Ageneral/entity_stability astring Unstable
2310N/Ageneral/single_instance boolean true
2310N/Arestarter/start_method_timestamp time 1222992237.506096000
2310N/Arestarter/start_method_waitstatus integer 0
2310N/Arestarter/auxiliary_state astring none
2310N/Arestarter/next_state astring none
2310N/Arestarter/state_timestamp time 1222992278.822335000
2310N/Arestarter_actions/refresh integer
2310N/Arestarter_actions/maint_on integer
2310N/Arestarter_actions/maint_off integer
2310N/Arestarter_actions/restart integer
2310N/Ageneral_ovr/enabled boolean false
2310N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2310N/Alocal-filesystems/grouping astring require_all
2310N/Alocal-filesystems/restart_on astring none
2310N/Alocal-filesystems/type astring service
2310N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2310N/Aremote-filesystems/grouping astring optional_all
2310N/Aremote-filesystems/restart_on astring none
2310N/Aremote-filesystems/type astring service
2310N/Astart/timeout_seconds count 0
2310N/Astop/timeout_seconds count 0
2375N/Ageneral/entity_stability astring Unstable
2375N/Ageneral/single_instance boolean true
2375N/Arestarter/start_method_timestamp time 1222992237.506096000
2375N/Arestarter/start_method_waitstatus integer 0
2375N/Arestarter/auxiliary_state astring none
2375N/Arestarter/next_state astring none
2375N/Arestarter/state_timestamp time 1222992278.822335000
2375N/Arestarter_actions/refresh integer
2375N/Arestarter_actions/maint_on integer
2375N/Arestarter_actions/maint_off integer
2375N/Arestarter_actions/restart integer
2375N/Ageneral_ovr/enabled boolean false
2375N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2375N/Alocal-filesystems/grouping astring require_all
2375N/Alocal-filesystems/restart_on astring none
2375N/Alocal-filesystems/type astring service
2375N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2375N/Aremote-filesystems/grouping astring optional_all
2375N/Aremote-filesystems/restart_on astring none
2375N/Aremote-filesystems/type astring service
2375N/Astart/timeout_seconds count 0
2375N/Astop/timeout_seconds count 0
2310N/Ageneral/entity_stability astring Unstable
2310N/Ageneral/single_instance boolean true
2310N/Arestarter/start_method_timestamp time 1222382991.639687000
2310N/Arestarter/start_method_waitstatus integer 0
2310N/Arestarter/auxiliary_state astring none
2310N/Arestarter/next_state astring none
2310N/Arestarter/state_timestamp time 1222382991.644413000
2310N/Arestarter_actions/refresh integer
2310N/Arestarter_actions/maint_on integer
2310N/Arestarter_actions/maint_off integer
2310N/Arestarter_actions/restart integer
2310N/Alocal-filesystems/entities fmri svc:/system/filesystem/local
2310N/Alocal-filesystems/grouping astring require_all
2310N/Alocal-filesystems/restart_on astring none
2310N/Alocal-filesystems/type astring service
2310N/Aremote-filesystems/entities fmri svc:/network/nfs/client svc:/system/filesystem/autofs
2310N/Aremote-filesystems/grouping astring optional_all
2310N/Aremote-filesystems/restart_on astring none
2310N/Aremote-filesystems/type astring service
2310N/Astart/timeout_seconds count 0
2310N/Astop/timeout_seconds count 0
2310N/A "svcadm restart svc:/system/test_restart_svc:default")
3014N/A "svcadm restart svc:/system/test_restart_svc:default")
3014N/A "svcadm restart -s svc:/system/test_restart_svc:default")
3014N/A "svcadm restart -s -T 10 svc:/system/test_restart_svc:default")
2310N/A "svcadm refresh svc:/system/test_refresh_svc:default")
3014N/A "svcadm refresh svc:/system/test_refresh_svc:default")
3014N/A "svcadm refresh -s svc:/system/test_refresh_svc:default")
3014N/A "svcadm refresh -s -T 10 svc:/system/test_refresh_svc:default")
2310N/A "svcadm mark maintenance svc:/system/test_mark_svc:default")
2310N/A "svcadm mark degraded svc:/system/test_mark_svc:default")
2310N/A "svcadm disable -s svc:/system/test_disable_svc:default")
2310N/A "svcadm disable -s -t svc:/system/test_disable_svc:default")
2310N/A "svcadm enable svc:/system/test_enable_svc:default")
2310N/A "svcadm enable -t svc:/system/test_enable_svc:default")
3014N/A "svcadm enable -s svc:/system/test_enable_svc:default")
3014N/A "svcadm enable svc:/system/test_enable_svc:default")
3014N/A "svcadm enable -s -T 10 svc:/system/test_enable_svc:default")
3024N/A "svcadm enable svc:/system/test_enable_svc:default foo")
3024N/A "svcadm enable svc:/system/test_enable_svc:default foo")
3024N/A "svcadm disable -s svc:/system/test_enable_svc:default foo")
3024N/A "svcadm disable -s svc:/system/test_enable_svc:default foo")
3024N/A "svcadm refresh svc:/system/test_enable_svc:default foo")
3024N/A "svcadm refresh svc:/system/test_enable_svc:default foo")
3024N/A "svcadm restart svc:/system/test_enable_svc:default foo")
3024N/A "svcadm restart svc:/system/test_enable_svc:default foo")
3024N/A "svcadm mark degraded svc:/system/test_enable_svc:default foo")
3024N/A "svcadm mark degraded svc:/system/test_enable_svc:default foo")
3046N/A "svcadm restart svc:/system/test_restart_svc:default")
3046N/A "svcadm refresh svc:/system/test_refresh_svc:default")
3046N/A "svcadm mark maintenance svc:/system/test_mark_svc:default")
3046N/A "svcadm enable svc:/system/test_enable_svc:default")
3046N/A "svcadm disable -s svc:/system/test_disable_svc:default")