You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>'
The text was updated successfully, but these errors were encountered:
This shouldn’t be caused by your code change. Please check other CI run on travis and see if they have the same issue.
Weian
From: weilanwu [mailto:[email protected]]
Sent: 2014年7月2日 16:58
To: HuaweiTech/bosh
Subject: [bosh] bosh unit test failed with non matching SQL error message (#7)
bundle exec rake :
...
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>'
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7.
bundle exec rake
:...
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>'
The text was updated successfully, but these errors were encountered: