magnum/magnum/tests/unit/db
Accela Zhao fd34adb8e7 Fix method signatures unmatching in db api
There are a few method signatures in db/api.py who unmatches their
children. For example `get_bay_list`

```
    def get_bay_list(self, context, columns=None, filters=None, limit=None,
                     marker=None, sort_key=None, sort_dir=None):
```

The argument `columns` is never being respected or used in children or
elsewhere. After collecting a few opinions we decided to remove the unused
argument `column` from the base methods in db/api.py.

Besides, there is another unmatch in db/api.py

```
def get_service_by_name(self, bay_name):
```

It misses argument `context` compared to its only child in
db/sqlalchemy/api.py. This patch adds the argument `context`.

Closes-Bug: #1459662
Change-Id: If4f60661c9cd182d6bbe4539b3c594fb45744874
2015-06-01 18:56:09 -07:00
..
sqlalchemy Fix continuation line under/over indented problems 2015-05-30 00:16:37 +08:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
base.py Fix continuation line under/over indented problems 2015-05-30 00:16:37 +08:00
test_bay.py Fix method signatures unmatching in db api 2015-06-01 18:56:09 -07:00
test_baylock.py Database changes for conductor horizontal scale 2015-04-11 16:26:45 +00:00
test_baymodel.py Fix continuation line under/over indented problems 2015-05-30 00:16:37 +08:00
test_container.py Fix continuation line under/over indented problems 2015-05-30 00:16:37 +08:00
test_node.py Fix continuation line under/over indented problems 2015-05-30 00:16:37 +08:00
test_pod.py Fix method signatures unmatching in db api 2015-06-01 18:56:09 -07:00
test_replicationcontroller.py Fix method signatures unmatching in db api 2015-06-01 18:56:09 -07:00
test_service.py Fix method signatures unmatching in db api 2015-06-01 18:56:09 -07:00
utils.py Add status_reason field to bay 2015-06-01 10:44:02 +08:00