You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current test implementation only checks for a single diagnostic, WARNING [main.bal:(16:1,24:2)] given OpenAPI contract file path is an empty string. but after the new changes there's a new diagnostic added.
WARNING [Ballerina.toml:(1:1,29:1)] missing table '[package]' in 'Ballerina.toml'. Defaulting to:
[package]
org = "shammi"
name = "sample_tool_runner"
version = "0.1.0"
This is ignored during the test assertions.
There are two ways to fix this:
Include the package table in the sample(sample 8) Ballerina project used for the test so the new warning diagnostic will not be reported.
Change the test to correctly assert both diagnostics.
lnash94
changed the title
[Bug]: Test failure in OpenAPI-tools after new changes to Balletina.toml diagnostics
[Task]: Test failure in OpenAPI-tools after new changes to Balletina.toml diagnostics
Jan 29, 2024
Description:
testEmptyOpenApiContractForBalProject
test in OpenAPI-tools is failing after a change done toBallerina.toml
diagnostics.Current test implementation only checks for a single diagnostic,
WARNING [main.bal:(16:1,24:2)] given OpenAPI contract file path is an empty string.
but after the new changes there's a new diagnostic added.This is ignored during the test assertions.
There are two ways to fix this:
Steps to reproduce:
Use the timestamp version containing the new changes and run
bal build
for sample 8.Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: