mirror of
https://github.com/hoshikawa2/OCI_API_Gateway_Automation2.git
synced 2026-03-06 18:21:01 +00:00
Correção, estava ocorrendo falso-positivo, com mensagem 200 mesmo com erro na validação das especificações.
This commit is contained in:
Binary file not shown.
@@ -593,19 +593,7 @@ def process_api_spec(api_id, compartmentId, environment, swagger, functionId, ho
|
|||||||
applyAuthApi(compartmentId=compartmentId, displayName=API_NAME, payload=payload, functionId=functionId, host=host, api_gateway_id=api_gateway_id, rate_limit=rate_limit)
|
applyAuthApi(compartmentId=compartmentId, displayName=API_NAME, payload=payload, functionId=functionId, host=host, api_gateway_id=api_gateway_id, rate_limit=rate_limit)
|
||||||
|
|
||||||
except(Exception) as ex:
|
except(Exception) as ex:
|
||||||
jsonData = 'error parsing json payload: ' + str(ex)
|
raise
|
||||||
put_logs_response = logging.put_logs(
|
|
||||||
log_id="ocid1.log.oc1.iad.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
||||||
put_logs_details=oci.loggingingestion.models.PutLogsDetails(
|
|
||||||
specversion="EXAMPLE-specversion-Value",
|
|
||||||
log_entry_batches=[
|
|
||||||
oci.loggingingestion.models.LogEntryBatch(
|
|
||||||
entries=[
|
|
||||||
oci.loggingingestion.models.LogEntry(
|
|
||||||
data="error(3): " + jsonData,
|
|
||||||
id="ocid1.test.oc1..00000001.EXAMPLE-id-Value")],
|
|
||||||
source="EXAMPLE-source-Value",
|
|
||||||
type="EXAMPLE-type-Value")]))
|
|
||||||
|
|
||||||
def DateEncoder(obj):
|
def DateEncoder(obj):
|
||||||
if isinstance(obj, datetime.datetime):
|
if isinstance(obj, datetime.datetime):
|
||||||
|
|||||||
@@ -123,19 +123,7 @@ def process_api_spec(displayName, compartmentId, environment, swagger):
|
|||||||
return api_id
|
return api_id
|
||||||
|
|
||||||
except(Exception) as ex:
|
except(Exception) as ex:
|
||||||
jsonData = 'error parsing json payload: ' + str(ex)
|
raise
|
||||||
put_logs_response = logging.put_logs(
|
|
||||||
log_id="ocid1.log.oc1.iad.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
||||||
put_logs_details=oci.loggingingestion.models.PutLogsDetails(
|
|
||||||
specversion="EXAMPLE-specversion-Value",
|
|
||||||
log_entry_batches=[
|
|
||||||
oci.loggingingestion.models.LogEntryBatch(
|
|
||||||
entries=[
|
|
||||||
oci.loggingingestion.models.LogEntry(
|
|
||||||
data="error: " + jsonData,
|
|
||||||
id="ocid1.test.oc1..00000001.EXAMPLE-id-Value")],
|
|
||||||
source="EXAMPLE-source-Value",
|
|
||||||
type="EXAMPLE-type-Value")]))
|
|
||||||
|
|
||||||
def DateEncoder(obj):
|
def DateEncoder(obj):
|
||||||
if isinstance(obj, datetime.datetime):
|
if isinstance(obj, datetime.datetime):
|
||||||
|
|||||||
Reference in New Issue
Block a user