Skip to content

Commit 893e9b9

Browse files
authored
Merge pull request #27 from DelineaXPM/delineaKrehl.unitTestUpdate
Update tests for new test tenant
2 parents 9db9ab1 + 2c057d7 commit 893e9b9

8 files changed

Lines changed: 525 additions & 519 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
environment: testing
1010
strategy:
1111
matrix:
12-
python: [3.7, 3.8, 3.9, "3.10"]
12+
python: [3.8, 3.9, "3.10", "3.11"]
1313

1414
steps:
1515
- uses: actions/checkout@v3
@@ -30,5 +30,5 @@ jobs:
3030
TSS_USERNAME: ${{ secrets.TSS_USERNAME }}
3131
TSS_PASSWORD: ${{ secrets.TSS_PASSWORD }}
3232
TSS_TENANT: ${{ secrets.TSS_TENANT }}
33-
SECRET_ID: ${{ secrets.SECRET_ID }}
34-
SECRET_PATH: ${{ secrets.SECRET_PATH }}
33+
TSS_SECRET_ID: ${{ secrets.TSS_SECRET_ID }}
34+
TSS_SECRET_PATH: ${{ secrets.TSS_SECRET_PATH }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ When using a self-signed certificate for SSL, the `REQUESTS_CA_BUNDLE` environme
120120

121121
## Create a Build Environment (optional)
122122

123-
The SDK requires [Python 3.7](https://www.python.org/downloads/) or higher.
123+
The SDK requires [Python 3.8](https://www.python.org/downloads/) or higher.
124124

125125
First, ensure Python is in `$PATH`, then run:
126126

@@ -144,8 +144,8 @@ Valid credentials are required to run the unit tests. The credentials should be
144144
export TSS_USERNAME=myusername
145145
export TSS_PASSWORD=mysecretpassword
146146
export TSS_TENANT=mytenant
147-
export SECRET_ID=42
148-
export SECRET_PATH=\Test Secrets\SecretName
147+
export TSS_SECRET_ID=42
148+
export TSS_SECRET_PATH=\Test Secrets\SecretName
149149
```
150150

151151
The tests assume that the user associated with the specified `TSS_USERNAME` and `TSS_PASSWORD` can read the secret to be fetched, and that the Secret itself contains `username` and `password` fields.

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def env_vars():
1212
"username": os.getenv("TSS_USERNAME"),
1313
"password": os.getenv("TSS_PASSWORD"),
1414
"tenant": os.getenv("TSS_TENANT"),
15-
"secret_id": os.getenv("SECRET_ID"),
16-
"secret_path": os.getenv("SECRET_PATH"),
15+
"secret_id": os.getenv("TSS_SECRET_ID"),
16+
"secret_path": os.getenv("TSS_SECRET_PATH"),
1717
}
1818

1919

0 commit comments

Comments
 (0)