https://github.com/dumpysquare/f5-mock-service
testing service that mocks common f5 rest endpoints
https://github.com/dumpysquare/f5-mock-service
Last synced: 25 days ago
JSON representation
testing service that mocks common f5 rest endpoints
- Host: GitHub
- URL: https://github.com/dumpysquare/f5-mock-service
- Owner: DumpySquare
- License: apache-2.0
- Created: 2022-01-30T11:44:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-16T21:59:42.000Z (over 4 years ago)
- Last Synced: 2025-01-14T16:28:48.334Z (over 1 year ago)
- Language: TypeScript
- Size: 283 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to f5-mock-service
This service is to mock common f5 rest api endpoints for more rapid testing without having to deploy an actual f5...
## Current goals
- Support auth classic auth token endpoint
- Support AS3 flows (async)
## as3
AS3 is the main driver for such a mock service. Being able to quickly and easily test tools with AS3 can be difficult. The idea here is to provide a simple REST api framework to 'mimic' AS3 functionality.
The mock as3 service should support all the AS3 endpoints and respond in a manner suitable for testing.
This means that POSTing to the 'delcare' endpoint should validate the declaration and merge with exising tenants. GET to the 'declare' endpoint should provide the full declaration with all tenants, or specified tenant.
Tasks will also be part of the workflow to round out functionality
Will be adding in the f5-declartion-validator to validate the inbound declarations
### Designed workflow (pending)
Below is the designed workflow, it's actually coded a little different (it will get updated).
```mermaid
graph TD;
A[Inbound Declaration] --> B[Generate task ID and details]
B --> C{is Async?}
C --> | true | D
C --> | false | F[not supported yet]
D{Validate Declaration} --> | Valid | E
E[Merge Delcaration into memory] --> G
G[Return async task details] --> H
H[save task result for follow-up calls]
```