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/samples/vsphere/vcenter/vm/hardware
2017-01-23 15:03:39 -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 folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -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 folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
README.md folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
serial.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -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>