diff --git a/docs/source/conf.py b/docs/source/conf.py index 353597c90..31ce5d87d 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -76,10 +76,6 @@ # Retry link checking to avoid transient network errors. linkcheck_retries = 5 -linkcheck_ignore = [ - # Requires login. - "https://developer.vuforia.com/targetmanager", -] spelling_word_list_filename = "../../spelling_private_dict.txt" diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst index 5989bbe78..115d3c08b 100644 --- a/docs/source/contributing.rst +++ b/docs/source/contributing.rst @@ -92,8 +92,8 @@ When this happens, create a new target database to use for testing. To create databases without using the browser, use `vws web tools`_. See https://github.com/VWS-Python/vws-python-mock/issues/901 for a start on how to use the database details created by that tool. -.. _Vuforia License Manager: https://developer.vuforia.com/targetmanager/licenseManager/licenseListing -.. _Vuforia Target Manager: https://developer.vuforia.com/targetmanager +.. _Vuforia License Manager: https://developer.vuforia.com/vui/develop/licenses +.. _Vuforia Target Manager: https://developer.vuforia.com/vui/develop/databases .. _vws web tools: https://github.com/VWS-Python/vws-web-tools Skipping Some Tests diff --git a/src/mock_vws/_constants.py b/src/mock_vws/_constants.py index df6639b13..7bd3d300f 100644 --- a/src/mock_vws/_constants.py +++ b/src/mock_vws/_constants.py @@ -41,7 +41,7 @@ class TargetStatuses(Enum): Constants representing VWS target statuses. See the 'status' field in - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record + https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record """ PROCESSING = "processing" diff --git a/src/mock_vws/_flask_server/vws.py b/src/mock_vws/_flask_server/vws.py index 320edd9e1..2c4f1d2d0 100644 --- a/src/mock_vws/_flask_server/vws.py +++ b/src/mock_vws/_flask_server/vws.py @@ -2,7 +2,7 @@ A fake implementation of the Vuforia Web Services API. See -https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API +https://library.vuforia.com/web-api/cloud-targets-web-services-api """ import base64 @@ -144,7 +144,7 @@ def add_target() -> Response: Add a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Add-a-Target + https://library.vuforia.com/web-api/cloud-targets-web-services-api#add """ settings = VWSSettings.model_validate(obj={}) databases = get_all_databases() @@ -217,7 +217,7 @@ def get_target(target_id: str) -> Response: Get details of a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record + https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record """ databases = get_all_databases() database = get_database_matching_server_keys( @@ -271,7 +271,7 @@ def delete_target(target_id: str) -> Response: Delete a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Delete-a-Target + https://library.vuforia.com/web-api/cloud-targets-web-services-api#delete """ settings = VWSSettings.model_validate(obj={}) databases = get_all_databases() @@ -324,7 +324,7 @@ def database_summary() -> Response: Get a database summary report. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Database-Summary-Report + https://library.vuforia.com/web-api/cloud-targets-web-services-api#summary-report """ databases = get_all_databases() database = get_database_matching_server_keys( @@ -377,7 +377,7 @@ def target_summary(target_id: str) -> Response: Get a summary report for a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Summary-Report + https://library.vuforia.com/web-api/cloud-targets-web-services-api#retrieve-report """ databases = get_all_databases() database = get_database_matching_server_keys( @@ -428,7 +428,7 @@ def get_duplicates(target_id: str) -> Response: Get targets which may be considered duplicates of a given target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Check-for-Duplicate-Targets + https://library.vuforia.com/web-api/cloud-targets-web-services-api#check """ databases = get_all_databases() settings = VWSSettings.model_validate(obj={}) @@ -488,7 +488,7 @@ def target_list() -> Response: Get a list of all targets. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Target-List-for-a-Cloud-Database + https://library.vuforia.com/web-api/cloud-targets-web-services-api#details-list """ databases = get_all_databases() database = get_database_matching_server_keys( @@ -529,7 +529,7 @@ def update_target(target_id: str) -> Response: Update a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Update-a-Target + https://library.vuforia.com/web-api/cloud-targets-web-services-api#update """ settings = VWSSettings.model_validate(obj={}) # We do not use ``request.get_json(force=True)`` because this only works diff --git a/src/mock_vws/_requests_mock_server/mock_web_services_api.py b/src/mock_vws/_requests_mock_server/mock_web_services_api.py index 8c9aac74d..0fa3cd664 100644 --- a/src/mock_vws/_requests_mock_server/mock_web_services_api.py +++ b/src/mock_vws/_requests_mock_server/mock_web_services_api.py @@ -130,7 +130,7 @@ def add_target( Add a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Add-a-Target + https://library.vuforia.com/web-api/cloud-targets-web-services-api#add """ try: run_services_validators( @@ -208,7 +208,7 @@ def delete_target( Delete a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Delete-a-Target + https://library.vuforia.com/web-api/cloud-targets-web-services-api#delete """ try: run_services_validators( @@ -275,7 +275,7 @@ def database_summary( Get a database summary report. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Database-Summary-Report + https://library.vuforia.com/web-api/cloud-targets-web-services-api#summary-report """ try: run_services_validators( @@ -341,7 +341,7 @@ def target_list( Get a list of all targets. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Target-List-for-a-Cloud-Database + https://library.vuforia.com/web-api/cloud-targets-web-services-api#details-list """ try: run_services_validators( @@ -398,7 +398,7 @@ def get_target( Get details of a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record + https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record """ try: run_services_validators( @@ -466,7 +466,7 @@ def get_duplicates( Get targets which may be considered duplicates of a given target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Check-for-Duplicate-Targets + https://library.vuforia.com/web-api/cloud-targets-web-services-api#check """ try: run_services_validators( @@ -647,7 +647,7 @@ def target_summary( Get a summary report for a target. Fake implementation of - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Summary-Report + https://library.vuforia.com/web-api/cloud-targets-web-services-api#retrieve-report """ try: run_services_validators( diff --git a/tests/mock_vws/test_get_duplicates.py b/tests/mock_vws/test_get_duplicates.py index f2ad2a403..34f1fd2ce 100644 --- a/tests/mock_vws/test_get_duplicates.py +++ b/tests/mock_vws/test_get_duplicates.py @@ -164,7 +164,7 @@ def test_active_flag( Targets with `active_flag` set to `False` can have duplicates. Targets with `active_flag` set to `False` are not found as duplicates. - https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API#How-To-Check-for-Duplicate-Targets + https://library.vuforia.com/web-api/cloud-targets-web-services-api#check says: ''' diff --git a/tests/mock_vws/test_get_target.py b/tests/mock_vws/test_get_target.py index f48b0df26..ee3184341 100644 --- a/tests/mock_vws/test_get_target.py +++ b/tests/mock_vws/test_get_target.py @@ -1,7 +1,7 @@ """ Tests for getting a target record. -https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record +https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record """ from __future__ import annotations