Move route URL to apis/route.openshift.io
oapi was deprecated in 3.10 and it will be removed on 4.X. This patch changes it by the new supported API that are grouped as *.openshift.io underneath /apis Change-Id: I0bb711063ff0922d741b69162258f6656a5d5c4a
This commit is contained in:
parent
9ac6613af9
commit
91a6221f0d
|
@ -13,5 +13,5 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
OCP_API_BASE = '/oapi/v1'
|
||||
OCP_API_BASE = '/apis/route.openshift.io/v1'
|
||||
OCP_OBJ_ROUTE = 'Route'
|
||||
|
|
|
@ -100,7 +100,8 @@ class TestOcpRouteHandler(test_base.TestCase):
|
|||
|
||||
def test_get_endpoints_link_by_route(self):
|
||||
m_handler = mock.Mock(spec=h_route.OcpRouteHandler)
|
||||
route_link = '/oapi/v1/namespaces/default/routes/my_route'
|
||||
route_link = (
|
||||
'/apis/route.openshift.io/v1/namespaces/default/routes/my_route')
|
||||
ep_name = 'my_endpoint'
|
||||
expected_ep_link = '/api/v1/namespaces/default/endpoints/my_endpoint'
|
||||
ret_ep_path = h_route.OcpRouteHandler._get_endpoints_link_by_route(
|
||||
|
|
Loading…
Reference in New Issue