Skip to content

Commit

Permalink
Temporarily add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Aug 20, 2024
1 parent c965c08 commit e0b19fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_ubuntu_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
run: |
export DISPLAY=':99.0'
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
./gradlew build sonarqube --info -x test -x check --max-workers=2 --scan --no-daemon
./gradlew build sonarqube --info -x test -x check -x :diagram-util:checkstyleTest --max-workers=2 --scan --no-daemon
- name: Print log message
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew.bat build --continue -x :ballerina-lang:test -x :jballerina-integration-test:test -x javadoc --stacktrace -scan --console=plain --no-daemon --no-parallel
run: ./gradlew.bat build --continue -x :ballerina-lang:test -x :jballerina-integration-test:test -x :diagram-util:checkstyleTest -x javadoc --stacktrace -scan --console=plain --no-daemon --no-parallel

Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,9 @@ public void testAnnotatedVisibleEndpoint() throws IOException {
DocumentId documentId = optionalDocumentId.get();
Document document = module.document(documentId);
JsonElement stJson = DiagramUtil.getSyntaxTreeJSON(document, semanticModel);
System.out.println("------------------------------------ ParentJson");
System.out.println(stJson);
System.out.println("-----------------------------------------------");
Assert.assertTrue(stJson.isJsonObject());

Assert.assertEquals(stJson.getAsJsonObject().get("kind").getAsString(), "ModulePart");
Expand All @@ -793,6 +796,7 @@ public void testAnnotatedVisibleEndpoint() throws IOException {
JsonObject userPostFunction = userService.get("members").getAsJsonArray().get(5).getAsJsonObject();
JsonArray userPostFunctionVEp = userPostFunction.get("functionBody").getAsJsonObject().get("VisibleEndpoints")
.getAsJsonArray();
System.out.println(userPostFunctionVEp);
Assert.assertEquals(userPostFunctionVEp.size(), 5);
checkClientVisibleEndpoints(userPostFunctionVEp.get(0).getAsJsonObject(), "httpEp", "Client", "ballerina",
"http", "http", "2.8.0", 4, 4, false, true, true, false);
Expand Down

0 comments on commit e0b19fe

Please sign in to comment.