Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forevanyeung committed Nov 6, 2023
1 parent 8344388 commit 61eb96a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
# Run acceptance tests in a matrix with Terraform CLI versions
# Run acceptance tests with latest Terraform CLI version
test:
name: Terraform Provider Acceptance Tests
needs: build
Expand Down
13 changes: 8 additions & 5 deletions internal/provider/object_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ func TestAccJiraAssetsObjectResource(t *testing.T) {
Steps: []resource.TestStep{
{
Config: `resource "jiraassets_object" "test" {
type_id = ""
type_id = "117"
attributes = [
{
attr_type_id = ""
attr_value = ""
attr_type_id = "1087"
attr_value = "My Phone"
},
{
attr_type_id = "1090"
attr_value = "1234657890"
}
]
}`,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("jiraassets_object.test", "id", "1"),
resource.TestCheckResourceAttr("jiraassets_object.test", "attribute", "1"),
resource.TestCheckResourceAttr("jiraassets_object.test", "attributes.#", "2"),
),
},
},
Expand Down

0 comments on commit 61eb96a

Please sign in to comment.