mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
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:
4
database/dump.sql
generated
4
database/dump.sql
generated
@ -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 (
|
||||
|
@ -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.
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user