Skip to content

Commit

Permalink
added another alias in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Sep 23, 2024
1 parent 2bb1aa3 commit e871acb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions env0/data_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ func TestEnvironmentDataSource(t *testing.T) {
WorkflowFile: &client.WorkflowFile{
Environments: map[string]client.WorkflowSubEnvironment{
"db": {
EnvironmentId: "id",
EnvironmentId: "id_db",
},
"compute": {
EnvironmentId: "id_compute",
},
},
},
Expand Down Expand Up @@ -86,7 +89,9 @@ func TestEnvironmentDataSource(t *testing.T) {
resource.TestCheckResourceAttr(accessor, "github_installation_id", strconv.Itoa(template.GithubInstallationId)),
resource.TestCheckResourceAttr(accessor, "bitbucket_client_key", template.BitbucketClientKey),
resource.TestCheckResourceAttr(accessor, "sub_environment_configuration.0.alias", "db"),
resource.TestCheckResourceAttr(accessor, "sub_environment_configuration.0.id", "id"),
resource.TestCheckResourceAttr(accessor, "sub_environment_configuration.0.id", "id_db"),
resource.TestCheckResourceAttr(accessor, "sub_environment_configuration.1.alias", "compute"),
resource.TestCheckResourceAttr(accessor, "sub_environment_configuration.1.id", "id_compute"),
),
},
},
Expand Down

0 comments on commit e871acb

Please sign in to comment.