ehdou | b5066cd | 2016-11-10 22:15:42 +0200 | [diff] [blame] | 1 | package v2 |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/gophercloud/gophercloud/acceptance/clients" |
| 7 | ) |
| 8 | |
ehdou | 894b50d | 2017-01-07 00:38:03 +0200 | [diff] [blame] | 9 | func TestSecurityServiceCreateDelete(t *testing.T) { |
ehdou | b5066cd | 2016-11-10 22:15:42 +0200 | [diff] [blame] | 10 | client, err := clients.NewSharedFileSystemV2Client() |
| 11 | if err != nil { |
| 12 | t.Fatalf("Unable to create shared file system client: %v", err) |
| 13 | } |
| 14 | |
| 15 | securityService, err := CreateSecurityService(t, client) |
| 16 | if err != nil { |
| 17 | t.Fatalf("Unable to create security service: %v", err) |
| 18 | } |
| 19 | |
ehdou | b5066cd | 2016-11-10 22:15:42 +0200 | [diff] [blame] | 20 | PrintSecurityService(t, securityService) |
ehdou | 894b50d | 2017-01-07 00:38:03 +0200 | [diff] [blame] | 21 | |
| 22 | defer DeleteSecurityService(t, client, securityService) |
ehdou | b5066cd | 2016-11-10 22:15:42 +0200 | [diff] [blame] | 23 | } |