|
|
|
@ -51,56 +51,56 @@ class APIEndpointsTestCase(APITestCase): |
|
|
|
] |
|
|
|
auth_no_perm_endpoints = [] |
|
|
|
auth_perm_endpoints = [ |
|
|
|
'/api/cotisations/articles/', |
|
|
|
# '/api/cotisations/articles/<pk>/', |
|
|
|
'/api/cotisations/banques/', |
|
|
|
# '/api/cotisations/banques/<pk>/', |
|
|
|
'/api/cotisations/cotisations/', |
|
|
|
# '/api/cotisations/cotisations/<pk>/', |
|
|
|
'/api/cotisations/factures/', |
|
|
|
# '/api/cotisations/factures/<pk>/', |
|
|
|
'/api/cotisations/paiements/', |
|
|
|
# '/api/cotisations/paiements/<pk>/', |
|
|
|
'/api/cotisations/ventes/', |
|
|
|
# '/api/cotisations/ventes/<pk>/', |
|
|
|
'/api/machines/domains/', |
|
|
|
# '/api/machines/domains/<pk>/', |
|
|
|
'/api/machines/extensions/', |
|
|
|
# '/api/machines/extensions/<pk>/', |
|
|
|
'/api/machines/interfaces/', |
|
|
|
# '/api/machines/interfaces/<pk>/', |
|
|
|
'/api/machines/iplists/', |
|
|
|
# '/api/machines/iplists/<pk>/', |
|
|
|
'/api/machines/iptypes/', |
|
|
|
# '/api/machines/iptypes/<pk>/', |
|
|
|
'/api/machines/ipv6lists/', |
|
|
|
# '/api/machines/ipv6lists/<pk>/', |
|
|
|
'/api/machines/machines/', |
|
|
|
# '/api/machines/machines/<pk>/', |
|
|
|
'/api/machines/machinetypes/', |
|
|
|
# '/api/machines/machinetypes/<pk>/', |
|
|
|
'/api/cotisations/article/', |
|
|
|
# '/api/cotisations/article/<pk>/', |
|
|
|
'/api/cotisations/banque/', |
|
|
|
# '/api/cotisations/banque/<pk>/', |
|
|
|
'/api/cotisations/cotisation/', |
|
|
|
# '/api/cotisations/cotisation/<pk>/', |
|
|
|
'/api/cotisations/facture/', |
|
|
|
# '/api/cotisations/facture/<pk>/', |
|
|
|
'/api/cotisations/paiement/', |
|
|
|
# '/api/cotisations/paiement/<pk>/', |
|
|
|
'/api/cotisations/vente/', |
|
|
|
# '/api/cotisations/vente/<pk>/', |
|
|
|
'/api/machines/domain/', |
|
|
|
# '/api/machines/domain/<pk>/', |
|
|
|
'/api/machines/extension/', |
|
|
|
# '/api/machines/extension/<pk>/', |
|
|
|
'/api/machines/interface/', |
|
|
|
# '/api/machines/interface/<pk>/', |
|
|
|
'/api/machines/iplist/', |
|
|
|
# '/api/machines/iplist/<pk>/', |
|
|
|
'/api/machines/iptype/', |
|
|
|
# '/api/machines/iptype/<pk>/', |
|
|
|
'/api/machines/ipv6list/', |
|
|
|
# '/api/machines/ipv6list/<pk>/', |
|
|
|
'/api/machines/machine/', |
|
|
|
# '/api/machines/machine/<pk>/', |
|
|
|
'/api/machines/machinetype/', |
|
|
|
# '/api/machines/machinetype/<pk>/', |
|
|
|
'/api/machines/mx/', |
|
|
|
# '/api/machines/mx/<pk>/', |
|
|
|
'/api/machines/nas/', |
|
|
|
# '/api/machines/nas/<pk>/', |
|
|
|
'/api/machines/ns/', |
|
|
|
# '/api/machines/ns/<pk>/', |
|
|
|
'/api/machines/ouvertureportlists/', |
|
|
|
# '/api/machines/ouvertureportlists/<pk>/', |
|
|
|
'/api/machines/ouvertureports/', |
|
|
|
# '/api/machines/ouvertureports/<pk>/', |
|
|
|
'/api/machines/servicelinks/', |
|
|
|
# '/api/machines/servicelinks/<pk>/', |
|
|
|
'/api/machines/services/', |
|
|
|
# '/api/machines/services/<pk>/', |
|
|
|
'/api/machines/ouvertureportlist/', |
|
|
|
# '/api/machines/ouvertureportlist/<pk>/', |
|
|
|
'/api/machines/ouvertureport/', |
|
|
|
# '/api/machines/ouvertureport/<pk>/', |
|
|
|
'/api/machines/servicelink/', |
|
|
|
# '/api/machines/servicelink/<pk>/', |
|
|
|
'/api/machines/service/', |
|
|
|
# '/api/machines/service/<pk>/', |
|
|
|
'/api/machines/soa/', |
|
|
|
# '/api/machines/soa/<pk>/', |
|
|
|
'/api/machines/srv/', |
|
|
|
# '/api/machines/srv/<pk>/', |
|
|
|
'/api/machines/txt/', |
|
|
|
# '/api/machines/txt/<pk>/', |
|
|
|
'/api/machines/vlans/', |
|
|
|
# '/api/machines/vlans/<pk>/', |
|
|
|
'/api/machines/vlan/', |
|
|
|
# '/api/machines/vlan/<pk>/', |
|
|
|
'/api/preferences/optionaluser/', |
|
|
|
'/api/preferences/optionalmachine/', |
|
|
|
'/api/preferences/optionaltopologie/', |
|
|
|
@ -128,24 +128,24 @@ class APIEndpointsTestCase(APITestCase): |
|
|
|
# '/api/topologie/switchbay/<pk>/', |
|
|
|
'/api/topologie/switchport/', |
|
|
|
# '/api/topologie/switchport/<pk>/', |
|
|
|
'/api/users/adherents/', |
|
|
|
# '/api/users/adherents/<pk>/', |
|
|
|
'/api/users/bans/', |
|
|
|
# '/api/users/bans/<pk>/', |
|
|
|
'/api/users/clubs/', |
|
|
|
# '/api/users/clubs/<pk>/', |
|
|
|
'/api/users/listrights/', |
|
|
|
# '/api/users/listrights/<pk>/', |
|
|
|
'/api/users/schools/', |
|
|
|
# '/api/users/schools/<pk>/', |
|
|
|
'/api/users/serviceusers/', |
|
|
|
# '/api/users/serviceusers/<pk>/', |
|
|
|
'/api/users/shells/', |
|
|
|
# '/api/users/shells/<pk>/', |
|
|
|
'/api/users/users/', |
|
|
|
# '/api/users/users/<pk>/', |
|
|
|
'/api/users/whitelists/', |
|
|
|
# '/api/users/whitelists/<pk>/', |
|
|
|
'/api/users/adherent/', |
|
|
|
# '/api/users/adherent/<pk>/', |
|
|
|
'/api/users/ban/', |
|
|
|
# '/api/users/ban/<pk>/', |
|
|
|
'/api/users/club/', |
|
|
|
# '/api/users/club/<pk>/', |
|
|
|
'/api/users/listright/', |
|
|
|
# '/api/users/listright/<pk>/', |
|
|
|
'/api/users/school/', |
|
|
|
# '/api/users/school/<pk>/', |
|
|
|
'/api/users/serviceuser/', |
|
|
|
# '/api/users/serviceuser/<pk>/', |
|
|
|
'/api/users/shell/', |
|
|
|
# '/api/users/shell/<pk>/', |
|
|
|
'/api/users/user/', |
|
|
|
# '/api/users/user/<pk>/', |
|
|
|
'/api/users/whitelist/', |
|
|
|
# '/api/users/whitelist/<pk>/', |
|
|
|
'/api/dns/zones/', |
|
|
|
'/api/dhcp/hostmacip/', |
|
|
|
'/api/mailing/standard', |
|
|
|
@ -331,31 +331,31 @@ class APIPaginationTestCase(APITestCase): |
|
|
|
""" |
|
|
|
|
|
|
|
endpoints = [ |
|
|
|
'/api/cotisations/articles/', |
|
|
|
'/api/cotisations/banques/', |
|
|
|
'/api/cotisations/cotisations/', |
|
|
|
'/api/cotisations/factures/', |
|
|
|
'/api/cotisations/paiements/', |
|
|
|
'/api/cotisations/ventes/', |
|
|
|
'/api/machines/domains/', |
|
|
|
'/api/machines/extensions/', |
|
|
|
'/api/machines/interfaces/', |
|
|
|
'/api/machines/iplists/', |
|
|
|
'/api/machines/iptypes/', |
|
|
|
'/api/machines/ipv6lists/', |
|
|
|
'/api/machines/machines/', |
|
|
|
'/api/machines/machinetypes/', |
|
|
|
'/api/cotisations/article/', |
|
|
|
'/api/cotisations/banque/', |
|
|
|
'/api/cotisations/cotisation/', |
|
|
|
'/api/cotisations/facture/', |
|
|
|
'/api/cotisations/paiement/', |
|
|
|
'/api/cotisations/vente/', |
|
|
|
'/api/machines/domain/', |
|
|
|
'/api/machines/extension/', |
|
|
|
'/api/machines/interface/', |
|
|
|
'/api/machines/iplist/', |
|
|
|
'/api/machines/iptype/', |
|
|
|
'/api/machines/ipv6list/', |
|
|
|
'/api/machines/machine/', |
|
|
|
'/api/machines/machinetype/', |
|
|
|
'/api/machines/mx/', |
|
|
|
'/api/machines/nas/', |
|
|
|
'/api/machines/ns/', |
|
|
|
'/api/machines/ouvertureportlists/', |
|
|
|
'/api/machines/ouvertureports/', |
|
|
|
'/api/machines/servicelinks/', |
|
|
|
'/api/machines/services/', |
|
|
|
'/api/machines/ouvertureportlist/', |
|
|
|
'/api/machines/ouvertureport/', |
|
|
|
'/api/machines/servicelink/', |
|
|
|
'/api/machines/service/', |
|
|
|
'/api/machines/soa/', |
|
|
|
'/api/machines/srv/', |
|
|
|
'/api/machines/txt/', |
|
|
|
'/api/machines/vlans/', |
|
|
|
'/api/machines/vlan/', |
|
|
|
'/api/preferences/service/', |
|
|
|
'/api/topologie/acesspoint/', |
|
|
|
'/api/topologie/building/', |
|
|
|
@ -366,15 +366,15 @@ class APIPaginationTestCase(APITestCase): |
|
|
|
'/api/topologie/switch/', |
|
|
|
'/api/topologie/switchbay/', |
|
|
|
'/api/topologie/switchport/', |
|
|
|
'/api/users/adherents/', |
|
|
|
'/api/users/bans/', |
|
|
|
'/api/users/clubs/', |
|
|
|
'/api/users/listrights/', |
|
|
|
'/api/users/schools/', |
|
|
|
'/api/users/serviceusers/', |
|
|
|
'/api/users/shells/', |
|
|
|
'/api/users/users/', |
|
|
|
'/api/users/whitelists/', |
|
|
|
'/api/users/adherent/', |
|
|
|
'/api/users/ban/', |
|
|
|
'/api/users/club/', |
|
|
|
'/api/users/listright/', |
|
|
|
'/api/users/school/', |
|
|
|
'/api/users/serviceuser/', |
|
|
|
'/api/users/shell/', |
|
|
|
'/api/users/user/', |
|
|
|
'/api/users/whitelist/', |
|
|
|
'/api/dns/zones/', |
|
|
|
'/api/dhcp/hostmacip/', |
|
|
|
'/api/mailing/standard', |
|
|
|
|