forked from cloudfoundry/bosh
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
bundle exec rake :
...
1) Bosh::Director::Models::DirectorAttribute validations does not allow attribute with name if one is already found via database (DB uniqueness is important since we rely that only one uuid is used by the director)
Failure/Error: Unable to find matching line from backtrace
expected Sequel::DatabaseError with message matching /column name is not unique/, got #<Sequel::DatabaseError: SQLite3::ConstraintException: UNIQUE constraint failed: director_attributes.name> with backtrace:
# ./bosh/bosh-director/spec/unit/models/director_attribute_spec.rb:112:in `block (4 levels) in '
# ./bosh/bosh-director/spec/unit/models/director_attribute_spec.rb:111:in `block (3 levels) in '
# ./bosh/bosh-director/spec/unit/models/director_attribute_spec.rb:111:in `block (3 levels) in '
Basically the code looks for '/column name is not unique/', but the output from DB is:
'#<Sequel::DatabaseError: SQLite3::ConstraintException: UNIQUE constraint failed: director_attributes.name>'
Metadata
Metadata
Assignees
Labels
No labels