feat: Add echo provisioner (#162)

This replaces the cdr-basic provisioner type with
"echo". It reads binary data from the directory
and returns the responses in order.

This is used to test project and workspace job logic.
This commit is contained in:
Kyle Carberry
2022-02-04 16:51:54 -06:00
committed by GitHub
parent 65de6eef9c
commit 682238d384
15 changed files with 366 additions and 129 deletions

4
database/dump.sql generated
View File

@ -52,8 +52,8 @@ CREATE TYPE provisioner_job_type AS ENUM (
);
CREATE TYPE provisioner_type AS ENUM (
'terraform',
'cdr-basic'
'echo',
'terraform'
);
CREATE TYPE userstatus AS ENUM (

View File

@ -1,4 +1,4 @@
CREATE TYPE provisioner_type AS ENUM ('terraform', 'cdr-basic');
CREATE TYPE provisioner_type AS ENUM ('echo', 'terraform');
-- Project defines infrastructure that your software project
-- requires for development.

View File

@ -191,8 +191,8 @@ func (e *ProvisionerJobType) Scan(src interface{}) error {
type ProvisionerType string
const (
ProvisionerTypeEcho ProvisionerType = "echo"
ProvisionerTypeTerraform ProvisionerType = "terraform"
ProvisionerTypeCdrBasic ProvisionerType = "cdr-basic"
)
func (e *ProvisionerType) Scan(src interface{}) error {