Skip to content

Commit

Permalink
Fix pytests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tommystendahl committed Jan 15, 2025
1 parent 0b9b371 commit 46af465
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
2 changes: 1 addition & 1 deletion application/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ management:
# and API doc at <ecchronos:port>/v3/api-docs.yaml
springdoc:
api-docs:
version: OPENAPI_3_0
enabled: false
version: "openapi_3_0"

# Security Config
#server:
Expand Down
29 changes: 5 additions & 24 deletions docs/autogenerated/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ paths:
text/plain;version=0.0.4;charset=utf-8:
schema:
type: string
application/openmetrics-text; version=1.0.0; charset=utf-8:
schema:
type: string
application/openmetrics-text;version=1.0.0;charset=utf-8:
schema:
type: string
text/plain; version=0.0.4; charset=utf-8:
schema:
type: string
application/openmetrics-text; version=1.0.0; charset=utf-8:
schema:
type: string
/actuator:
get:
tags:
Expand All @@ -309,14 +309,14 @@ paths:
type: object
additionalProperties:
$ref: "#/components/schemas/Link"
application/json:
application/vnd.spring-boot.actuator.v2+json:
schema:
type: object
additionalProperties:
type: object
additionalProperties:
$ref: "#/components/schemas/Link"
application/vnd.spring-boot.actuator.v2+json:
application/json:
schema:
type: object
additionalProperties:
Expand All @@ -336,31 +336,12 @@ paths:
application/vnd.spring-boot.actuator.v3+json:
schema:
type: object
application/json:
schema:
type: object
application/vnd.spring-boot.actuator.v2+json:
schema:
type: object
/actuator/health/**:
get:
tags:
- Actuator
summary: Actuator web endpoint 'health-path'
operationId: health-path
responses:
"200":
description: OK
content:
application/vnd.spring-boot.actuator.v3+json:
schema:
type: object
application/json:
schema:
type: object
application/vnd.spring-boot.actuator.v2+json:
schema:
type: object
components:
schemas:
OnDemandRepair:
Expand Down
4 changes: 2 additions & 2 deletions ecchronos-binary/src/test/bin/pytests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ sed 's;^\(\s*\)\(<appender-ref ref="STDOUT" />\)\s*$;\1<!-- \2 -->;g' -i "$CONF_

# springdoc

sed '/springdoc:/{n;/api-docs/{n;s/enabled: .*/enabled: true/}}' -i "$CONF_DIR"/application.yml
sed '/springdoc:/{n;/api-docs/{n;/enabled: true/{n;s/.*/ show-actuator: true\n/}}}' -i "$CONF_DIR"/application.yml
sed '/springdoc:/{n;/api-docs/{n;/version: OPENAPI_3_0/{n;s/enabled: .*/enabled: true/}}}' -i "$CONF_DIR"/application.yml
sed '/springdoc:/{n;/api-docs/{n;/version: OPENAPI_3_0/{n;/enabled: true/{n;s/.*/ show-actuator: true\n/}}}}' -i "$CONF_DIR"/application.yml

## Special config for test.table1

Expand Down

0 comments on commit 46af465

Please sign in to comment.