Skip to content

Commit

Permalink
Merge pull request #62 from axiomhq/islam/dx-244-prepare-axiom-python…
Browse files Browse the repository at this point in the history
…-for-split-of-cloud

switch to api.axiom.co
  • Loading branch information
dasfmi authored Jan 11, 2023
2 parents c611d7e + 1f405f5 commit b4ff291
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- run: poetry install
- run: poetry run python -m pytest
env:
AXIOM_URL: ${{ secrets.TESTING_DEV_APP_URL }}
AXIOM_URL: ${{ secrets.TESTING_DEV_API_URL }}
AXIOM_TOKEN: ${{ secrets.TESTING_DEV_TOKEN }}
AXIOM_ORG_ID: ${{ secrets.TESTING_DEV_ORG_ID }}
publish:
Expand Down
6 changes: 3 additions & 3 deletions axiom/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .__init__ import __version__


AXIOM_URL = "https://cloud.axiom.co"
AXIOM_URL = "https://api.axiom.co"


@dataclass
Expand Down Expand Up @@ -143,8 +143,8 @@ def __init__(
org_id = os.getenv("AXIOM_ORG_ID")
if url_base is None:
url_base = AXIOM_URL
# Append /api/v1 to the url_base
url_base = url_base.rstrip("/") + "/api/v1/"
# Append /v1 to the url_base
url_base = url_base.rstrip("/") + "/v1/"

self.logger = getLogger()
self.session = BaseUrlSession(url_base)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def setUpClass(cls):

@responses.activate
def test_retries(self):
url = os.getenv("AXIOM_URL") + "/api/v1/datasets/test"
url = os.getenv("AXIOM_URL") + "/v1/datasets/test"
responses.add(responses.GET, url, status=500)
responses.add(responses.GET, url, status=502)
responses.add(
Expand Down

0 comments on commit b4ff291

Please sign in to comment.