@@ -3835,9 +3835,33 @@ def test_parse_feed_path():
3835
3835
assert expected == actual
3836
3836
3837
3837
3838
+ def test_inventory_path ():
3839
+ project = "scallop"
3840
+ location = "abalone"
3841
+ instance = "squid"
3842
+ expected = "projects/{project}/locations/{location}/instances/{instance}/inventory" .format (
3843
+ project = project , location = location , instance = instance ,
3844
+ )
3845
+ actual = AssetServiceClient .inventory_path (project , location , instance )
3846
+ assert expected == actual
3847
+
3848
+
3849
+ def test_parse_inventory_path ():
3850
+ expected = {
3851
+ "project" : "clam" ,
3852
+ "location" : "whelk" ,
3853
+ "instance" : "octopus" ,
3854
+ }
3855
+ path = AssetServiceClient .inventory_path (** expected )
3856
+
3857
+ # Check that the path construction is reversible.
3858
+ actual = AssetServiceClient .parse_inventory_path (path )
3859
+ assert expected == actual
3860
+
3861
+
3838
3862
def test_service_perimeter_path ():
3839
- access_policy = "scallop "
3840
- service_perimeter = "abalone "
3863
+ access_policy = "oyster "
3864
+ service_perimeter = "nudibranch "
3841
3865
expected = "accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}" .format (
3842
3866
access_policy = access_policy , service_perimeter = service_perimeter ,
3843
3867
)
@@ -3847,8 +3871,8 @@ def test_service_perimeter_path():
3847
3871
3848
3872
def test_parse_service_perimeter_path ():
3849
3873
expected = {
3850
- "access_policy" : "squid " ,
3851
- "service_perimeter" : "clam " ,
3874
+ "access_policy" : "cuttlefish " ,
3875
+ "service_perimeter" : "mussel " ,
3852
3876
}
3853
3877
path = AssetServiceClient .service_perimeter_path (** expected )
3854
3878
@@ -3858,7 +3882,7 @@ def test_parse_service_perimeter_path():
3858
3882
3859
3883
3860
3884
def test_common_billing_account_path ():
3861
- billing_account = "whelk "
3885
+ billing_account = "winkle "
3862
3886
expected = "billingAccounts/{billing_account}" .format (
3863
3887
billing_account = billing_account ,
3864
3888
)
@@ -3868,7 +3892,7 @@ def test_common_billing_account_path():
3868
3892
3869
3893
def test_parse_common_billing_account_path ():
3870
3894
expected = {
3871
- "billing_account" : "octopus " ,
3895
+ "billing_account" : "nautilus " ,
3872
3896
}
3873
3897
path = AssetServiceClient .common_billing_account_path (** expected )
3874
3898
@@ -3878,15 +3902,15 @@ def test_parse_common_billing_account_path():
3878
3902
3879
3903
3880
3904
def test_common_folder_path ():
3881
- folder = "oyster "
3905
+ folder = "scallop "
3882
3906
expected = "folders/{folder}" .format (folder = folder ,)
3883
3907
actual = AssetServiceClient .common_folder_path (folder )
3884
3908
assert expected == actual
3885
3909
3886
3910
3887
3911
def test_parse_common_folder_path ():
3888
3912
expected = {
3889
- "folder" : "nudibranch " ,
3913
+ "folder" : "abalone " ,
3890
3914
}
3891
3915
path = AssetServiceClient .common_folder_path (** expected )
3892
3916
@@ -3896,15 +3920,15 @@ def test_parse_common_folder_path():
3896
3920
3897
3921
3898
3922
def test_common_organization_path ():
3899
- organization = "cuttlefish "
3923
+ organization = "squid "
3900
3924
expected = "organizations/{organization}" .format (organization = organization ,)
3901
3925
actual = AssetServiceClient .common_organization_path (organization )
3902
3926
assert expected == actual
3903
3927
3904
3928
3905
3929
def test_parse_common_organization_path ():
3906
3930
expected = {
3907
- "organization" : "mussel " ,
3931
+ "organization" : "clam " ,
3908
3932
}
3909
3933
path = AssetServiceClient .common_organization_path (** expected )
3910
3934
@@ -3914,15 +3938,15 @@ def test_parse_common_organization_path():
3914
3938
3915
3939
3916
3940
def test_common_project_path ():
3917
- project = "winkle "
3941
+ project = "whelk "
3918
3942
expected = "projects/{project}" .format (project = project ,)
3919
3943
actual = AssetServiceClient .common_project_path (project )
3920
3944
assert expected == actual
3921
3945
3922
3946
3923
3947
def test_parse_common_project_path ():
3924
3948
expected = {
3925
- "project" : "nautilus " ,
3949
+ "project" : "octopus " ,
3926
3950
}
3927
3951
path = AssetServiceClient .common_project_path (** expected )
3928
3952
@@ -3932,8 +3956,8 @@ def test_parse_common_project_path():
3932
3956
3933
3957
3934
3958
def test_common_location_path ():
3935
- project = "scallop "
3936
- location = "abalone "
3959
+ project = "oyster "
3960
+ location = "nudibranch "
3937
3961
expected = "projects/{project}/locations/{location}" .format (
3938
3962
project = project , location = location ,
3939
3963
)
@@ -3943,8 +3967,8 @@ def test_common_location_path():
3943
3967
3944
3968
def test_parse_common_location_path ():
3945
3969
expected = {
3946
- "project" : "squid " ,
3947
- "location" : "clam " ,
3970
+ "project" : "cuttlefish " ,
3971
+ "location" : "mussel " ,
3948
3972
}
3949
3973
path = AssetServiceClient .common_location_path (** expected )
3950
3974
0 commit comments