https://github.com/arenadata/truly_automated_tests
Sample project for "Truly automated testing" concept demo
https://github.com/arenadata/truly_automated_tests
Last synced: 6 months ago
JSON representation
Sample project for "Truly automated testing" concept demo
- Host: GitHub
- URL: https://github.com/arenadata/truly_automated_tests
- Owner: arenadata
- License: mit
- Created: 2021-03-25T16:06:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-16T13:23:22.000Z (about 5 years ago)
- Last Synced: 2023-03-04T04:49:58.206Z (over 3 years ago)
- Language: Python
- Size: 5.63 MB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Truly automated tests example
Sample project for "Truly automated testing" concept demo
## API Spec
### Methods
- **/endpoint/**
- **GET** - List all objects. Will be called **LIST** in further mentions
- **POST** - Create an object. Will be called **POST** in further mentions
- **/endpoint/\/**
- **GET** - Get exact object data. Will be called **GET** in further mentions
### Types
- `integer`
- Positive integer value < 231
- `string`
- String up to 255 symbols
- `text`
- String with to 2000 symbols
### Cluster
DB cluster object
**Endpoint:** _/cluster/_
#### Allowed methods
Name | Allowed
---: | ---
GET | `True`
LIST | `True`
POST | `True`
#### Fields
Name | Type | Required | Description
---: | --- | --- | ---
id | `integer` | `False` | Auto generated Object Id
name | `string` | `True` | Cluster name
description | `text` | `False` | Cluster description for UI
### File system
File system for backup storage
Endpoint: _/file-system/_
#### Allowed methods
Name | Allowed
---: | ---
GET | `True`
LIST | `True`
POST | `True`
#### Fields
Name | Type | Required | Description
---: | --- | --- | ---
id | `integer` | `False` | Auto generated Object Id
name | `string` | `True` | File system name
description | `text` | `False` | File system description for UI
### Connection
Connection between a cluster and filesystem
Endpoint: _/connection/_
#### Allowed methods
Name | Allowed
---: | ---
GET | `True`
LIST | `True`
POST | `True`
#### Fields
Name | Type | Required | Description
---: | --- | --- | ---
id | `integer` | `False` | Auto generated Object Id
name | `string` | `True` | Connection name
cluster_id | `integer` | `True` | FK to [Cluster](#cluster)
filesystem_id | `integer` | `True` | FK to [File system](#file-system)
### Backup
Create backup of cluster to file system.
> [Connection](#connection) for given [Cluster](#cluster) and [File system](#file-system)
> should exist before backup creation
Endpoint: _/backup/_
#### Allowed methods
Name | Allowed
---: | ---
GET | `True`
LIST | `True`
POST | `True`
#### Fields
Name | Type | Required | Description
---: | --- | --- | ---
id | `integer` | `False` | Auto generated Object Id
name | `string` | `True` | Backup name
cluster_id | `integer` | `True` | FK to [Cluster](#cluster)
filesystem_id | `integer` | `True` | FK to [File system](#file-system)