diff --git a/harvester_e2e_tests/fixtures/terraform.py b/harvester_e2e_tests/fixtures/terraform.py index 312350f90..ad7135979 100644 --- a/harvester_e2e_tests/fixtures/terraform.py +++ b/harvester_e2e_tests/fixtures/terraform.py @@ -41,9 +41,8 @@ def tf_provider_version(request): version = request.config.getoption('--terraform-provider-harvester') if not version: import requests - return requests.get( - "https://api.github.com/repos/harvester/terraform-provider-harvester/releases/latest" - ).json()['name'].lstrip('v') + resp = requests.get("https://registry.terraform.io/v1/providers/harvester/harvester") + version = max(resp.json()['versions'], key=parse_version) return version