Skip to content

Commit

Permalink
* [e2e] to not use github api to fetch provider versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 committed Nov 30, 2023
1 parent fa44a0f commit 2270e19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions harvester_e2e_tests/fixtures/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2270e19

Please sign in to comment.