Skip to content

Commit

Permalink
resource/aws_sagemaker_model: Address PR #2478 feedback
Browse files Browse the repository at this point in the history
Output from acceptance testing:

```
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (23.40s)
--- PASS: TestAccAWSSagemakerModel_basic (23.70s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (23.82s)
--- PASS: TestAccAWSSagemakerModel_tags (32.58s)
--- PASS: TestAccAWSSagemakerModel_containers (33.86s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (35.85s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (39.13s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (39.20s)
```
  • Loading branch information
bflad committed Feb 7, 2019
1 parent 5242744 commit 8b5b5e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions aws/resource_aws_sagemaker_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func TestAccAWSSagemakerModel_primaryContainerHostname(t *testing.T) {
func TestAccAWSSagemakerModel_primaryContainerEnvironment(t *testing.T) {
rName := acctest.RandString(10)

resource.Test(t, resource.TestCase{
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckSagemakerModelDestroy,
Expand All @@ -203,7 +203,7 @@ func TestAccAWSSagemakerModel_primaryContainerEnvironment(t *testing.T) {
func TestAccAWSSagemakerModel_containers(t *testing.T) {
rName := acctest.RandString(10)

resource.Test(t, resource.TestCase{
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckSagemakerModelDestroy,
Expand Down Expand Up @@ -373,7 +373,7 @@ resource "aws_sagemaker_model" "foo" {
image = "%s"
}
tags {
tags = {
foo = "bar"
}
}
Expand Down Expand Up @@ -406,7 +406,7 @@ resource "aws_sagemaker_model" "foo" {
image = "%s"
}
tags {
tags = {
bar = "baz"
}
}
Expand Down Expand Up @@ -550,7 +550,7 @@ resource "aws_sagemaker_model" "foo" {
primary_container {
image = "%s"
environment {
environment = {
foo = "bar"
}
}
Expand Down
6 changes: 5 additions & 1 deletion website/aws.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2272,10 +2272,14 @@
<a href="#">Sagemaker Resources</a>
<ul class="nav nav-visible">

<li<%= sidebar_current("docs-aws-resource-sagemaker-model") %>>
<a href="/docs/providers/aws/r/sagemaker_model.html">aws_sagemaker_model</a>
</li>

<li<%= sidebar_current("docs-aws-sagemaker-notebook-instance") %>>
<a href="/docs/providers/aws/r/sagemaker_notebook_instance.html">aws_sagemaker_notebook_instance</a>
</li>

</ul>
</li>

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/sagemaker_model.html.markdown
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: "aws"
page_title: "AWS: sagemaker_model"
page_title: "AWS: aws_sagemaker_model"
sidebar_current: "docs-aws-resource-sagemaker-model"
description: |-
Provides a SageMaker model resource.
---

# aws\_sagemaker\_model
# aws_sagemaker_model

Provides a SageMaker model resource.

Expand Down

0 comments on commit 8b5b5e3

Please sign in to comment.