Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 3a129a5d authored by Maël Kervella's avatar Maël Kervella Committed by Maël Kervella

Add missing endpoints in tests

parent 4c1af067
...@@ -101,6 +101,15 @@ class APIEndpointsTestCase(APITestCase): ...@@ -101,6 +101,15 @@ class APIEndpointsTestCase(APITestCase):
# '/api/machines/txt/<pk>/', # '/api/machines/txt/<pk>/',
'/api/machines/vlans/', '/api/machines/vlans/',
# '/api/machines/vlans/<pk>/', # '/api/machines/vlans/<pk>/',
'/api/preferences/optionaluser/',
'/api/preferences/optionalmachine/',
'/api/preferences/optionaltopologie/',
'/api/preferences/generaloption/',
'/api/preferences/service/',
# '/api/preferences/service/<pk>/',
'/api/preferences/assooption/',
'/api/preferences/homeoption/',
'/api/preferences/mailmessageoption/',
'/api/topologie/acesspoint/', '/api/topologie/acesspoint/',
# '/api/topologie/acesspoint/<pk>/', # '/api/topologie/acesspoint/<pk>/',
'/api/topologie/building/', '/api/topologie/building/',
...@@ -137,6 +146,11 @@ class APIEndpointsTestCase(APITestCase): ...@@ -137,6 +146,11 @@ class APIEndpointsTestCase(APITestCase):
# '/api/users/users/<pk>/', # '/api/users/users/<pk>/',
'/api/users/whitelists/', '/api/users/whitelists/',
# '/api/users/whitelists/<pk>/', # '/api/users/whitelists/<pk>/',
'/api/dns/zones/',
'/api/dhcp/hostmacip/',
'/api/mailing/standard',
'/api/mailing/club',
'/api/services/regen/',
] ]
stduser = None stduser = None
...@@ -342,6 +356,7 @@ class APIPaginationTestCase(APITestCase): ...@@ -342,6 +356,7 @@ class APIPaginationTestCase(APITestCase):
'/api/machines/srv/', '/api/machines/srv/',
'/api/machines/txt/', '/api/machines/txt/',
'/api/machines/vlans/', '/api/machines/vlans/',
'/api/preferences/service/',
'/api/topologie/acesspoint/', '/api/topologie/acesspoint/',
'/api/topologie/building/', '/api/topologie/building/',
'/api/topologie/constructorswitch/', '/api/topologie/constructorswitch/',
...@@ -360,6 +375,11 @@ class APIPaginationTestCase(APITestCase): ...@@ -360,6 +375,11 @@ class APIPaginationTestCase(APITestCase):
'/api/users/shells/', '/api/users/shells/',
'/api/users/users/', '/api/users/users/',
'/api/users/whitelists/', '/api/users/whitelists/',
'/api/dns/zones/',
'/api/dhcp/hostmacip/',
'/api/mailing/standard',
'/api/mailing/club',
'/api/services/regen/',
] ]
superuser = None superuser = None
......
...@@ -61,11 +61,11 @@ router.register_viewset(r'machines/servicelinks', views.ServiceLinkViewSet, base ...@@ -61,11 +61,11 @@ router.register_viewset(r'machines/servicelinks', views.ServiceLinkViewSet, base
router.register_viewset(r'machines/ouvertureportlists', views.OuverturePortListViewSet) router.register_viewset(r'machines/ouvertureportlists', views.OuverturePortListViewSet)
router.register_viewset(r'machines/ouvertureports', views.OuverturePortViewSet) router.register_viewset(r'machines/ouvertureports', views.OuverturePortViewSet)
# PREFERENCES # PREFERENCES
router.register_viewset(r'preferences/service', views.ServiceViewSet),
router.register_view(r'preferences/optionaluser', views.OptionalUserView), router.register_view(r'preferences/optionaluser', views.OptionalUserView),
router.register_view(r'preferences/optionalmachine', views.OptionalMachineView), router.register_view(r'preferences/optionalmachine', views.OptionalMachineView),
router.register_view(r'preferences/optionaltopologie', views.OptionalTopologieView), router.register_view(r'preferences/optionaltopologie', views.OptionalTopologieView),
router.register_view(r'preferences/generaloption', views.GeneralOptionView), router.register_view(r'preferences/generaloption', views.GeneralOptionView),
router.register_viewset(r'preferences/service', views.ServiceViewSet),
router.register_view(r'preferences/assooption', views.AssoOptionView), router.register_view(r'preferences/assooption', views.AssoOptionView),
router.register_view(r'preferences/homeoption', views.HomeOptionView), router.register_view(r'preferences/homeoption', views.HomeOptionView),
router.register_view(r'preferences/mailmessageoption', views.MailMessageOptionView), router.register_view(r'preferences/mailmessageoption', views.MailMessageOptionView),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment