Skip to content

Fix and re-enable network-dependent formatter tests (RemoteConfigurationTest, FormatFileResolutionTest) #44544

@Thevakumar-Luheerathan

Description

@Thevakumar-Luheerathan

Summary

The following formatter tests were temporarily disabled as they are currently failing due to network/remote URL dependency issues:

Disabled Tests

  1. RemoteConfigurationTest#test[0](main.bal, configurations/remote)

    • File: misc/formatter/modules/formatter-core/src/test/java/org/ballerinalang/formatter/core/configurations/RemoteConfigurationTest.java
  2. FormatFileResolutionTest#resolutionOfRemoteFormatFileTest

  3. FormatFileResolutionTest#cacheWithTargetDirectoryPresent

  4. FormatFileResolutionTest#failureToCreateFormatCacheFolderTest

  5. FormatFileResolutionTest#failureToWriteCacheFileTest

    • File: misc/formatter/modules/formatter-core/src/test/java/org/ballerinalang/formatter/core/configurations/FormatFileResolutionTest.java

Root Cause

These tests depend on a remote GitHub Gist URL:
https://gist.githubusercontent.com/ballerina-bot/ae54cc7303e9d474d730d732c1594c61/raw/.../format.toml

They fail when this URL is unreachable or returns an unexpected response.

Action Required

  • Investigate the remote URL availability / stability
  • Consider mocking the HTTP call or hosting the file in a more stable location
  • Re-enable all 5 tests once the fix is in place

Affected Branches

  • 2201.12.x
  • master
  • 2201.13.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions