Skip to content

Commit

Permalink
Fixing unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Jan 7, 2025
1 parent 8dfd850 commit dfe54cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ jobs:
if: ${{ !cancelled() }}
run: cat /var/log/mosquitto/mosquitto.log || true
- name: captured messages
if: ${{ !cancelled() }}
run: find out/registries -type f
- name: support bundle
if: ${{ !cancelled() }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ private void reflectUdmiLog(Envelope attributes, String message) {

private Object extractModel(CloudModel request) {
String metadata = catchToNull(() -> request.metadata.get(MetadataMapKeys.UDMI_METADATA));
if (request.resource_type == REGISTRY) {
return asSiteMetadataUpdate(metadata);
} else if (metadata == null) {
if (metadata == null) {
return asModelUpdate(request);
} else {
} else if (request.resource_type == REGISTRY) {
return asSiteMetadataUpdate(metadata);
} else {
return asModelUpdate(metadata);
}
}
Expand Down

0 comments on commit dfe54cd

Please sign in to comment.