aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests
Commit message (Collapse)AuthorAgeFilesLines
* tools: Remove the vtpm process modelMatthew Fioravante2012-11-1312-953/+0
| | | | | | | | | Remove the old vtpm process model. It doesn't work very well and is no longer supported. Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* Remove unmaintained Access Control Module (ACM) from hypervisor.Keir Fraser2011-03-2516-2271/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* cpupools [5/6]: xm-test add-onsKeir Fraser2010-04-2110-2/+696
| | | | Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
* xend: Add support for URI ('file:' and 'data:' scheme) for PV/kernelKeir Fraser2009-08-252-1/+67
| | | | | | | | | | | | | | | | | | | | | and PV/ramdisk Add support for 'file:' and 'data:' URI schemes for the parameters 'PV/kernel' and 'PV/ramdisk' in the VM.create() call. The 'data:' scheme handling enables using a file which is stored inside the management system (from where the XenAPI call is send) as kernel or ramdisk. Notes: o all included: a detailed description can be found in the xenapi documentation o bumped up the version of the API document to 1.0.8 (because of (minimal) interface extension) o Future enhancements (like http:, ftp: schemes) fit seamlessly into the current design / classes o Unittest cases and xm-test case included Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Fix testcase '11_block_attach_shared_dom0' for up-to dateKeir Fraser2009-08-201-2/+2
| | | | | | | | | linux kernels New kernels have ext2 disabled by default. This fix uses ext3 for testcase 11_block_attach_shared_dom0. Signed-off-by: Andreas Florath <xen@flonatel.org>
* Fix xapi xm-tests.Keir Fraser2009-08-202-45/+90
| | | | | | | | | | | | | | | | There were a couple of small bugs in the xapi xm-test: o outdated XenAPI calls were removed from testcase (02_xapi-vbd_basic) o minor problem with XendLocalStorageRepository is fixed (missed list_images() function - which is moved from the XenQCoWStroageRepo to the common base class XendStorageRepository) which was detected running 02_xapi-vbd_basic. o XenAPI session handling and connecting is fixed. o 03_xapi-network_pos was rewritten and now uses XenAPI. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test restore: use ext3 (instead of ext2) and xvda (instead of hda)Keir Fraser2009-08-051-17/+17
| | | | | | | | | This patch fixes the xm-test restore 04 testcase: o uses ext3 instead of ext2 - which is not supported by the standard kernel config o uses xvdX instead of hdX for disks Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: fix network13 test (protocol and extensions)Keir Fraser2009-08-051-17/+29
| | | | | | | | | | | Attached there is a patch that fixes the used protocol (was udp - but nobody was listening...) to icmp echo and added the extension, that the dom0 and the other guest ips are also pinged. Because of the many different scenarios (three nested loops) over packet sizes, two guests and different ip addresses, one run of this test case takes now about 4.5 minutes. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Adapt memory setting to up-to-date kernel memory consumptionKeir Fraser2009-08-051-1/+1
| | | | | | | | | | The attached patch fixes xm-test memset 04 that it can be used with up to date kernels. The old version sets the memory to 15MByte which is too low for modern kernels: the oom-killer in this case kills the login shell of the test-case and init. Increased the size to 18M which gives the userspace about 2.5 MByte memory. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: 10_block_attach_detach_multiple_devices fixedKeir Fraser2009-08-052-32/+40
| | | | | | | | This patch fixes and (re-)enables test 10 of the block-create suite. The tests by random attach and detach devices to / from a domU and checks if everything is ok. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test block-create: use ext3 as filesystemKeir Fraser2009-08-051-2/+4
| | | | | | | | | The current implementation uses ext2 for tests. The tests currently fail, because the current kernel does not support ext2 by default. This patch creates an ext3 filesystem for the tests. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Fix memset 01 and 02 tests: add support for sysfs memory interfaceKeir Fraser2009-07-292-41/+8
| | | | | From: Andreas Florath <xen@flonatel.org> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xm-test: Remove a policy reset from acm test caseKeir Fraser2008-07-031-5/+0
| | | | | | | | Remove the resetting of the policy from this point in the test case since the new default policy has the '__UNLABELED__' label, which is not expected in subsequent checks. Signed-off-by; Stefan Berger <stefanb@us.ibm.com>
* xm-test: Have domains deleted if they are managed domainsKeir Fraser2008-03-031-2/+2
| | | | | | | Have the domains deleted if they are managed by xend and the tests are run with '-md' as parameter to runtest.sh. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* tools/docs: Fix example and default IP addresses.Keir Fraser2008-01-172-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In various places in documentation and code, IP addresses are provided as examples, defaults, or dummy configuration. In general the specific IP addresses used in Xen are not always appropriate. (For example, 1.2.3.4 is used in a few places!) The following addresses should be used: * For examples and documentation, 192.0.2.0/24. (See RFC3330.) * For defaults for private networks, a random network from RFC1918. I have randomly selected 172.30.206.0/24 for this purpose and documented this in at the only registry I know of, www.ucam.org/cam-grin. This network should henceforth be used for default configurations of local bridges, test networks, etc. in Xen tools. The following addresses should NOT be used: * 10.0.*.*, 10.1.*.*, 192.168.0.*, 192.168.1.*, etc. Using these addresses gives greatly increased likelihood of collision, as ignorant network administrators and reckless middlebox vendors often pick networks from the bottom of 10/8 and 192.168/16. * 169.254.*.*. These are reserved for zeroconf (ad-hoc networking) and should not be used for Xen private networks, bridges, etc., etc. Use of these addresses by Xen scripts causes trouble on hosts (eg laptops) which find themselves in ad-hoc networking environments. I think this is not hypothetical (!) since at least one Linux distribution have specific code to detect this case and cause Xen startup to fail iff the host already has an external zeroconf address. * 1.2.3.4. WTF !? I have also used 127.0.255.255 in one place where apparently a dummy address is needed (some Linux kernels won't accept a lack of an NFS server address). If 127.0.255.255 is mistakenly used it is unlikely to do any damage to real traffic even if it does escape into the network at large. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xm-test: Don't run security test if ACM is not enabled.Keir Fraser2007-12-101-1/+10
| | | | | | | | | I forgot to put in the check to prevent this test case from running when ACM is not compiled into Xen. I am resetting the policy so that an update with the prepared policy can be done without changing that policy's header to match the current policy's version. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test, acm: fixes an API call due to recent changes.Keir Fraser2007-12-081-1/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: An additional ACM security test case for the test suite.Keir Fraser2007-12-063-3/+472
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Implement legacy XML-RPC interface for ACM commands.Keir Fraser2007-12-052-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch implements a (non Xen-API) legacy XML-RPC interface for the ACM commands and funnels the calls into code introduced by the Xen-API support for ACM security management. Since some of the functionality has changed, also the xm applications have changed. In particular the following old commands have been removed along with some tools the have become obsolete now: - loadpolicy (included in: setpolicy) - makepolicy (included in: setpolicy) - cfgbootpolicy (included in: setpolicy) and the following commands been introduced: - setpolicy - getpolicy - resetpolicy All tools have been adapted to work in Xen-API and legacy XML-RPC mode. Both modes support the same functionality. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: various fixesKeir Fraser2007-10-252-2/+5
| | | | | | | | | | | - recently I added an other_config field to the VTPM record which now needs to be accounted for otherwise the test determines a bad key - the dry-run command was throwing a different type of exception (ACMError) than what was caught (XSMError) - the tests based on the raw Xen-API need to build the PV_args parameters from the old 'root' and 'extra' parameters. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Fix xm-test python import after XSM security changes.kfraser@localhost.localdomain2007-09-064-4/+7
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [ACM] Some more fixeskfraser@localhost.localdomain2007-07-302-0/+18
| | | | | | | | | | | - don't reload the policy if it has been loaded - don't always load the policy in the test suite when the policy is already loaded - skip tests 07 and 09 when ACM is not enabled and xm is not using the Xen-API - fix a problem when trying to remove an invalid label Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [Xm-Test] Additional tests for the xm-test suitekfraser@localhost.localdomain2007-07-186-10/+1200
| | | | | | | This adds a couple of test cases exercising the new policy management functionality to the security tests. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [VTPM] Make vTPM hotplug scripts use the UUID of the vTPM instancekfraser@localhost.localdomain2007-07-179-97/+38
| | | | | | | | | | Make the vTPM hotplug script use the UUID of the vTPM instance for associating it with its instance number rather than the name of the domain. Also change the cleanup in the xm test to use the atexit mechanism rather than explicitly calling a function to clean up. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Extended the physinfo sysctl to export NUMA cpu_to_node topology info.kfraser@localhost.localdomain2007-07-061-3/+1
| | | | | | Print this in 'xm info'. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XM-TEST] Add test for new network functionsTom Wilkie2007-04-262-1/+73
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* [XM-TEST] Move network_utils.py to lib directoryTom Wilkie2007-04-264-59/+3
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* acm: Changes to XML schema of the policykfraser@localhost.localdomain2007-04-251-0/+1
| | | | | | | | | | | This patch changes the XML schema of the ACM policy to require a version and that every conflict set have a name. Every VM label must have one Chinese Wall Type and every resource label one Simple Type Enforcement Type. As a consequence of this some example policies needed to be changed. Also not offering that many configuration options for compiling xen anymore to make things simpler. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [vtpm] Return a proper error when in the Xen-API call.Keir Fraser2007-04-191-1/+1
| | | | | | Fix a bug in the test. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Make 06_destroy_dom0_neg pass with xm via XenAPI.Tom Wilkie2007-03-261-1/+1
| | | | | | Make check case insensitive. signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix typos.Ewan Mellor2007-03-232-2/+2
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Replace tabs with spaces.Ewan Mellor2007-03-2318-45/+44
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Change the eyecatcher to be case-insensitive, so that "Internal error" isEwan Mellor2007-03-202-4/+4
| | | | | | detected. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Have xm-test wait for the network device to detach. This is an asynchronousEwan Mellor2007-03-201-0/+19
| | | | | | process, so xm-test needs to poll. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix typo in xm-test.Ewan Mellor2007-03-141-1/+1
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* [XM-TEST] vTPM test changeskfraser@localhost.localdomain2007-03-132-2/+3
| | | | | | | | Remove an uninitialized variable. For some reason the 'ps aux' command does not see the process anymore (since some time on the weekend). Need to add 'COLUMNS=n'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Make the VTPM.destroy method return 'void' upon success and adapt theEwan Mellor2007-03-091-4/+5
| | | | | | test case to reflect that. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.kfraser@localhost.localdomain2007-02-261-9/+9
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Copy the definition of DOM0_UUID into XenDomain so that we don't need to importEwan Mellor2007-02-011-2/+1
| | | | | | large swathes of the server to run the Xen-API tests. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Align vTPM support in the Xen-API, documentation and lib-xenkaf24@localhost.localdomain2007-01-301-17/+104
| | | | | | (after the recent changes). Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [XEND] Fix get_dev_property_by_uuidAlastair Tse2007-01-222-1/+131
| | | | | | | | | | | This patch replaces calls to get_dev_property() by calls to get_dev_property_by_uuid() in XenAPI.py and fixes the implementation of get_dev_property_by_uuid. I am adding a test case to the xapi grouptests to verify the fixes. There's a FIXME note in the test case which should be looked at. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* This patch does the following:Ewan Mellor2007-01-113-52/+127
| | | | | | | | | | | | | | | - renames the XenManagedDomain.py file to XenAPIDomain.py, since this name better reflects its functionality/purpose - adds domain tracking to the XenAPIDomain class so that xend-managed domains can be deleted in an 'atexit' handler upon test case termination - adds one basic xapi-related test which is part of the grouptests 'xapi' - refactors the vtpm-related test using xen-api and adds it to the grouptest 'xapi' - adds documentation to the README for how to configure xm and xend to use XML-RPC or Xen-API for communication Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Update sched-credit test to match new format from xm sched-credit.Ewan Mellor2007-01-091-13/+20
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to checkSteven Hand2007-01-041-2/+6
| | | | | | block device has gone away from point of view of domain sxp. Signed-off-by: Steven Hand <steven@xensource.com>
* This patch provides XmTestManagedDomain and XenManagedDomain classesEwan Mellor2006-12-012-1/+78
| | | | | | | | | | | | | | | | | | | similar to the XmTestDomain and XenDomain classes. I have wrapped the xen-api for VM configuration creation, starting and stopping of VMs and destruction of the VM configuration in the XenManagedDomain class's methods. No device-related functions are provided through the class. The managed domains' UUIDs are tracked and all created VMs are destroyed upon failure or skipping of the test or by calling xapi.vm_destroy_all(). I am adding a new grouptest 'xapi' for running xen-api tests. Only caveat: I am using an empty username and password (XmTestList/xapi.py) with Xend's authentication deactivated to run these tests. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less thanAlastair Tse2006-11-093-3/+3
| | | | | | | | | expected. Now that xm list outputs the real system memory allocation, this can be 1-2MB less than expected. Signed-off-by: Alastair Tse <atse@xensource.com>
* Correct copy-n-paste error.Ewan Mellor2006-11-011-4/+2
| | | | | | Also Whitespace cleanups. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
* Update all block tests to use the Xen Virtual Block Device (xvd) rather than ↵Ewan Mellor2006-11-0122-130/+128
| | | | | | | | | | | | IDEor SCSI. This patch also modifies 09_block_attach_and_dettach_device_check_data_pos.py to force / to be read-write otherwise the mkdir fails. Also Whistspace cleanups. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
* The XenDomain class does not respect the arch defaults whereEwan Mellor2006-11-011-8/+3
| | | | | | | | | | | as XmTestDomain does. This part of the patch forces both HVM and non-HVM tests to use XmTestDomain. With appropriate changes to the extraConfig arg. On PPC we need to use the arch defaults to get the console setup correctly. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
* Fix Memory assumptions in the create tests.Ewan Mellor2006-10-244-7/+16
| | | | | | Use the architecture specified idea of minimum memory. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>