Feature/filestorage sharenetworks get (#125)
* sfs: Add get for share networks
* sfs: Add acceptance test for share network Get
* sfs: Improve unit test for share network Get
diff --git a/acceptance/openstack/sharedfilesystems/v2/sharenetworks_test.go b/acceptance/openstack/sharedfilesystems/v2/sharenetworks_test.go
index d7d712b..b9876d5 100644
--- a/acceptance/openstack/sharedfilesystems/v2/sharenetworks_test.go
+++ b/acceptance/openstack/sharedfilesystems/v2/sharenetworks_test.go
@@ -19,6 +19,15 @@
t.Fatalf("Unable to create share network: %v", err)
}
+ newShareNetwork, err := sharenetworks.Get(client, shareNetwork.ID).Extract()
+ if err != nil {
+ t.Errorf("Unable to retrieve shareNetwork: %v", err)
+ }
+
+ if newShareNetwork.Name != shareNetwork.Name {
+ t.Fatalf("Share network name was expeted to be: %s", shareNetwork.Name)
+ }
+
PrintShareNetwork(t, shareNetwork)
defer DeleteShareNetwork(t, client, shareNetwork)