1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-27 03:30:00 -05:00
vsphere-automation-sdk-python/samples/vsphere/vcenter/vm/hardware
Tianhao He b3bea5c03d Adjust the folder strucuture to match what's like in Java project.
1. Move folders around.
2. Remove samples.cfg
3. Remove inventory sample as it's replaced by contentlibrary samples
4. Update README.md under samples/vsphere
2017-01-23 16:50:20 -08:00
..
adapter folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
__init__.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
boot_device.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
boot.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
cdrom.py fix a couple of pep8 format warnings 2017-01-23 15:03:39 -08:00
cpu.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
disk.py Adjust the folder strucuture to match what's like in Java project. 2017-01-23 16:50:20 -08:00
ethernet.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
floppy.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
main.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
memory.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
parallel.py Adjust the folder strucuture to match what's like in Java project. 2017-01-23 16:50:20 -08:00
README.md folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
serial.py Adjust the folder strucuture to match what's like in Java project. 2017-01-23 16:50:20 -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>