Thomas Richardson
commited on
Commit
·
e85ffe5
1
Parent(s):
14ce240
feature: fixed saucelab test issue.
Browse files- sauce_tests/02 Upload Image/unit.yaml +4 -4
- sauce_tests/03 Add Feedback/unit.yaml +4 -4
- sauce_tests/03 Image Relatedness/README.md +0 -19
- sauce_tests/04 Get Feedback/unit.yaml +4 -4
- sauce_tests/05 Get Commands/unit.yaml +4 -4
- sauce_tests/06 Rising Chat/unit.yaml +4 -4
- sauce_tests/07 Train Contacts/unit.yaml +4 -4
- sauce_tests/08 Image Relatedness/unit.yaml +4 -4
sauce_tests/02 Upload Image/unit.yaml
CHANGED
@@ -9,10 +9,10 @@ assertions:
|
|
9 |
"confs": {
|
10 |
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
11 |
"uuid": "test-uuid",
|
12 |
-
"openai_key": "",
|
13 |
-
"pinecone_key": "",
|
14 |
-
"pinecone_env": "",
|
15 |
-
"firebase_key": "",
|
16 |
"settings": {
|
17 |
"temperature": 0.6
|
18 |
}
|
|
|
9 |
"confs": {
|
10 |
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
11 |
"uuid": "test-uuid",
|
12 |
+
"openai_key": "${OPENAI_API_KEY}",
|
13 |
+
"pinecone_key": "${PINECONE_KEY}",
|
14 |
+
"pinecone_env": "${PINECONE_ENV}",
|
15 |
+
"firebase_key": "${FIREBASE_ENV}",
|
16 |
"settings": {
|
17 |
"temperature": 0.6
|
18 |
}
|
sauce_tests/03 Add Feedback/unit.yaml
CHANGED
@@ -18,10 +18,10 @@ assertions:
|
|
18 |
"confs": {
|
19 |
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
20 |
"uuid": "test-uuid",
|
21 |
-
"openai_key": "",
|
22 |
-
"pinecone_key": "",
|
23 |
-
"pinecone_env": "",
|
24 |
-
"firebase_key": "",
|
25 |
"settings": {
|
26 |
"temperature": 0.6
|
27 |
}
|
|
|
18 |
"confs": {
|
19 |
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
20 |
"uuid": "test-uuid",
|
21 |
+
"openai_key": "${OPENAI_API_KEY}",
|
22 |
+
"pinecone_key": "${PINECONE_KEY}",
|
23 |
+
"pinecone_env": "${PINECONE_ENV}",
|
24 |
+
"firebase_key": "${FIREBASE_ENV}",
|
25 |
"settings": {
|
26 |
"temperature": 0.6
|
27 |
}
|
sauce_tests/03 Image Relatedness/README.md
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
# Image Relatedness
|
2 |
-
|
3 |
-
## What you'll find
|
4 |
-
|
5 |
-
This folder contains an example test, and is composed of the following elements:
|
6 |
-
- `README.md`: (This file) Contains the purpose of the test.
|
7 |
-
- `input.yaml`: Sets variables that will provided to test.
|
8 |
-
- `unit.yaml`: Sets the steps to perform while executing the test.
|
9 |
-
|
10 |
-
You can also get familiar with our test script syntax by following our [Synthax Documentation](https://github.com/saucelabs/saucectl-apitest-example/blob/main/README.md).
|
11 |
-
|
12 |
-
## Details
|
13 |
-
|
14 |
-
This test only differs from the previous one in the usage of the input variables ([`input.yaml`](./input.yaml) file)
|
15 |
-
and then referencing those variables in the test, rather than having URLs and Tokens in the test itself.
|
16 |
-
That might help in adding some abstraction:
|
17 |
-
|
18 |
-
- Use the same test against different API domains (e.g. staging vs production)
|
19 |
-
- Use multiple input set and test different endpoints
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sauce_tests/04 Get Feedback/unit.yaml
CHANGED
@@ -5,10 +5,10 @@ assertions:
|
|
5 |
contentType: application/json
|
6 |
content: |-
|
7 |
{ "confs": {
|
8 |
-
"openai_key": "",
|
9 |
-
"pinecone_key": "",
|
10 |
-
"pinecone_env": "",
|
11 |
-
"firebase_key": "",
|
12 |
"settings": {
|
13 |
"temperature": 0.6
|
14 |
}
|
|
|
5 |
contentType: application/json
|
6 |
content: |-
|
7 |
{ "confs": {
|
8 |
+
"openai_key": "${OPENAI_API_KEY}",
|
9 |
+
"pinecone_key": "${PINECONE_KEY}",
|
10 |
+
"pinecone_env": "${PINECONE_ENV}",
|
11 |
+
"firebase_key": "${FIREBASE_ENV}",
|
12 |
"settings": {
|
13 |
"temperature": 0.6
|
14 |
}
|
sauce_tests/05 Get Commands/unit.yaml
CHANGED
@@ -6,10 +6,10 @@ assertions:
|
|
6 |
content: |-
|
7 |
{
|
8 |
"confs": {
|
9 |
-
"openai_key": "",
|
10 |
-
"pinecone_key": "",
|
11 |
-
"pinecone_env": "",
|
12 |
-
"firebase_key": "",
|
13 |
"settings": {
|
14 |
"temperature": 0.6
|
15 |
}
|
|
|
6 |
content: |-
|
7 |
{
|
8 |
"confs": {
|
9 |
+
"openai_key": "${OPENAI_API_KEY}",
|
10 |
+
"pinecone_key": "${PINECONE_KEY}",
|
11 |
+
"pinecone_env": "${PINECONE_ENV}",
|
12 |
+
"firebase_key": "${FIREBASE_ENV}",
|
13 |
"settings": {
|
14 |
"temperature": 0.6
|
15 |
}
|
sauce_tests/06 Rising Chat/unit.yaml
CHANGED
@@ -23,10 +23,10 @@ assertions:
|
|
23 |
"confs": {
|
24 |
"token": "test_token",
|
25 |
"uuid": "test_uuid",
|
26 |
-
"openai_key": "",
|
27 |
-
"pinecone_key": "",
|
28 |
-
"pinecone_env": "",
|
29 |
-
"firebase_key": "",
|
30 |
"settings": {
|
31 |
"temperature": 0.6
|
32 |
}
|
|
|
23 |
"confs": {
|
24 |
"token": "test_token",
|
25 |
"uuid": "test_uuid",
|
26 |
+
"openai_key": "${OPENAI_API_KEY}",
|
27 |
+
"pinecone_key": "${PINECONE_KEY}",
|
28 |
+
"pinecone_env": "${PINECONE_ENV}",
|
29 |
+
"firebase_key": "${FIREBASE_ENV}",
|
30 |
"settings": {
|
31 |
"temperature": 0.6
|
32 |
}
|
sauce_tests/07 Train Contacts/unit.yaml
CHANGED
@@ -14,10 +14,10 @@ assertions:
|
|
14 |
"confs": {
|
15 |
"token": "test_token",
|
16 |
"uuid": "test-uuid",
|
17 |
-
"openai_key": "",
|
18 |
-
"pinecone_key": "",
|
19 |
-
"pinecone_env": "",
|
20 |
-
"firebase_key": "",
|
21 |
"settings": {
|
22 |
"temperature": 0.6
|
23 |
}
|
|
|
14 |
"confs": {
|
15 |
"token": "test_token",
|
16 |
"uuid": "test-uuid",
|
17 |
+
"openai_key": "${OPENAI_API_KEY}",
|
18 |
+
"pinecone_key": "${PINECONE_KEY}",
|
19 |
+
"pinecone_env": "${PINECONE_ENV}",
|
20 |
+
"firebase_key": "${FIREBASE_ENV}",
|
21 |
"settings": {
|
22 |
"temperature": 0.6
|
23 |
}
|
sauce_tests/08 Image Relatedness/unit.yaml
CHANGED
@@ -11,10 +11,10 @@ assertions:
|
|
11 |
"image_name": "0ddffe51-3763-48d9-ab74-2086de529217",
|
12 |
"message": "This is the text about the image",
|
13 |
"confs": {
|
14 |
-
"openai_key": "",
|
15 |
-
"pinecone_key": "",
|
16 |
-
"pinecone_env": "",
|
17 |
-
"firebase_key": "",
|
18 |
"settings": {
|
19 |
"temperature": 0.6
|
20 |
},
|
|
|
11 |
"image_name": "0ddffe51-3763-48d9-ab74-2086de529217",
|
12 |
"message": "This is the text about the image",
|
13 |
"confs": {
|
14 |
+
"openai_key": "${OPENAI_API_KEY}",
|
15 |
+
"pinecone_key": "${PINECONE_KEY}",
|
16 |
+
"pinecone_env": "${PINECONE_ENV}",
|
17 |
+
"firebase_key": "${FIREBASE_ENV}",
|
18 |
"settings": {
|
19 |
"temperature": 0.6
|
20 |
},
|