-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Tacke
committed
Oct 10, 2021
1 parent
e1b8150
commit 821591c
Showing
10 changed files
with
328 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,278 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "b3befbd8-b926-4cac-aad5-508ce0392c0c", | ||
"name": "TestSuite", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Time", | ||
"item": [ | ||
{ | ||
"name": "Get Time", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/time", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"time" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Set Time", | ||
"request": { | ||
"method": "PUT", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"SystemTime\": \"{{$isoTimestamp}}\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/time", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"time" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Assemblies", | ||
"item": [ | ||
{ | ||
"name": "Add or Update Assembly", | ||
"request": { | ||
"method": "PUT", | ||
"header": [], | ||
"body": { | ||
"mode": "file", | ||
"file": { | ||
"src": "/Users/christophertacke/repos/wilderness/Meadow.TestSuite/Tests.Meadow.Core/bin/Debug/netstandard2.1/Tests.Meadow.Core.dll" | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/assemblies/Tests.Meadow.Core", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"assemblies", | ||
"Tests.Meadow.Core" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get Assemblies", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/assemblies", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"assemblies" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Tests", | ||
"item": [ | ||
{ | ||
"name": "Get Tests", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/tests", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"tests" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get Test Info", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/tests/Tests.Meadow.Core.LEDTests.LedTestFunction", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"tests", | ||
"Tests.Meadow.Core.LEDTests.LedTestFunction" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Start GPIO Test", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/tests/Tests.Meadow.Core.GpioTests.Loopback3_4", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"tests", | ||
"Tests.Meadow.Core.GpioTests.Loopback3_4" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Start LED Test", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/tests/Tests.Meadow.Core.LEDTests.LedTestFunction", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"tests", | ||
"Tests.Meadow.Core.LEDTests.LedTestFunction" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Results", | ||
"item": [ | ||
{ | ||
"name": "Get Specific Test Result By Name", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/results/Tests.Meadow.Core.LEDTests.LedTestFunction", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"results", | ||
"Tests.Meadow.Core.LEDTests.LedTestFunction" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get All Test Results", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/results", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"results" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get Specific Test Result By ID", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/results/b15e9829-b081-4e69-8343-66107c9076e3", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"results", | ||
"b15e9829-b081-4e69-8343-66107c9076e3" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Get TestSuite Info", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://{{meadow-address}}:{{meadow-port}}/", | ||
"protocol": "http", | ||
"host": [ | ||
"{{meadow-address}}" | ||
], | ||
"port": "{{meadow-port}}", | ||
"path": [ | ||
"" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Test Suite Worker Configuration | ||
|
||
The Test Suite Worker can be configured by modifying and deploying a file named `config.json` to the root (application) folder. | ||
|
||
## Example Config File | ||
|
||
``` | ||
{ | ||
"Display": "ST7789", | ||
"Network": { | ||
"SSID": "YOUR_WIFI_SSID", | ||
"Pass": "YOUR_PASSCODE" | ||
}, | ||
"Serial": { | ||
"Enabled": false | ||
} | ||
} | ||
``` |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Test Suite Worker REST API | ||
|
||
The Test Suite Worker exposes a REST API using the [Wilderness Labs Maple Web Server](https://github.com/WildernessLabs/Meadow.Foundation/tree/main/Source/Meadow.Foundation.Libraries_and_Frameworks/Web.Maple). | ||
|
||
A [Postman Collection is available](TestSuite.postman_collection.json) that provides examples of all REST endpoints. | ||
|
||
| Path | Verb | Description | | ||
| --- | --- | --- | | ||
| `/` | GET | Gets version information about Test Suite. Intended to be a simple test point to see if the Worker is running. | | ||
| `/time` | GET | Gets the current UTC time of the Meadow running the Worker | | ||
| `/time` | PUT | Sets the current UTC time of the Meadow running the Worker | | ||
| `/assemblies` | GET | Gets a list of all loaded test assemblies | | ||
| `/assemblies/{name}` | PUT | Uploads a test assembly with file name `name` to the configured test assembly folder | | ||
| `/tests` | GET | Gets a list of all loaded tests IDs | | ||
| `/tests/{testID}` | GET | Gets information about the specified Test ID | | ||
| `/tests/{testID}` | POST | Starts a new run of the specified Test ID | | ||
| `/results` | GET | Gets a list of all known Test Results | | ||
| `/results/{guid}` | GET | Gets the results for the specified Result ID | | ||
| `/results/{testID}` | GET | Gets all known results for the specified Test ID | |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters