Skip to content

Commit 57ced28

Browse files
committed
add env for token and url to tests
1 parent 7020cc4 commit 57ced28

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/test_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import json
2+
import logging
3+
import os
24
from unittest.mock import patch
35

46
import jsondiff.symbols
5-
from prettytable import PrettyTable
6-
77
import pytest
8-
import logging
8+
from prettytable import PrettyTable
99

1010
from lib.api import Api
1111

12-
API_URL = "https://playground.console.ves.volterra.io/api"
13-
API_TOKEN = "abc123456789"
12+
API_URL = os.environ.get("API_URL")
13+
API_TOKEN = os.environ.get("API_TOKEN")
1414
WORKERS = 10
1515
USER_SPECIFIED_SITE = "f5xc-aws-ce-test-60"
1616
TEST_DATA_ALL_NS_FILE_NAME = "tests/data/all_ns.json"

tests/test_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
from lib.api import Api
1111

12-
API_URL = ""
13-
API_TOKEN = ""
12+
API_URL = os.environ.get("API_URL")
13+
API_TOKEN = os.environ.get("API_TOKEN")
1414
WORKERS = 10
1515
USER_SPECIFIED_SITE = "smeshsiteongoing-singlenode"
1616
TEST_DATA_SITE_FILE_NAME = "../json/smeshsiteongoing-singlenode-2.json"

0 commit comments

Comments
 (0)