-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 105-use-ten_value_t-uniformly-to-represent-e…
…ach-field-in-the-message
- Loading branch information
Showing
24 changed files
with
1,699 additions
and
47 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
22 changes: 22 additions & 0 deletions
22
...c/ten_manager/tests/test_data/cmd_check_multi_apps_node_cannot_be_localhost/manifest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"type": "app", | ||
"name": "cmd_check_single_app", | ||
"version": "0.1.0", | ||
"dependencies": [ | ||
{ | ||
"type": "extension", | ||
"name": "addon_a", | ||
"version": "0.1.0" | ||
}, | ||
{ | ||
"type": "extension", | ||
"name": "addon_b", | ||
"version": "0.1.0" | ||
} | ||
], | ||
"package": { | ||
"include": [ | ||
"**" | ||
] | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...c/ten_manager/tests/test_data/cmd_check_multi_apps_node_cannot_be_localhost/property.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
37 changes: 37 additions & 0 deletions
37
...en_manager/tests/test_data/cmd_check_multi_apps_node_cannot_be_localhost/start_graph.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"type": "start_graph", | ||
"nodes": [ | ||
{ | ||
"type": "extension", | ||
"name": "ext_a", | ||
"addon": "addon_a", | ||
"extension_group": "some_group", | ||
"app": "http://localhost:8000" | ||
}, | ||
{ | ||
"type": "extension", | ||
"name": "ext_b", | ||
"addon": "addon_b", | ||
"extension_group": "some_group", | ||
"app": "localhost" | ||
} | ||
], | ||
"connections": [ | ||
{ | ||
"extension_group": "some_group", | ||
"extension": "ext_a", | ||
"app": "http://localhost:8000", | ||
"cmd": [ | ||
{ | ||
"name": "cmd_1", | ||
"dest": [ | ||
{ | ||
"extension_group": "some_group", | ||
"extension": "ext_b" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
...md_check_multi_apps_node_cannot_be_localhost/ten_packages/extension/addon_a/manifest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type": "extension", | ||
"name": "addon_a", | ||
"version": "0.1.0", | ||
"dependencies": [ | ||
{ | ||
"type": "system", | ||
"name": "ten_runtime_go", | ||
"version": "0.1.0" | ||
} | ||
], | ||
"package": { | ||
"include": [ | ||
"**" | ||
] | ||
}, | ||
"api": {} | ||
} |
18 changes: 18 additions & 0 deletions
18
...md_check_multi_apps_node_cannot_be_localhost/ten_packages/extension/addon_b/manifest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type": "extension", | ||
"name": "addon_b", | ||
"version": "0.1.0", | ||
"dependencies": [ | ||
{ | ||
"type": "system", | ||
"name": "ten_runtime_go", | ||
"version": "0.1.0" | ||
} | ||
], | ||
"package": { | ||
"include": [ | ||
"**" | ||
] | ||
}, | ||
"api": {} | ||
} |
22 changes: 22 additions & 0 deletions
22
...c/ten_manager/tests/test_data/cmd_check_single_app_node_cannot_be_localhost/manifest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"type": "app", | ||
"name": "cmd_check_single_app", | ||
"version": "0.1.0", | ||
"dependencies": [ | ||
{ | ||
"type": "extension", | ||
"name": "addon_a", | ||
"version": "0.1.0" | ||
}, | ||
{ | ||
"type": "extension", | ||
"name": "addon_b", | ||
"version": "0.1.0" | ||
} | ||
], | ||
"package": { | ||
"include": [ | ||
"**" | ||
] | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...c/ten_manager/tests/test_data/cmd_check_single_app_node_cannot_be_localhost/property.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
36 changes: 36 additions & 0 deletions
36
...en_manager/tests/test_data/cmd_check_single_app_node_cannot_be_localhost/start_graph.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"type": "start_graph", | ||
"nodes": [ | ||
{ | ||
"type": "extension", | ||
"name": "ext_a", | ||
"addon": "addon_a", | ||
"extension_group": "some_group", | ||
"app": "localhost" | ||
}, | ||
{ | ||
"type": "extension", | ||
"name": "ext_b", | ||
"addon": "addon_b", | ||
"extension_group": "some_group", | ||
"app": "localhost" | ||
} | ||
], | ||
"connections": [ | ||
{ | ||
"extension_group": "some_group", | ||
"extension": "ext_a", | ||
"cmd": [ | ||
{ | ||
"name": "cmd_1", | ||
"dest": [ | ||
{ | ||
"extension_group": "some_group", | ||
"extension": "ext_b" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
...md_check_single_app_node_cannot_be_localhost/ten_packages/extension/addon_a/manifest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type": "extension", | ||
"name": "addon_a", | ||
"version": "0.1.0", | ||
"dependencies": [ | ||
{ | ||
"type": "system", | ||
"name": "ten_runtime_go", | ||
"version": "0.1.0" | ||
} | ||
], | ||
"package": { | ||
"include": [ | ||
"**" | ||
] | ||
}, | ||
"api": {} | ||
} |
18 changes: 18 additions & 0 deletions
18
...md_check_single_app_node_cannot_be_localhost/ten_packages/extension/addon_b/manifest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type": "extension", | ||
"name": "addon_b", | ||
"version": "0.1.0", | ||
"dependencies": [ | ||
{ | ||
"type": "system", | ||
"name": "ten_runtime_go", | ||
"version": "0.1.0" | ||
} | ||
], | ||
"package": { | ||
"include": [ | ||
"**" | ||
] | ||
}, | ||
"api": {} | ||
} |
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
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,21 @@ | ||
// | ||
// Copyright © 2024 Agora | ||
// This file is part of TEN Framework, an open source project. | ||
// Licensed under the Apache License, Version 2.0, with certain conditions. | ||
// Refer to the "LICENSE" file in the root directory for more information. | ||
// | ||
pub const ERR_MSG_APP_LOCALHOST_DISALLOWED_SINGLE: &str = | ||
"'localhost' is not allowed in graph definition, and the graph seems to be a single-app graph, just remove the 'app' field"; | ||
|
||
pub const ERR_MSG_APP_LOCALHOST_DISALLOWED_MULTI: &str = | ||
"'localhost' is not allowed in graph definition, change the content of 'app' field to be consistent with '_ten::uri'"; | ||
|
||
pub const ERR_MSG_APP_DECLARATION_MISMATCH: &str = "Either all nodes should have 'app' declared, or none should, but not a mix of both."; | ||
|
||
pub const ERR_MSG_APP_IS_EMPTY: &str = "the 'app' field can not be empty, remove the field if the graph is a single-app graph"; | ||
|
||
pub const ERR_MSG_APP_SHOULD_NOT_DECLARED: &str = | ||
"the 'app' should not be declared, as not any node has declared it"; | ||
|
||
pub const ERR_MSG_APP_SHOULD_DECLARED: &str = | ||
"the 'app' can not be none, as it has been declared in nodes"; |
Oops, something went wrong.