update tests

This commit is contained in:
Eric Ning
2026-05-29 18:51:23 -07:00
parent 1944388f63
commit ee22b7c72b
4 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -443,16 +443,16 @@ plugins = true
.respond_with(ResponseTemplate::new(200).set_body_string(
r#"{
"plugins": [{
"id": "plugins~Plugin_data_analytics",
"name": "data-analytics",
"id": "plugins~Plugin_sample_remote",
"name": "sample-remote",
"scope": "GLOBAL",
"installation_policy": "AVAILABLE",
"authentication_policy": "ON_USE",
"status": "ENABLED",
"release": {
"display_name": "Data Analytics",
"description": "Analyze metrics",
"app_ids": ["asdk_app_databricks_workspace"],
"display_name": "Sample Remote",
"description": "Sample remote plugin",
"app_ids": ["asdk_app_sample_source"],
"interface": {},
"skills": []
}
+11 -11
View File
@@ -59,20 +59,20 @@ async fn list_tool_suggest_discoverable_plugins_includes_remote_vertical_plugins
.respond_with(ResponseTemplate::new(200).set_body_string(
r#"{
"plugins": [{
"id": "plugins~Plugin_data_analytics",
"name": "data-analytics",
"id": "plugins~Plugin_sample_remote",
"name": "sample-remote",
"scope": "GLOBAL",
"installation_policy": "AVAILABLE",
"authentication_policy": "ON_USE",
"status": "ENABLED",
"release": {
"display_name": "Data Analytics",
"description": "Analyze product and business metrics",
"app_ids": ["asdk_app_databricks_workspace"],
"display_name": "Sample Remote",
"description": "Sample remote plugin",
"app_ids": ["asdk_app_sample_source"],
"interface": {},
"skills": [{
"name": "build-report",
"description": "Build an analytics report",
"name": "sample-skill",
"description": "Run a sample workflow",
"plugin_release_skill_id": "skill-1",
"interface": {}
}]
@@ -111,12 +111,12 @@ async fn list_tool_suggest_discoverable_plugins_includes_remote_vertical_plugins
assert_eq!(
discoverable_plugins,
vec![DiscoverablePluginInfo {
id: "data-analytics@openai-curated-remote".to_string(),
name: "Data Analytics".to_string(),
description: Some("Analyze product and business metrics".to_string()),
id: "sample-remote@openai-curated-remote".to_string(),
name: "Sample Remote".to_string(),
description: Some("Sample remote plugin".to_string()),
has_skills: true,
mcp_server_names: Vec::new(),
app_connector_ids: vec!["asdk_app_databricks_workspace".to_string()],
app_connector_ids: vec!["asdk_app_sample_source".to_string()],
}]
);
assert_eq!(cached_discoverable_plugins, discoverable_plugins);
@@ -81,15 +81,15 @@ async fn verified_plugin_install_completed_checks_remote_installed_state() {
.respond_with(ResponseTemplate::new(200).set_body_string(
r#"{
"plugins": [{
"id": "plugins~Plugin_data_analytics",
"name": "data-analytics",
"id": "plugins~Plugin_sample_remote",
"name": "sample-remote",
"scope": "GLOBAL",
"installation_policy": "AVAILABLE",
"authentication_policy": "ON_USE",
"status": "ENABLED",
"release": {
"display_name": "Data Analytics",
"description": "Analyze metrics",
"display_name": "Sample Remote",
"description": "Sample remote plugin",
"interface": {},
"skills": []
},
@@ -120,7 +120,7 @@ async fn verified_plugin_install_completed_checks_remote_installed_state() {
assert!(
verified_plugin_install_completed(
"data-analytics@openai-curated-remote",
"sample-remote@openai-curated-remote",
&config,
&plugins_manager,
Some(&auth),
+2 -2
View File
@@ -453,7 +453,7 @@ async fn connect_remote_app_server(
) -> color_eyre::Result<AppServerClient> {
let app_server = RemoteAppServerClient::connect(RemoteAppServerConnectArgs {
endpoint,
client_name: "codex-tui".to_string(),
client_name: "codex-plugin-suggestion-test".to_string(),
client_version: env!("CARGO_PKG_VERSION").to_string(),
experimental_api: true,
opt_out_notification_methods: Vec::new(),
@@ -616,7 +616,7 @@ where
session_source: serde_json::from_value(serde_json::json!("cli"))
.unwrap_or_else(|err| panic!("cli session source should deserialize: {err}")),
enable_codex_api_key_env: false,
client_name: "codex-tui".to_string(),
client_name: "codex-plugin-suggestion-test".to_string(),
client_version: env!("CARGO_PKG_VERSION").to_string(),
experimental_api: true,
opt_out_notification_methods: Vec::new(),