Changes between Version 43 and Version 44 of GENIRacksHome/ExogeniRacks/AggregateSurvey


Ignore:
Timestamp:
04/25/12 16:10:23 (12 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIRacksHome/ExogeniRacks/AggregateSurvey

    v43 v44  
    1313== AM API Acceptance Tests ==
    1414
    15 Using the RSpec from the previous survey was not able to run the test with the same options as on 04/25/2012.  The AM API acceptance tests default to RSpec V3 while the RSpec are V2, this was not a problem last time, but now seems to cause all 13 tests to fail, see [xxx] for details. So  Re-run acceptance test with the new argument "--ProtoGENIv2" for the V2 RSpecs:
    16 {{{
    17 
    18 }}}
    19 
    20 
    21 
    22 }}}
    23 
    24 The acceptance test log is attached as [http://groups.geni.net/geni/attachment/wiki/GENIRacksHome/ExogeniRacks/AggregateSurvey/exogeni-log-20120425.txt exogeni-log-20120425.txt].
     15Using the RSpec from the previous survey was not able to run the test with the same options as on 04/25/2012.  The AM API acceptance test defaults to RSpec V3 while the RSpec are V2, this was not reported as a problem last time, but now seems to cause all 13 tests to fail. If interested in this mismatched scenario, see the [http://groups.geni.net/geni/attachment/wiki/GENIRacksHome/ExogeniRacks/AggregateSurvey/failed-v3-support.txt command output] and the [http://groups.geni.net/geni/attachment/wiki/GENIRacksHome/ExogeniRacks/AggregateSurvey/exogeni-log-20120425.txt log] for details.
     16
     17Re-run acceptance test with the new argument "--ProtoGENIv2" for the V2 RSpecs:
     18{{{
     19$ ./am_api_accept.py -a am-undertest -V 2 --debug --ProtoGENIv2
     20F.F....E..EE.
     21======================================================================
     22ERROR: test_ListResources: Passes if 'ListResources' returns an advertisement RSpec.
     23----------------------------------------------------------------------
     24Traceback (most recent call last):
     25  File "./am_api_accept.py", line 328, in test_ListResources
     26    self.subtest_ListResources()
     27  File "./am_api_accept.py", line 607, in subtest_ListResources
     28    self.assertRspecType( rspec, 'advertisement', typeOnly=typeOnly)
     29  File "/home/lnevers/gcf-1.6.1/src/omni_unittest.py", line 161, in assertRspecType
     30    if not rspec_util.is_rspec_of_type( rspec, type=type, version=version, typeOnly=typeOnly ):
     31  File "/home/lnevers/gcf-1.6.1/src/geni/util/rspec_util.py", line 110, in is_rspec_of_type
     32    if actual_type.lower() != type.lower():
     33AttributeError: 'NoneType' object has no attribute 'lower'
     34
     35======================================================================
     36ERROR: test_ListResources_geni_available: Passes if 'ListResources' returns an advertisement RSpec.
     37----------------------------------------------------------------------
     38Traceback (most recent call last):
     39  File "./am_api_accept.py", line 342, in test_ListResources_geni_available
     40    self.subtest_ListResources()
     41  File "./am_api_accept.py", line 607, in subtest_ListResources
     42    self.assertRspecType( rspec, 'advertisement', typeOnly=typeOnly)
     43  File "/home/lnevers/gcf-1.6.1/src/omni_unittest.py", line 161, in assertRspecType
     44    if not rspec_util.is_rspec_of_type( rspec, type=type, version=version, typeOnly=typeOnly ):
     45  File "/home/lnevers/gcf-1.6.1/src/geni/util/rspec_util.py", line 110, in is_rspec_of_type
     46    if actual_type.lower() != type.lower():
     47AttributeError: 'NoneType' object has no attribute 'lower'
     48
     49======================================================================
     50ERROR: test_ListResources_geni_compressed: Passes if 'ListResources' returns an advertisement RSpec.
     51----------------------------------------------------------------------
     52Traceback (most recent call last):
     53  File "./am_api_accept.py", line 335, in test_ListResources_geni_compressed
     54    self.subtest_ListResources()
     55  File "./am_api_accept.py", line 607, in subtest_ListResources
     56    self.assertRspecType( rspec, 'advertisement', typeOnly=typeOnly)
     57  File "/home/lnevers/gcf-1.6.1/src/omni_unittest.py", line 161, in assertRspecType
     58    if not rspec_util.is_rspec_of_type( rspec, type=type, version=version, typeOnly=typeOnly ):
     59  File "/home/lnevers/gcf-1.6.1/src/geni/util/rspec_util.py", line 110, in is_rspec_of_type
     60    if actual_type.lower() != type.lower():
     61AttributeError: 'NoneType' object has no attribute 'lower'
     62
     63======================================================================
     64FAIL: test_CreateSliver: Passes if the sliver creation workflow succeeds.  Use --rspec-file to replace the default request RSpec.
     65----------------------------------------------------------------------
     66Traceback (most recent call last):
     67  File "./am_api_accept.py", line 625, in test_CreateSliver
     68    self.subtest_CreateSliverWorkflow()
     69  File "./am_api_accept.py", line 659, in subtest_CreateSliverWorkflow
     70    self.assertRspecType( request, 'request')
     71  File "/home/lnevers/gcf-1.6.1/src/omni_unittest.py", line 165, in assertRspecType
     72    raise WrongRspecType, msg
     73WrongRspecType: RSpec expected to have type 'request' but schema was not correct.
     74
     75======================================================================
     76FAIL: test_CreateSliverWorkflow_multiSlice: Do CreateSliver workflow with multiple slices and ensure can not do ListResources on slices with the wrong credential.
     77----------------------------------------------------------------------
     78Traceback (most recent call last):
     79  File "./am_api_accept.py", line 935, in test_CreateSliverWorkflow_multiSlice
     80    self.assertRspecType( "".join(request[i]), 'request')
     81  File "/home/lnevers/gcf-1.6.1/src/omni_unittest.py", line 165, in assertRspecType
     82    raise WrongRspecType, msg
     83WrongRspecType: RSpec expected to have type 'request' but schema was not correct.
     84
     85----------------------------------------------------------------------
     86Ran 13 tests in 319.353s
     87
     88FAILED (failures=2, errors=3)
     89
     90}}}
     91
     92The acceptance test log for the 2 failures and 3 errors is attached as [xxxx].
    2593
    2694== Experiments with Omni Commands ==