first functional test

This commit is contained in:
2023-03-18 12:20:10 -05:00
parent 9dd4366e73
commit 3f60d34155
6 changed files with 98 additions and 33 deletions

27
mock-payloads/readme.md Normal file
View File

@@ -0,0 +1,27 @@
# Example Curl Requests
## Pod Admission
Request
```bash
curl \
--insecure \
--silent \
--request POST \
--header "Content-Type: application/json" \
--data @./mock-payloads/pods/test-pod01.json \
https://localhost:8443/api/v1/admit/pod
```
Response
```json
{
"response": {
"uid": "60df4b0b-8856-4ce7-9fb3-bc8034856995",
"allowed": false,
"status": {
"metadata": {},
"message": "You cannot use the tag 'latest' in a container."
}
}
}
```