Chandan Purushothama created CLOUDSTACK-6439:
------------------------------------------------

             Summary: [Automation] Assertion Error: Fix the script - provision 
type is not returned by listDiskOfferings response
                 Key: CLOUDSTACK-6439
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6439
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Automation
    Affects Versions: 4.4.0
         Environment: Basic Zone
XenServer 
            Reporter: Chandan Purushothama
            Priority: Blocker
             Fix For: 4.4.0



=============
Assertion Error:
=============
Check provisionig type in createServiceOffering
-------------------- >> begin captured logging << --------------------
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: 
::::::::::::STARTED : TC: test_02_create_sparse_type_disk_offering :::::::::::
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: sending 
GET request: createDiskOffering {'name': 'Sparse Type Disk offering', 
'disksize': 1, 'displaytext': 'Sparse Type Disk offering'}
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Computed 
Signature by Marvin: m0/TZdrSBwiGRHLEVS5pdjF/y0U=
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
(1): 10.223.240.161
requests.packages.urllib3.connectionpool: DEBUG: "GET 
/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&name=Sparse+Type+Disk+offering&command=createDiskOffering&disksize=1&signature=m0%2FTZdrSBwiGRHLEVS5pdjF%2Fy0U%3D&displaytext=Sparse+Type+Disk+offering&response=json
 HTTP/1.1" 200 297
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Request: 
http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&name=Sparse+Type+Disk+offering&command=createDiskOffering&disksize=1&signature=m0%2FTZdrSBwiGRHLEVS5pdjF%2Fy0U%3D&displaytext=Sparse+Type+Disk+offering&response=json
 Response: { "creatediskofferingresponse" :  { "diskoffering" : 
{"id":"ffece54d-6736-4d72-8426-6eeade833db8","name":"Sparse Type Disk 
offering","displaytext":"Sparse Type Disk 
offering","disksize":1,"created":"2014-04-16T15:52:37-0700","iscustomized":false,"storagetype":"shared","displayoffering":true}
 }  }
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Created 
Disk offering with ID: ffece54d-6736-4d72-8426-6eeade833db8
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: sending 
GET request: listDiskOfferings {'id': u'ffece54d-6736-4d72-8426-6eeade833db8'}
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Computed 
Signature by Marvin: XtzgOFFqAn/1FdLA2F+/yDvHKbQ=
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
(1): 10.223.240.161
requests.packages.urllib3.connectionpool: DEBUG: "GET 
/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&id=ffece54d-6736-4d72-8426-6eeade833db8&command=listDiskOfferings&signature=XtzgOFFqAn%2F1FdLA2F%2B%2FyDvHKbQ%3D&response=json
 HTTP/1.1" 200 310
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Request: 
http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&id=ffece54d-6736-4d72-8426-6eeade833db8&command=listDiskOfferings&signature=XtzgOFFqAn%2F1FdLA2F%2B%2FyDvHKbQ%3D&response=json
 Response: { "listdiskofferingsresponse" : { "count":1 ,"diskoffering" : [  
{"id":"ffece54d-6736-4d72-8426-6eeade833db8","name":"Sparse Type Disk 
offering","displaytext":"Sparse Type Disk 
offering","disksize":1,"created":"2014-04-16T15:52:37-0700","iscustomized":false,"storagetype":"shared","displayoffering":true}
 ] } }
test_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): CRITICAL: 
FAILED: test_02_create_sparse_type_disk_offering: Traceback (most recent call 
last):
  File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "/root/asf/cloudstack/test/integration/smoke/test_disk_offerings.py", 
line 153, in test_02_create_sparse_type_disk_offering
    "Check provisionig type in createServiceOffering"
  File "/usr/local/lib/python2.7/unittest/case.py", line 511, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/local/lib/python2.7/unittest/case.py", line 504, in 
_baseAssertEqual
    raise self.failureException(msg)
AssertionError: Check provisionig type in createServiceOffering

--------------------- >> end captured logging << ---------------------

Stacktrace

  File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "/root/asf/cloudstack/test/integration/smoke/test_disk_offerings.py", 
line 153, in test_02_create_sparse_type_disk_offering
    "Check provisionig type in createServiceOffering"
  File "/usr/local/lib/python2.7/unittest/case.py", line 511, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/local/lib/python2.7/unittest/case.py", line 504, in 
_baseAssertEqual
    raise self.failureException(msg)
'Check provisionig type in createServiceOffering\n-------------------- >> begin 
captured logging << 
--------------------\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: 
::::::::::::STARTED : TC: test_02_create_sparse_type_disk_offering 
:::::::::::\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: sending 
GET request: createDiskOffering {\'name\': \'Sparse Type Disk offering\', 
\'disksize\': 1, \'displaytext\': \'Sparse Type Disk 
offering\'}\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Computed 
Signature by Marvin: 
m0/TZdrSBwiGRHLEVS5pdjF/y0U=\nrequests.packages.urllib3.connectionpool: INFO: 
Starting new HTTP connection (1): 
10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET 
/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&name=Sparse+Type+Disk+offering&command=createDiskOffering&disksize=1&signature=m0%2FTZdrSBwiGRHLEVS5pdjF%2Fy0U%3D&displaytext=Sparse+Type+Disk+offering&response=json
 HTTP/1.1" 200 297\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Request: 
http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&name=Sparse+Type+Disk+offering&command=createDiskOffering&disksize=1&signature=m0%2FTZdrSBwiGRHLEVS5pdjF%2Fy0U%3D&displaytext=Sparse+Type+Disk+offering&response=json
 Response: { "creatediskofferingresponse" :  { "diskoffering" : 
{"id":"ffece54d-6736-4d72-8426-6eeade833db8","name":"Sparse Type Disk 
offering","displaytext":"Sparse Type Disk 
offering","disksize":1,"created":"2014-04-16T15:52:37-0700","iscustomized":false,"storagetype":"shared","displayoffering":true}
 }  }\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Created 
Disk offering with ID: 
ffece54d-6736-4d72-8426-6eeade833db8\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: sending 
GET request: listDiskOfferings {\'id\': 
u\'ffece54d-6736-4d72-8426-6eeade833db8\'}\ntest_02_create_sparse_type_disk_offering
 (integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: 
Computed Signature by Marvin: 
XtzgOFFqAn/1FdLA2F+/yDvHKbQ=\nrequests.packages.urllib3.connectionpool: INFO: 
Starting new HTTP connection (1): 
10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET 
/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&id=ffece54d-6736-4d72-8426-6eeade833db8&command=listDiskOfferings&signature=XtzgOFFqAn%2F1FdLA2F%2B%2FyDvHKbQ%3D&response=json
 HTTP/1.1" 200 310\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): DEBUG: Request: 
http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&id=ffece54d-6736-4d72-8426-6eeade833db8&command=listDiskOfferings&signature=XtzgOFFqAn%2F1FdLA2F%2B%2FyDvHKbQ%3D&response=json
 Response: { "listdiskofferingsresponse" : { "count":1 ,"diskoffering" : [  
{"id":"ffece54d-6736-4d72-8426-6eeade833db8","name":"Sparse Type Disk 
offering","displaytext":"Sparse Type Disk 
offering","disksize":1,"created":"2014-04-16T15:52:37-0700","iscustomized":false,"storagetype":"shared","displayoffering":true}
 ] } }\ntest_02_create_sparse_type_disk_offering 
(integration.smoke.test_disk_offerings.TestCreateDiskOffering): CRITICAL: 
FAILED: test_02_create_sparse_type_disk_offering: Traceback (most recent call 
last):\n  File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run\n  
  testMethod()\n  File 
"/root/asf/cloudstack/test/integration/smoke/test_disk_offerings.py", line 153, 
in test_02_create_sparse_type_disk_offering\n    "Check provisionig type in 
createServiceOffering"\n  File "/usr/local/lib/python2.7/unittest/case.py", 
line 511, in assertEqual\n    assertion_func(first, second, msg=msg)\n  File 
"/usr/local/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual\n    
raise self.failureException(msg)\nAssertionError: Check provisionig type in 
createServiceOffering\n\n--------------------- >> end captured logging << 
---------------------'



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to