diff options
author | Tony NIU <niuwl586@gmail.com> | 2013-01-09 20:09:40 +0800 |
---|---|---|
committer | Tony NIU <niuwl586@gmail.com> | 2013-01-15 08:43:28 +0800 |
commit | 9c2c4ece645119fd450783217c359b38584553c8 (patch) | |
tree | b6f13baf986da692864ae621629730cc697e6063 /tests/test_v3.py | |
parent | 9460ff5c35809f4911cb5a1ee5f68d6351e797f4 (diff) | |
download | keystone-9c2c4ece645119fd450783217c359b38584553c8.tar.gz keystone-9c2c4ece645119fd450783217c359b38584553c8.tar.xz keystone-9c2c4ece645119fd450783217c359b38584553c8.zip |
add database string field length check
Added database string field length check, so when insert to a table, if the length of string field exceed the limit of column when, it will return a 400 error instead of truncating the string.
Change-Id: I7216fe736ea6e5a23b5647b107fcb2699f1fa99d
Fixes: bug #1090247
Diffstat (limited to 'tests/test_v3.py')
-rw-r--r-- | tests/test_v3.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_v3.py b/tests/test_v3.py index 9a999585..ed7b5e66 100644 --- a/tests/test_v3.py +++ b/tests/test_v3.py @@ -42,7 +42,7 @@ class RestfulTestCase(test_content_types.RestfulTestCase): def new_endpoint_ref(self, service_id): ref = self.new_ref() - ref['interface'] = uuid.uuid4().hex + ref['interface'] = uuid.uuid4().hex[:8] ref['service_id'] = service_id ref['url'] = uuid.uuid4().hex return ref |