From: Morgan Richomme Date: Fri, 29 Jan 2016 16:20:22 +0000 (+0100) Subject: Add promise section from patch 8361 of Gerald X-Git-Tag: brahmaputra.1.0~84 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F8595%2F1;p=functest.git Add promise section from patch 8361 of Gerald Change-Id: I106239377020cedafa64ba58cbc765fd9dab7d61 Signed-off-by: Morgan Richomme (cherry picked from commit 1b268ef0cbf5324dffcd5c23ca2c36549ee2833a) --- diff --git a/docs/userguide/index.rst b/docs/userguide/index.rst index 8cd09ae9b..ba20507b1 100644 --- a/docs/userguide/index.rst +++ b/docs/userguide/index.rst @@ -368,7 +368,53 @@ essential functions needed for a NFV system. Promise ^^^^^^^ -TODO promise +Promise provides a basic set of test cases as part of Brahmaputra. + +The available 33 test cases can be grouped into 7 test suites: + + #. Add a new OpenStack provider into resource pool: Registers + OpenStack into a new resource pool and adds more capacity associated + with this pool. + + #. Allocation without reservation: Creates a new server in OpenStack + and adds a new allocation record in Promise shim-layer. + + #. Allocation using reservation for immediate use: Creates a resource + reservation record with no start/end time and immediately creates a new + server in OpenStack and add a new allocation record in Promise + shim-layer. + + #. Reservation for future use: Creates a resource reservation record + for a future start time, queries, modifies and cancels the newly created + reservation. + + #. Capacity planning: Decreases and increases the available capacity + from a provider in the future and queries the available collections and + utilizations. + + #. Reservation with conflict: Tries to create reservations for + immediate and future use with conflict. + + #. Cleanup test allocations: Destroys all allocations in OpenStack. + +The test results are pushed into the LF test DB: + * Duration of the Promise test case + * Number of tests / failures + +The specific parameters for Promise can be found in config_functest.yaml and +include:: + + promise: + general: + tenant_name: Name of the OpenStack tenant/project (e.g. promise) + tenant_description: Description of the OpenStack tenant (e.g. promise Functionality Testing) + user_name: Name of the user tenant (e.g. promiser) + user_pwd: Password of the user tenant (e.g. test) + image_name: Name of the software image (e.g. promise-img) + flavor_name: Name of the flavor (e.g. promise-flavor with 1 vCPU and 512 MB RAM) + flavor_vcpus: 1 + flavor_ram: 512 + flavor_disk: 0 Manual testing