User Tools

Site Tools


promise:testcases

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
promise:testcases [2015/12/21 15:21]
Arturo Martin de Nicolas
promise:testcases [2016/02/02 07:57] (current)
Gerald Kunzmann updated URL to Promise test cases
Line 1: Line 1:
 **Promise Function Test** **Promise Function Test**
  
 +====== Basic test cases (for Brahmaputra) ======
  
-Test cases for Promise (work in progress){{:​promise:​test_cases.docx|}}+[[http://​testresults.opnfv.org/​testapi/​test_projects/​promise/​cases|Promise test cases]] ​ - to be updated
  
-[[https://​etherpad.opnfv.org/​p/​promise_test_cases|etherpad to discuss ​test cases]]+ 
 +====== Scenario-based ​test cases (for later release) ======
  
 ^ Test ID  ^ Title        ^   Test steps actions ​                ​^ ​ Test steps results ​ ^ ^ Test ID  ^ Title        ^   Test steps actions ​                ​^ ​ Test steps results ​ ^
Line 20: Line 22:
 |TC11    |Reservation of block storage for future use|**Step 1**: Store Current Time ‘T0’.\\ **Step 2**: Create a storage resource reservation.\\ Description:​ Use the Create Storage Resource Reservation operation to reserve a storagePool of 15 GBytes. Indicate ‘T0+200 s’ as start time and ‘T0+3800 s’ as end time.\\ \\ \\ **Step 5**: Store Current Time ‘T1’.\\ **Step 6**: Wait T0+200+1-T1 seconds.\\ **Step 7**: Create a block storage resource using the previous reservation.\\ Description:​ use the Allocate Virtualised Storage Resource operation containing the received reservationId and indicating 15 GBytes as storage size.\\ \\ **Step 10**: terminate the storage resource using the received storageId.\\ \\ **Step 12**: Terminate the storage resource reservation using the received reservationId.|\\ \\ \\ **Step 3**: Verify successful response.\\ **Step 4**: Store the received reservationId.\\ \\ \\ \\ \\ **Step 8**: Verify successful response.\\ **Step 9**: Store received storageId.\\ \\ **Step 11**: Verify successful response.\\ \\ **Step 13**: Verify successful response.| |TC11    |Reservation of block storage for future use|**Step 1**: Store Current Time ‘T0’.\\ **Step 2**: Create a storage resource reservation.\\ Description:​ Use the Create Storage Resource Reservation operation to reserve a storagePool of 15 GBytes. Indicate ‘T0+200 s’ as start time and ‘T0+3800 s’ as end time.\\ \\ \\ **Step 5**: Store Current Time ‘T1’.\\ **Step 6**: Wait T0+200+1-T1 seconds.\\ **Step 7**: Create a block storage resource using the previous reservation.\\ Description:​ use the Allocate Virtualised Storage Resource operation containing the received reservationId and indicating 15 GBytes as storage size.\\ \\ **Step 10**: terminate the storage resource using the received storageId.\\ \\ **Step 12**: Terminate the storage resource reservation using the received reservationId.|\\ \\ \\ **Step 3**: Verify successful response.\\ **Step 4**: Store the received reservationId.\\ \\ \\ \\ \\ **Step 8**: Verify successful response.\\ **Step 9**: Store received storageId.\\ \\ **Step 11**: Verify successful response.\\ \\ **Step 13**: Verify successful response.|
 |TC12   ​|Capacity Management, query|**Step 1**: Discover the total compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the total capacity. As resource type use a compute resource with one VCPU. Specify that you are interested in the total capacity using the filter attribute.\\ \\ \\ **Step 3**: Create a compute resource.\\ Description:​ use the Allocate Virtualised Compute Resource operation. Indicate that the compute resource has one VCPU.\\ \\ \\ **Step 6**: Discover the available compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the available capacity. As resource type use a compute resource with one VCPU. Specify that you are interested in the available capacity using the filter attribute.\\ \\ **Step 8**: Discover the used compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the used capacity. As resource type use a compute resource with one VCPU. Specify that you are interested in the used capacity using the filter attribute.\\ \\ **Step 10**: terminate the compute resource using the received computeId.\\ \\ **Step 12**: Create a compute resource reservation.\\ Description:​ Use the Create Compute Resource Reservation operation to reserve a virtualizationContainer with 3 VCPUs. Omit start time and end time.\\ \\ \\ **Step 15**: Discover the reserved compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the reserved capacity. As computeResourceType use a compute resource with one VCPU. Specify that you are interested in the reserved capacity using the filter attribute.\\ \\ **Step 17**: Terminate the compute resource reservation using the received reservationId.|\\ \\ \\ **Step 2**: Verify the response indicates capacity of 5 .\\ \\ \\ \\ **Step 4**: Verify successful response.\\ **Step 5**: Store received computeId.\\ \\ \\ \\ **Step 7**: Verify the response indicates capacity of 4.\\ \\ \\ \\ **Step 9**: Verify the response indicates capacity of 1.\\ \\ \\ \\ **Step 11**: Verify successful response.\\ \\ \\ **Step 13**: Verify successful response.\\ **Step 14**: Store the received reservationId.\\ \\ **Step 16**: Verify the response indicates capacity of 3.\\ \\ \\ \\ \\ **Step 18**: Verify successful response.| |TC12   ​|Capacity Management, query|**Step 1**: Discover the total compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the total capacity. As resource type use a compute resource with one VCPU. Specify that you are interested in the total capacity using the filter attribute.\\ \\ \\ **Step 3**: Create a compute resource.\\ Description:​ use the Allocate Virtualised Compute Resource operation. Indicate that the compute resource has one VCPU.\\ \\ \\ **Step 6**: Discover the available compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the available capacity. As resource type use a compute resource with one VCPU. Specify that you are interested in the available capacity using the filter attribute.\\ \\ **Step 8**: Discover the used compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the used capacity. As resource type use a compute resource with one VCPU. Specify that you are interested in the used capacity using the filter attribute.\\ \\ **Step 10**: terminate the compute resource using the received computeId.\\ \\ **Step 12**: Create a compute resource reservation.\\ Description:​ Use the Create Compute Resource Reservation operation to reserve a virtualizationContainer with 3 VCPUs. Omit start time and end time.\\ \\ \\ **Step 15**: Discover the reserved compute capacity.\\ Description:​ Use the Query Compute Capacity operation to find out what is the reserved capacity. As computeResourceType use a compute resource with one VCPU. Specify that you are interested in the reserved capacity using the filter attribute.\\ \\ **Step 17**: Terminate the compute resource reservation using the received reservationId.|\\ \\ \\ **Step 2**: Verify the response indicates capacity of 5 .\\ \\ \\ \\ **Step 4**: Verify successful response.\\ **Step 5**: Store received computeId.\\ \\ \\ \\ **Step 7**: Verify the response indicates capacity of 4.\\ \\ \\ \\ **Step 9**: Verify the response indicates capacity of 1.\\ \\ \\ \\ **Step 11**: Verify successful response.\\ \\ \\ **Step 13**: Verify successful response.\\ **Step 14**: Store the received reservationId.\\ \\ **Step 16**: Verify the response indicates capacity of 3.\\ \\ \\ \\ \\ **Step 18**: Verify successful response.|
-|TC13      |Capacity Management, notification|**Step 1**: Subscribe to notifications of capacity changes.\\ Description:​ use the Subscribe operation to get notifications of changes in capacity. Use the filter attribute to specify that changes in total, available, reserved and used capacity should be notified. Specified as resource type a computeResource with 1 VCPU.\\ \\ \\ **Step 4**: Reduce the quota for “Promise” limiting the amount of VCPUs to 3.\\ Note: In this release the created quota will be taken as the total existing capacity by Promise (to be confirmed).\\ \\ \\ **Step ​ 6**: Create a compute resource.\\ Description:​ use the Allocate Virtualised Compute Resource operation indicating 1 VCPU.\\ \\ \\ \\ \\ \\ **Step 10**: Create a compute resource reservation.\\ Description:​ Use the Create Compute Resource Reservation operation to reserve a virtualizationContainer with 1 VCPU. Omit start time and end time.\\ \\ \\ \\ \\ \\ \\  **Step 14**: Terminate the compute resource reservation using the received reservationId.\\ \\ \\ \\ \\  **Step 17**: terminate the compute resource using the received computeId.\\ \\ \\ \\ \\ \\ **Step 20**: Restore the quota for “Promise” to its original value limiting the amount of VCPUs to 5.\\ Note: In this release the created quota will be taken as the total existing capacity by Promise (to be confirmed).|\\ \\ \\ **Step 2**: Verify successful response.\\ **Step 3**: Store the received subscriptionId.\\ \\ \\ \\ **Step 5**: Verify a Notification is received. Verify it indicates that the total capacity equals 3 and the available capacity equals 3.\\ \\ \\ **Step 7**: Verify successful response.\\ **Step 8**: Store the received computeId.\\ **Step 9**: Verify a Notification is received. Verify it indicates that the available capacity equals 2 and the used capacity equals 1.\\ \\ \\ **Step 11**: Verify successful response. \\ **Step 12**: Store the received reservationId.\\ **Step 13**: Verify a Notification is received. Verify it indicates that the available capacity equals 1 and the reserved capacity equals 1.\\ \\ **Step 15**: Verify successful response.\\ **Step 16**: Verify a Notification is received. Verify it indicates that the available capacity equals 2 and the reserved capacity equals 0.\\ \\ **Step 18**: Verify successful response.\\ **Step 19**: Verify a Notification is received. Verify it indicates that the available capacity equals 3 and the used capacity equals 0.\\ \\ **Step 21**: Verify a Notification is received. Verify it indicates that the total capacity equals 5 and the available capacity equals 5.|+|TC13      |Capacity Management, notification|**Step 1**: Subscribe to notifications of capacity changes.\\ Description:​ use the Subscribe operation to get notifications of changes in capacity. Use the filter attribute to specify that changes in total, available, reserved and used capacity should be notified. Specified as resource type a computeResource with 1 VCPU.\\ \\ \\ **Step 4**: Reduce the quota for “Promise” limiting the amount of VCPUs to 3.\\ Note: In this release the created quota will be taken as the total existing capacity by Promise (to be confirmed).\\ \\ \\ **Step ​ 6**: Create a compute resource.\\ Description:​ use the Allocate Virtualised Compute Resource operation indicating 1 VCPU.\\ \\ \\ \\ \\ \\ **Step 10**: Create a compute resource reservation.\\ Description:​ Use the Create Compute Resource Reservation operation to reserve a virtualizationContainer with 1 VCPU. Omit start time and end time.\\ \\ \\ \\ \\ \\ \\  **Step 14**: Terminate the compute resource reservation using the received reservationId.\\ \\ \\ \\ \\ \\ **Step 17**: terminate the compute resource using the received computeId.\\ \\ \\ \\ \\ \\ **Step 20**: Restore the quota for “Promise” to its original value limiting the amount of VCPUs to 5.\\ Note: In this release the created quota will be taken as the total existing capacity by Promise (to be confirmed).|\\ \\ \\ **Step 2**: Verify successful response.\\ **Step 3**: Store the received subscriptionId.\\ \\ \\ \\ **Step 5**: Verify a Notification is received. Verify it indicates that the total capacity equals 3 and the available capacity equals 3.\\ \\ \\ **Step 7**: Verify successful response.\\ **Step 8**: Store the received computeId.\\ **Step 9**: Verify a Notification is received. Verify it indicates that the available capacity equals 2 and the used capacity equals 1.\\ \\ \\ **Step 11**: Verify successful response. \\ **Step 12**: Store the received reservationId.\\ **Step 13**: Verify a Notification is received. Verify it indicates that the available capacity equals 1 and the reserved capacity equals 1.\\ \\ **Step 15**: Verify successful response.\\ **Step 16**: Verify a Notification is received. Verify it indicates that the available capacity equals 2 and the reserved capacity equals 0.\\ \\ **Step 18**: Verify successful response.\\ **Step 19**: Verify a Notification is received. Verify it indicates that the available capacity equals 3 and the used capacity equals 0.\\ \\ **Step 21**: Verify a Notification is received. Verify it indicates that the total capacity equals 5 and the available capacity equals 5.| 
 +|Last   | Clean-up |**Step 1**: Remove CPU quota.\\ **Step 2**: Remove storage quota.\\ **Step 3**: Remove OpenStack project “Promise”.| | 
  
  
promise/testcases.1450711301.txt.gz · Last modified: 2015/12/21 15:21 by Arturo Martin de Nicolas