1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-23 18:10:00 -05:00
vsphere-automation-sdk-python/vsphere/samples/vcenter/vm/hardware
2017-01-16 21:24:30 -08:00
..
adapter remove samples/src folder 2017-01-16 21:24:30 -08:00
__init__.py remove samples/src folder 2017-01-16 21:24:30 -08:00
boot_device.py remove samples/src folder 2017-01-16 21:24:30 -08:00
boot.py remove samples/src folder 2017-01-16 21:24:30 -08:00
cdrom.py remove samples/src folder 2017-01-16 21:24:30 -08:00
cpu.py remove samples/src folder 2017-01-16 21:24:30 -08:00
disk.py remove samples/src folder 2017-01-16 21:24:30 -08:00
ethernet.py remove samples/src folder 2017-01-16 21:24:30 -08:00
floppy.py remove samples/src folder 2017-01-16 21:24:30 -08:00
main.py remove samples/src folder 2017-01-16 21:24:30 -08:00
memory.py remove samples/src folder 2017-01-16 21:24:30 -08:00
parallel.py remove samples/src folder 2017-01-16 21:24:30 -08:00
README.md remove samples/src folder 2017-01-16 21:24:30 -08:00
serial.py remove samples/src folder 2017-01-16 21:24:30 -08:00

This directory contains the samples for the vCenter VM hardware APIs.

You have two options to run samples inside this package:

  1. Run the whole test suite contains all vcenter samples using main.py in setup package. Please see README in setup package for detailed steps.

  2. Run individual sample on existing environment. You can either pass the environment parameters through command line arguments or specify them in setup.py in setup package. TODO: have property file in each test folder.

    For example, to run memory sample in vcenter.vm.hardware package:

    • Navigate to bin folder.

    • To run the sample with settings specified in setup.py in linux machine:

      $ ./run_sample.sh ../samples/vcenter/vm/hardware/memory.py

    • Or specify the credentials via command line input:

      $ ./run_sample.sh ../samples/vcenter/vm/hardware/memory.py
      -s -u -p -n <vm_name>