fix: pipeline fixes
[skip ci]
This commit is contained in:
parent
8c490da5ce
commit
0ba4612438
4 changed files with 11 additions and 8 deletions
|
|
@ -196,9 +196,9 @@ func (r *instanceResource) Create(
|
|||
|
||||
ctx = core.InitProviderContext(ctx)
|
||||
|
||||
projectId := model.ProjectId.ValueString()
|
||||
projectID := model.ProjectId.ValueString()
|
||||
region := model.Region.ValueString()
|
||||
ctx = tflog.SetField(ctx, "project_id", projectId)
|
||||
ctx = tflog.SetField(ctx, "project_id", projectID)
|
||||
ctx = tflog.SetField(ctx, "region", region)
|
||||
|
||||
var netAcl []string
|
||||
|
|
@ -214,7 +214,7 @@ func (r *instanceResource) Create(
|
|||
// Create new instance
|
||||
createResp, err := r.client.DefaultAPI.CreateInstanceRequest(
|
||||
ctx,
|
||||
projectId,
|
||||
projectID,
|
||||
region,
|
||||
).CreateInstanceRequestPayload(payload).Execute()
|
||||
if err != nil {
|
||||
|
|
@ -231,7 +231,7 @@ func (r *instanceResource) Create(
|
|||
|
||||
// Set data returned by API in identity
|
||||
identity := InstanceResourceIdentityModel{
|
||||
ProjectID: types.StringValue(projectId),
|
||||
ProjectID: types.StringValue(projectID),
|
||||
Region: types.StringValue(region),
|
||||
InstanceID: types.StringPointerValue(instanceID),
|
||||
}
|
||||
|
|
@ -240,7 +240,7 @@ func (r *instanceResource) Create(
|
|||
return
|
||||
}
|
||||
|
||||
waitResp, err := wait.CreateInstanceWaitHandler(ctx, r.client.DefaultAPI, projectId, region, *instanceID).
|
||||
waitResp, err := wait.CreateInstanceWaitHandler(ctx, r.client.DefaultAPI, projectID, region, *instanceID).
|
||||
WaitWithContext(ctx)
|
||||
if err != nil {
|
||||
core.LogAndAddError(
|
||||
|
|
|
|||
|
|
@ -297,6 +297,9 @@ func TestAccInstanceWithUsers(t *testing.T) {
|
|||
data := getExample()
|
||||
|
||||
userName := "testUser"
|
||||
if pID, ok := os.LookupEnv("TF_ACC_PROJECT_ID"); !ok || pID == "" {
|
||||
t.Errorf("TF_ACC_PROJECT_ID is not set")
|
||||
}
|
||||
data.Users = []User{
|
||||
{
|
||||
Name: userName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue