Hi, Jean,

    Attached is the slice test cases in AI test suite for your reference.

# ===Target slice test:: tc_slice===
#
# AI slice function coverage:
#
#   - AI engine will create slices with the definition in node
#     <ai_device_vtoc_slices>
#   - If no explicit disk slice is given in the node, AI create slice 0 on
#     the target partition, overwriting and existing slice
#     (* Covered by test case tc_root_device_01)
#   - slice_01: Create slice 0 and 7 with default unit size (MB)
#   - slice_02: Preserve slice 0 and create slice 1
#   - slice_03: Delete slice 0 and 6, then create slice 3
#   - slice_04: Create a slice size larger than partition size should fail
#   - slice_05: If a slice size is "max_size", use the largest 
contiguous free
#     region
#   - slice_06: Slice unit size in MB
#   - slice_07: Slice unit size in GB
#   - slice_08: Slice unit size in TB
#   - slice_09: Slice unit size in sectors


# __stc_assertion_start
#
# ASSERTION: tc_slice_01
#
# PLATFORM: x86,sparc
#
# DESCRIPTION:
#   Create a slice with default size unit, install should succeed
#
# STRATEGY:
#   - Create a testing manifest that specifies
#     target_device_name
#     target_device_use_solaris_partition=true
#     target_device_install_slice_number=7
#     but no <ai_device_partitioning>
#     "Create" slice 0 with size 4096
#     "Create" slice 7 with size 2048
#     don't specify the size unit, using default
#   - Publish the testing manifest to AI service
#   - Create a Solris partition on target disk (x86 only)
#   - Do not create any slice on target disk
#   - Reboot client
#   - Wait until automated install finish and reboot
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_01.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify that slices 0 and 7 are created with the parameters 
matching the
#     value in testing manifest
#
# TEST_AUTOMATION_LEVEL:
#   - automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_02
#
# PLATFORM: x86,sparc
#
# DESCRIPTION:
#   Preserve existing slice 0, create slice 1, and according to AI design,
#   if one is preserved, others will be deleted, slice 7 should be removed
#
# STRATEGY:
#   - Create a testing manifest that specifies:
#     target_device_name
#     but no <ai_device_partitioning>
#     target_device_use_solaris_partition=true
#     preserving the slice 0 which created in case tc_slice_01
#     create a new slice 1
#   - Publish the testing manifest to AI service
#   - Reboot client
#   - Wait until automated install finish and reboot
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_02.xml
#   Check:
#   - The automated installation on client finishes successfully
#   - Verify slice number 1 is created
#   - Verify slice 0 is preserved
#   - Verify slice 7 is removed
#
# TEST_AUTOMATION_LEVEL: automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_03
#
# PLATFORM: x86,sparc
#
# DESCRIPTION:
#   AI Manifest can both create and delete slice, install should succeed
#
# STRATEGY:
#   - Create a testing manifest that specifies
#     target_device_name
#     target_device_use_solaris_partition=true
#     but no <ai_device_partitioning>
#     Delete the existing slice 0
#     Delete the non-existing slice 6 (see bug 6628)
#     Create a new slice 3
#   - Publish the testing manifest to AI service
#   - Reboot client
#   - Wait until automated install finish and reboot
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_03.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify slice 3 is created with the parameters matching the value
#     in testing manifest
#   - Verify slice 0 is removed
#
# TEST_AUTOMATION_LEVEL
#   - automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_04
#
# PLATFORM: x86 only
#
# DESCRIPTION:
#   Create a slice_size larger that partition size, install should fail
#
# STRATEGY:
#   - Create a testing manifest that specifies:
#     target_device_name
#     target_device_use_solaris_partition=false
#     create a new partition
#     create a new slice
#     slice size > partition_size
#   - Publish the testing manifest to AI service
#   - Remove all partitions on target disk
#   - Reboot client
#   - Wait until automated installer fails
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_04.xml
#   Check:
#   - The automated installation fails with error
#
# TEST_AUTOMATION_LEVEL:
#   - automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_05
#
# DESCRIPTION:
#   Create a slice with size "max_size", install should succeed
#
# PLATFORM: x86, sparc
#
# STRATEGY:
#   - Create a testing manifest that specifies:
#     target_device_name
#     target_device_use_solaris_partition=false
#     create a new partition
#     create a new slice
#     slice size=max_size
#   - Publish the testing manifest to AI service
#   - Remove all partitions on target disk (x86)
#   - Reboot client
#   - Wait until automated install finish and reboot
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_05.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify that slice 0 using entire partition is created
#
# TEST_AUTOMATION_LEVEL
#   - automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_06
#
# PLATFORM: x86, sparc
#
# DESCRIPTION:
#   Create slice with size unit in MB
#
# STRATEGY:
#   - Create a testing manifest that:
#     specifies target_device_name
#     target_device_use_solaris_partition=false
#     create slice 0 with size unit in MB
#   - Publish the testing manifest to AI service
#   - Reboot client
#   - Wait until the install finish
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_06.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify slice 0 is created in correct size
#
# TEST_AUTOMATION_LEVEL: automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_07
#
# PLATFORM: x86, sparc
#
# DESCRIPTION:
#   Create slice with size unit in GB
#
# STRATEGY:
#   - Create a testing manifest that:
#     specifies target_device_name
#     target_device_use_solaris_partition=false
#     create slice 0 with size unit in GB
#   - Publish the testing manifest to AI service
#   - Reboot client
#   - Wait until the install finish
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_07.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify slice 0 is created in correct size
#
# TEST_AUTOMATION_LEVEL: automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_08
#
# PLATFORM: x86, sparc
#
# DESCRIPTION:
#   Create slice with size unit in TB
#
# STRATEGY:
#   - Create a testing manifest that:
#     specifies target_device_name
#     target_device_use_solaris_partition=false
#     create slice 0 with size unit in TB
#   - Publish the testing manifest to AI service
#   - Reboot client
#   - Wait until the install finish
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_08.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify slice 0 is created in correct size
#
# TEST_AUTOMATION_LEVEL: automated
#
# __stc_assertion_end


# __stc_assertion_start
#
# ASSERTION: tc_slice_09
#
# PLATFORM: x86, sparc
#
# DESCRIPTION:
#   Create slice with size unit in sectors
#
# STRATEGY:
#   - Create a testing manifest that:
#     specifies target_device_name
#     target_device_use_solaris_partition=false
#     create slice 0 with size unit in sectors
#   - Publish the testing manifest to AI service
#   - Reboot client
#   - Wait until the install finish
#   - Remove testing manifest from AI service
#   Test manifest file:
#   - manifest_slice_09.xml
#   Check:
#   - The automated installation on client can successfully start and finish
#   - Verify slice 0 is created in correct size
#
# TEST_AUTOMATION_LEVEL: automated
#
# __stc_assertion_end


? 2009/9/14 16:29, Jeffrey Huang ??:
> Hi, William,
>
> Not sure if should ask you or Jan? if necessary, please forward to Jan.
>
> Maybe you know, there will be new code in liborchestrator for slice
> modification
> in Extended Partition Install Support project.
>
> As I know, right now, AI already has slice modification.
>
> My question is: How do AI implement this? Will AI call those the code in
> liborchestrator to do slice modification?
>
> If yes, then we hope to use the slice test cases in AI manifest test
> suite to cover the testing of slice code in liborchestrator.
>
> Great Thanks
> Jeffrey
>
>
>
>

Reply via email to