oc-cdtapi 3.13.8__py3-none-any.whl → 3.13.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oc_cdtapi/Dbsm2API.py +22 -2
- {oc_cdtapi-3.13.8.dist-info → oc_cdtapi-3.13.10.dist-info}/METADATA +1 -1
- {oc_cdtapi-3.13.8.dist-info → oc_cdtapi-3.13.10.dist-info}/RECORD +7 -7
- {oc_cdtapi-3.13.8.data → oc_cdtapi-3.13.10.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.13.8.dist-info → oc_cdtapi-3.13.10.dist-info}/LICENSE +0 -0
- {oc_cdtapi-3.13.8.dist-info → oc_cdtapi-3.13.10.dist-info}/WHEEL +0 -0
- {oc_cdtapi-3.13.8.dist-info → oc_cdtapi-3.13.10.dist-info}/top_level.txt +0 -0
oc_cdtapi/Dbsm2API.py
CHANGED
@@ -27,7 +27,7 @@ class Dbsm2API (API.HttpAPI):
|
|
27
27
|
self.exit_states = ['FAILED', 'SUCCESS']
|
28
28
|
|
29
29
|
# wait for state timeout
|
30
|
-
self.wait_state_timeout =
|
30
|
+
self.wait_state_timeout = 1800
|
31
31
|
|
32
32
|
# wait for state request interval
|
33
33
|
self.wait_state_sleep = 30
|
@@ -45,7 +45,7 @@ class Dbsm2API (API.HttpAPI):
|
|
45
45
|
self.web.auth = None
|
46
46
|
self.raise_exception_high = 499
|
47
47
|
|
48
|
-
def create_custom_image(self, version=None, distr_type=None, client_filter=None, client_code=None):
|
48
|
+
def create_custom_image(self, version=None, distr_type=None, client_filter=None, client_code=None, schema_name=None):
|
49
49
|
"""
|
50
50
|
Sends request to create custom image
|
51
51
|
:param str version: version of product
|
@@ -58,6 +58,10 @@ class Dbsm2API (API.HttpAPI):
|
|
58
58
|
logging.debug('distr_type: [%s]' % distr_type)
|
59
59
|
logging.debug('client_filter: [%s]' % client_filter)
|
60
60
|
logging.debug('client_code: [%s]' % client_code)
|
61
|
+
logging.debug('schema_name: [%s]' % schema_name)
|
62
|
+
if client_filter is None:
|
63
|
+
logging.debug('received None client_filter, setting to empty string')
|
64
|
+
client_filter = ''
|
61
65
|
|
62
66
|
url = posixpath.join('api', 'v1', 'images', 'custom-cdt')
|
63
67
|
headers = self.get_headers()
|
@@ -70,8 +74,11 @@ class Dbsm2API (API.HttpAPI):
|
|
70
74
|
'oracle_encoding': self.oracle_encoding,
|
71
75
|
'oracle_version': self.oracle_version,
|
72
76
|
'oracle_edition': self.oracle_edition,
|
77
|
+
'schema_name': schema_name,
|
73
78
|
'remap_tablespaces': 'true'
|
74
79
|
}
|
80
|
+
logging.debug('dumping request params')
|
81
|
+
logging.debug(json.dumps(params, indent=4))
|
75
82
|
r = self.post(url, headers=headers, json=params)
|
76
83
|
return self.json_or_none(r)
|
77
84
|
|
@@ -121,6 +128,11 @@ class Dbsm2API (API.HttpAPI):
|
|
121
128
|
"""
|
122
129
|
logging.debug('Reached get_image_details')
|
123
130
|
logging.debug('image_id: [%s]' % image_id)
|
131
|
+
|
132
|
+
if image_id is None:
|
133
|
+
logging.debug('received None image_id, returning None')
|
134
|
+
return None
|
135
|
+
|
124
136
|
headers = self.get_headers()
|
125
137
|
url = posixpath.join('api', 'v1', 'images', image_id)
|
126
138
|
r = self.get(url, headers=headers)
|
@@ -218,6 +230,14 @@ class Dbsm2API (API.HttpAPI):
|
|
218
230
|
"""
|
219
231
|
logging.debug('Reached wait_for_image')
|
220
232
|
logging.debug('audit_id: [%s]' % audit_id)
|
233
|
+
|
234
|
+
if not isinstance(self.wait_state_timeout, int):
|
235
|
+
logging.debug('wait_state_timeout is not integer, attempting to convert')
|
236
|
+
self.wait_state_timeout = int(self.wait_state_timeout)
|
237
|
+
if not isinstance(self.wait_state_sleep, int):
|
238
|
+
logging.debug('wait_state_sleep in not integer, attempting to convert')
|
239
|
+
self.wait_state_sleep = int(self.wait_state_sleep)
|
240
|
+
|
221
241
|
ela = 0
|
222
242
|
st = int(time.time())
|
223
243
|
audit = None
|
@@ -1,5 +1,5 @@
|
|
1
1
|
oc_cdtapi/API.py,sha256=hpdnzyirYT_wISeznRmoqr-umYRT6uqKVwhmCXyj8Nk,12398
|
2
|
-
oc_cdtapi/Dbsm2API.py,sha256=
|
2
|
+
oc_cdtapi/Dbsm2API.py,sha256=igPIos7ArjKPnV41U9fHGc36ECvG25IFoSvizX9E59Y,9596
|
3
3
|
oc_cdtapi/DevPIAPI.py,sha256=Nn63Ob0kA5XXuRZ3OIWG2rcnSsztKq9yPI6Lu2zX3Gk,1836
|
4
4
|
oc_cdtapi/DmsAPI.py,sha256=eNFdwQLhCbPvHB5SUtP4QcZZtSdjkgt_Cxn3oQ3iJ5s,15605
|
5
5
|
oc_cdtapi/DmsGetverAPI.py,sha256=ZPU4HlF59fngKu5mSFhtss3rlBuduffDOSm_y3XWrxk,15556
|
@@ -9,9 +9,9 @@ oc_cdtapi/NexusAPI.py,sha256=uU12GtHvKlWorFaPAnFcQ5AGEc94MZ5SdmfM2Pw3F7A,26122
|
|
9
9
|
oc_cdtapi/RundeckAPI.py,sha256=O3LmcFaHSz8UqeUyIHTTEMJncDD191Utd-iZaeJay2s,24243
|
10
10
|
oc_cdtapi/TestServer.py,sha256=HV97UWg2IK4gOYAp9yaMdwFUWsw9v66MxyZdI3qQctA,2715
|
11
11
|
oc_cdtapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
oc_cdtapi-3.13.
|
13
|
-
oc_cdtapi-3.13.
|
14
|
-
oc_cdtapi-3.13.
|
15
|
-
oc_cdtapi-3.13.
|
16
|
-
oc_cdtapi-3.13.
|
17
|
-
oc_cdtapi-3.13.
|
12
|
+
oc_cdtapi-3.13.10.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
|
13
|
+
oc_cdtapi-3.13.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
14
|
+
oc_cdtapi-3.13.10.dist-info/METADATA,sha256=Eu3YW8QPaTrux15ntpOOYfMo9y5V9An2e39S68paeiA,255
|
15
|
+
oc_cdtapi-3.13.10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
16
|
+
oc_cdtapi-3.13.10.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
|
17
|
+
oc_cdtapi-3.13.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|