Remove unused DB API and Service object API
Bug #1490381 reported by
Vilobh Meshram
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Vilobh Meshram |
Bug Description
get_rcs_by_bay_uuid / get_pods_
have dead code and is not used by any consumer - magnum client or anyone else. We should clean it up.
Changed in magnum: | |
milestone: | none → mitaka-1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
[ ] $ grep -nR "get_services_ by_bay_ uuid" .
./magnum/ db/api. py:544: def get_services_ by_bay_ uuid(self, bay_uuid): db/sqlalchemy/ api.py: 784: def get_services_ by_bay_ uuid(self, bay_uuid): objects/ service. py:110: db_services = cls.dbapi. get_services_ by_bay_ uuid(bay_ uuid) tests/unit/ db/test_ service. py:150: def test_get_ services_ by_bay_ uuid(self) : tests/unit/ db/test_ service. py:151: res = self.dbapi. get_services_ by_bay_ uuid(self. bay.uuid) tests/unit/ db/test_ service. py:154: def test_get_ services_ by_bay_ uuid_that_ does_not_ exist(self) : tests/unit/ db/test_ service. py:155: res = self.dbapi. get_services_ by_bay_ uuid(magnum_ utils.generate_ uuid())
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
[] $ grep -nR "get_pods_ by_bay_ uuid" . db/api. py:463: def get_pods_ by_bay_ uuid(self, bay_uuid): db/sqlalchemy/ api.py: 690: def get_pods_ by_bay_ uuid(self, context, bay_uuid): objects/ pod.py: 108: db_pods = cls.dbapi. get_pods_ by_bay_ uuid(context, bay_uuid) tests/unit/ db/test_ pod.py: 151: def test_get_ pods_by_ bay_uuid( self): tests/unit/ db/test_ pod.py: 152: res = self.dbapi. get_pods_ by_bay_ uuid(self. context, tests/unit/ db/test_ pod.py: 156: def test_get_ pods_by_ bay_uuid_ that_does_ not_exist( self): tests/unit/ db/test_ pod.py: 158: self.dbapi. get_pods_ by_bay_ uuid, tests/unit/ objects/ test_pod. py:60: with mock.patch. object( self.dbapi, 'get_pods_ by_bay_ uuid',
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
[] $ grep -nR "get_rcs_ by_bay_ uuid" . db/api. py:597: def get_rcs_ by_bay_ uuid(self, bay_uuid): db/sqlalchemy/ api.py: 889: def get_rcs_ by_bay_ uuid(self, bay_uuid): tests/unit/ db/test_ replicationcont roller. py:108: def test_get_ rcs_by_ bay_uuid( self): tests/unit/ db/test_ replicationcont roller. py:109: rc = self.dbapi. get_rcs_ by_bay_ uuid(self. bay.uuid) tests/unit/ db/test_ replicationcont roller. py:112: def test_get_ rcs_by_ bay_uuid_ that_does_ not_exist( self): tests/unit/ db/test_ replicationcont roller. py:113: res = self.dbapi. get_rcs_ by_bay_ uuid(magnum_ utils.generate_ uuid())
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
./magnum/
[ ] $