-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...rc/test/resources/test-resources/build-tool-with-recurring-tool-properties/Ballerina.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[package] | ||
org = "foo" | ||
name = "winery" | ||
version = "0.1.0" | ||
|
||
[[tool.openapi]] | ||
id = "generate-delivery-client" | ||
filePath = "delivery.json" | ||
targetModule = "delivery" | ||
options.mode = "client" | ||
|
||
[[tool.openapi]] | ||
id = "generate-delivery-client" | ||
filePath = "delivery1.json" | ||
options.mode = "client" | ||
|
||
[[tool.grpc]] | ||
id = "generate-grpc-client" | ||
filePath = "delivery2.json" | ||
targetModule = "delivery" |
3 changes: 3 additions & 0 deletions
3
...-cli/src/test/resources/test-resources/build-tool-with-recurring-tool-properties/main.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public function main() { | ||
return "Hello, World!"; | ||
} |
4 changes: 2 additions & 2 deletions
4
...s/test-resources/command-outputs/unix/build-tool-with-invalid-missing-toml-properties.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ERROR [Ballerina.toml:(6:1,9:24)] empty string found for key '[filePath]' | ||
ERROR [Ballerina.toml:(6:1,9:24)] missing key '[targetModule]' in table '[tool.openapi]' in 'Ballerina.toml'. | ||
ERROR [Ballerina.toml:(6:1,9:24)] empty string found for key '[filePath]' in table '[tool.openapi]'. | ||
WARNING [Ballerina.toml:(6:1,9:24)] missing key '[targetModule]' in table '[tool.openapi]'. Default module will be taken as target module. |
4 changes: 4 additions & 0 deletions
4
...sources/test-resources/command-outputs/unix/build-tool-with-recurring-tool-properties.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ERROR [Ballerina.toml:(6:1,10:24)] recurring target module delivery found in Ballerina.toml. Target module must be unique for each tool | ||
ERROR [Ballerina.toml:(6:1,10:24)] recurring tool id generate-delivery-client found in Ballerina.toml. Tool id must be unique for each tool | ||
WARNING [Ballerina.toml:(12:1,15:24)] missing key '[targetModule]' in table '[tool.openapi]'. Default module will be taken as target module. | ||
WARNING [Ballerina.toml:(17:1,20:26)] tool options validation skipped due to: Schema file not found: grpc-options-schema.json |
4 changes: 2 additions & 2 deletions
4
...est-resources/command-outputs/windows/build-tool-with-invalid-missing-toml-properties.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ERROR [Ballerina.toml:(6:1,9:24)] empty string found for key '[filePath]' | ||
ERROR [Ballerina.toml:(6:1,9:24)] missing key '[targetModule]' in table '[tool.openapi]' in 'Ballerina.toml'. | ||
ERROR [Ballerina.toml:(6:1,9:24)] empty string found for key '[filePath]' in table '[tool.openapi]'. | ||
WARNING [Ballerina.toml:(6:1,9:24)] missing key '[targetModule]' in table '[tool.openapi]'. Default module will be taken as target module. |
4 changes: 4 additions & 0 deletions
4
...rces/test-resources/command-outputs/windows/build-tool-with-recurring-tool-properties.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ERROR [Ballerina.toml:(6:1,10:24)] recurring target module delivery found in Ballerina.toml. Target module must be unique for each tool | ||
ERROR [Ballerina.toml:(6:1,10:24)] recurring tool id generate-delivery-client found in Ballerina.toml. Tool id must be unique for each tool | ||
WARNING [Ballerina.toml:(12:1,15:24)] missing key '[targetModule]' in table '[tool.openapi]'. Default module will be taken as target module. | ||
WARNING [Ballerina.toml:(17:1,20:26)] tool options validation skipped due to: Schema file not found: grpc-options-schema.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ org = "foo" | |
version = "0.1.0" | ||
|
||
[[tool.openapi]] | ||
id = "generate-delivery-client" | ||
options.mode = "client" |