proovider/google: Adding test for google_pubsub_subscription path

This commit is contained in:
stack72 2017-05-05 16:57:24 +03:00
parent 07eddc9955
commit 8d00895d96
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
2 changed files with 3 additions and 2 deletions

View File

@ -16,11 +16,12 @@ func TestAccPubsubSubscriptionCreate(t *testing.T) {
Providers: testAccProviders,
CheckDestroy: testAccCheckPubsubSubscriptionDestroy,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccPubsubSubscription,
Check: resource.ComposeTestCheckFunc(
testAccPubsubSubscriptionExists(
"google_pubsub_subscription.foobar_sub"),
resource.TestCheckResourceAttrSet("google_pubsub_subscription.foobar_sub", "path"),
),
},
},

View File

@ -68,4 +68,4 @@ The optional `push_config` block supports:
## Attributes Reference
Only the arguments listed above are exposed as attributes.
* `path` - Path of the subscription in the format `projects/{project}/subscriptions/{sub}`