← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1256344] Re: jsonschema min_version requirements are not sufficient

 

I think this bug can be closed as I don't see this any more.

** Changed in: nova
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1256344

Title:
  jsonschema min_version requirements are not sufficient

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  The unit tests are failing with the current min_version for
  jsonschema==1.3.0. This is due to the following reason:

  validators is a 'dict' in 1.3.0 so there's no extend method. In 2.0.0
  it's a class with extend method defined. So it's better to update
  min_version to 2.0.0.

  The errors seen are:

  ======================================================================
  FAIL: nova.tests.test_api_validation.AdditionalPropertiesDisableTestCase.test_validate_additionalProperties_disable
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 133, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.AdditionalPropertiesEnableTestCase.test_validate_additionalProperties_enable
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 106, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.IntegerRangeTestCase.test_validate_integer_range
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 302, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.IntegerTestCase.test_validate_integer
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 245, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.StringLengthTestCase.test_validate_string_length
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 207, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.StringLengthTestCase.test_validate_string_length_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 207, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.StringTestCase.test_validate_string
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 161, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.StringTestCase.test_validate_string_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 161, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.UuidTestCase.test_validate_uuid_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 352, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.AdditionalPropertiesDisableTestCase.test_validate_additionalProperties_disable_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 133, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.IntegerRangeTestCase.test_validate_integer_range_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 302, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.IntegerTestCase.test_validate_integer_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 245, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.RequiredDisableTestCase.test_validate_required_disable
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 52, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.RequiredEnableTestCase.test_validate_required_enable
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 77, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.RequiredEnableTestCase.test_validate_required_enable_fails
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 77, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

  
  ======================================================================
  FAIL: nova.tests.test_api_validation.UuidTestCase.test_validate_uuid
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/tests/test_api_validation.py", line 352, in setUp
      @validation.schema(request_body_schema=schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/__init__.py", line 36, in schema
      schema_validator = _SchemaValidator(request_body_schema)
    File "/tmp/buildd/nova-2014.1.dev990.g2c795f0/nova/api/validation/validators.py", line 51, in __init__
      validator_cls = jsonschema.validators.extend(self.validator_org,
  AttributeError: 'dict' object has no attribute 'extend'

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1256344/+subscriptions