mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
feat!: drop support for legacy parameters (#7663)
This commit is contained in:
@ -203,27 +203,6 @@ func TestProvision(t *testing.T) {
|
||||
ExpectLogContains string
|
||||
Apply bool
|
||||
}{
|
||||
{
|
||||
Name: "single-variable",
|
||||
Files: map[string]string{
|
||||
"main.tf": `variable "A" {
|
||||
description = "Testing!"
|
||||
}`,
|
||||
},
|
||||
Request: &proto.Provision_Plan{
|
||||
ParameterValues: []*proto.ParameterValue{{
|
||||
DestinationScheme: proto.ParameterDestination_PROVISIONER_VARIABLE,
|
||||
Name: "A",
|
||||
Value: "example",
|
||||
}},
|
||||
},
|
||||
Response: &proto.Provision_Response{
|
||||
Type: &proto.Provision_Response_Complete{
|
||||
Complete: &proto.Provision_Complete{},
|
||||
},
|
||||
},
|
||||
Apply: true,
|
||||
},
|
||||
{
|
||||
Name: "missing-variable",
|
||||
Files: map[string]string{
|
||||
@ -305,22 +284,6 @@ func TestProvision(t *testing.T) {
|
||||
},
|
||||
ExpectLogContains: "nothing to do",
|
||||
},
|
||||
{
|
||||
Name: "unsupported-parameter-scheme",
|
||||
Files: map[string]string{
|
||||
"main.tf": "",
|
||||
},
|
||||
Request: &proto.Provision_Plan{
|
||||
ParameterValues: []*proto.ParameterValue{
|
||||
{
|
||||
DestinationScheme: 88,
|
||||
Name: "UNSUPPORTED",
|
||||
Value: "sadface",
|
||||
},
|
||||
},
|
||||
},
|
||||
ErrorContains: "unsupported parameter type",
|
||||
},
|
||||
{
|
||||
Name: "rich-parameter-with-value",
|
||||
Files: map[string]string{
|
||||
@ -462,7 +425,6 @@ func TestProvision(t *testing.T) {
|
||||
if planRequest.GetPlan().GetConfig() == nil {
|
||||
planRequest.GetPlan().Config = &proto.Provision_Config{}
|
||||
}
|
||||
planRequest.GetPlan().ParameterValues = testCase.Request.ParameterValues
|
||||
planRequest.GetPlan().RichParameterValues = testCase.Request.RichParameterValues
|
||||
planRequest.GetPlan().GitAuthProviders = testCase.Request.GitAuthProviders
|
||||
if testCase.Request.Config != nil {
|
||||
|
Reference in New Issue
Block a user