Skip to content

Commit

Permalink
added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aomegax committed Nov 21, 2024
1 parent 6a4ea60 commit 4945d09
Show file tree
Hide file tree
Showing 11 changed files with 202 additions and 179 deletions.
18 changes: 9 additions & 9 deletions openapi/openapi_export.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"summary" : "Get xlsx of full cache",
"operationId" : "xls",
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"403" : {
"description" : "Forbidden"
},
Expand All @@ -42,15 +48,6 @@
}
}
},
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -60,6 +57,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand Down
94 changes: 47 additions & 47 deletions openapi/openapi_fdrv1.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConfigDataV1"
}
}
}
},
"403" : {
"description" : "Forbidden"
},
Expand All @@ -52,19 +62,6 @@
}
}
},
"401" : {
"description" : "Unauthorized"
},
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConfigDataV1"
}
}
}
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -74,6 +71,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -87,6 +87,12 @@
"summary" : "Get xlsx of last v1 {stakeholder} cache version",
"operationId" : "xls",
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"403" : {
"description" : "Forbidden"
},
Expand All @@ -103,15 +109,6 @@
}
}
},
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -121,6 +118,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand Down Expand Up @@ -163,9 +163,6 @@
}
}
},
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -175,6 +172,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -185,28 +185,6 @@
},
"components" : {
"schemas" : {
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"BrokerCreditorInstitution" : {
"required" : [ "broker_code", "enabled", "extended_fault_bean" ],
"type" : "object",
Expand Down Expand Up @@ -1058,6 +1036,28 @@
}
}
},
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"CacheVersion" : {
"required" : [ "version" ],
"type" : "object",
Expand Down
94 changes: 47 additions & 47 deletions openapi/openapi_nodev1.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConfigDataV1"
}
}
}
},
"403" : {
"description" : "Forbidden"
},
Expand All @@ -52,19 +62,6 @@
}
}
},
"401" : {
"description" : "Unauthorized"
},
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConfigDataV1"
}
}
}
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -74,6 +71,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -87,6 +87,12 @@
"summary" : "Get xlsx of last v1 {stakeholder} cache version",
"operationId" : "xls",
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"403" : {
"description" : "Forbidden"
},
Expand All @@ -103,15 +109,6 @@
}
}
},
"200" : {
"description" : "OK",
"content" : {
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : { }
}
},
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -121,6 +118,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand Down Expand Up @@ -163,9 +163,6 @@
}
}
},
"401" : {
"description" : "Unauthorized"
},
"400" : {
"description" : "Bad Request",
"content" : {
Expand All @@ -175,6 +172,9 @@
}
}
}
},
"401" : {
"description" : "Unauthorized"
}
},
"security" : [ {
Expand All @@ -185,28 +185,6 @@
},
"components" : {
"schemas" : {
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"BrokerCreditorInstitution" : {
"required" : [ "broker_code", "enabled", "extended_fault_bean" ],
"type" : "object",
Expand Down Expand Up @@ -1058,6 +1036,28 @@
}
}
},
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
}
}
},
"CacheVersion" : {
"required" : [ "version" ],
"type" : "object",
Expand Down
Loading

0 comments on commit 4945d09

Please sign in to comment.