@@ -55,7 +55,7 @@ def test_virtual_connection_get(self):
55
55
56
56
def test_virtual_connection_populate_connections (self ):
57
57
vconn = VirtualConnectionItem ("vconn" )
58
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
58
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
59
59
with requests_mock .mock () as m :
60
60
m .get (f"{ self .baseurl } /{ vconn .id } /connections" , text = VIRTUAL_CONNECTION_POPULATE_CONNECTIONS .read_text ())
61
61
vc_out = self .server .virtual_connections .populate_connections (vconn )
@@ -74,7 +74,7 @@ def test_virtual_connection_populate_connections(self):
74
74
75
75
def test_virtual_connection_update_connection_db_connection (self ):
76
76
vconn = VirtualConnectionItem ("vconn" )
77
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
77
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
78
78
connection = TSC .ConnectionItem ()
79
79
connection ._id = "37ca6ced-58d7-4dcf-99dc-f0a85223cbef"
80
80
connection .server_address = "localhost"
@@ -93,7 +93,7 @@ def test_virtual_connection_update_connection_db_connection(self):
93
93
94
94
def test_virtual_connection_get_by_id (self ):
95
95
vconn = VirtualConnectionItem ("vconn" )
96
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
96
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
97
97
with requests_mock .mock () as m :
98
98
m .get (f"{ self .baseurl } /{ vconn .id } " , text = VIRTUAL_CONNECTION_DOWNLOAD .read_text ())
99
99
vconn = self .server .virtual_connections .get_by_id (vconn )
@@ -106,7 +106,7 @@ def test_virtual_connection_get_by_id(self):
106
106
107
107
def test_virtual_connection_update (self ):
108
108
vconn = VirtualConnectionItem ("vconn" )
109
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
109
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
110
110
vconn .is_certified = True
111
111
vconn .certification_note = "demo certification note"
112
112
vconn .project_id = "5286d663-8668-4ac2-8c8d-91af7d585f6b"
@@ -125,7 +125,7 @@ def test_virtual_connection_update(self):
125
125
126
126
def test_virtual_connection_get_revisions (self ):
127
127
vconn = VirtualConnectionItem ("vconn" )
128
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
128
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
129
129
with requests_mock .mock () as m :
130
130
m .get (f"{ self .baseurl } /{ vconn .id } /revisions" , text = VIRTUAL_CONNECTION_REVISIONS .read_text ())
131
131
revisions , pagination_item = self .server .virtual_connections .get_revisions (vconn )
@@ -157,7 +157,7 @@ def test_virtual_connection_get_revisions(self):
157
157
158
158
def test_virtual_connection_download_revision (self ):
159
159
vconn = VirtualConnectionItem ("vconn" )
160
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
160
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
161
161
with requests_mock .mock () as m :
162
162
m .get (f"{ self .baseurl } /{ vconn .id } /revisions/1" , text = VIRTUAL_CONNECTION_DOWNLOAD .read_text ())
163
163
content = self .server .virtual_connections .download_revision (vconn , 1 )
@@ -170,7 +170,7 @@ def test_virtual_connection_download_revision(self):
170
170
171
171
def test_virtual_connection_delete (self ):
172
172
vconn = VirtualConnectionItem ("vconn" )
173
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
173
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
174
174
with requests_mock .mock () as m :
175
175
m .delete (f"{ self .baseurl } /{ vconn .id } " )
176
176
self .server .virtual_connections .delete (vconn )
@@ -180,7 +180,7 @@ def test_virtual_connection_delete(self):
180
180
181
181
def test_virtual_connection_publish (self ):
182
182
vconn = VirtualConnectionItem ("vconn" )
183
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
183
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
184
184
vconn .project_id = "9836791c-9468-40f0-b7f3-d10b9562a046"
185
185
vconn .owner_id = "ee8bc9ca-77fe-4ae0-8093-cf77f0ee67a9"
186
186
with requests_mock .mock () as m :
@@ -198,7 +198,7 @@ def test_virtual_connection_publish(self):
198
198
199
199
def test_virtual_connection_publish_draft_overwrite (self ):
200
200
vconn = VirtualConnectionItem ("vconn" )
201
- vconn .id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
201
+ vconn ._id = "8fd7cc02-bb55-4d15-b8b1-9650239efe79"
202
202
vconn .project_id = "9836791c-9468-40f0-b7f3-d10b9562a046"
203
203
vconn .owner_id = "ee8bc9ca-77fe-4ae0-8093-cf77f0ee67a9"
204
204
with requests_mock .mock () as m :
@@ -219,7 +219,7 @@ def test_add_permissions(self) -> None:
219
219
response_xml = f .read ().decode ("utf-8" )
220
220
221
221
single_virtual_connection = TSC .VirtualConnectionItem ("test" )
222
- single_virtual_connection .id = "21778de4-b7b9-44bc-a599-1506a2639ace"
222
+ single_virtual_connection ._id = "21778de4-b7b9-44bc-a599-1506a2639ace"
223
223
224
224
bob = TSC .UserItem .as_reference ("7c37ee24-c4b1-42b6-a154-eaeab7ee330a" )
225
225
group_of_people = TSC .GroupItem .as_reference ("5e5e1978-71fa-11e4-87dd-7382f5c437af" )
0 commit comments