fix: align integrated validation contracts
This commit is contained in:
@@ -795,13 +795,25 @@ permission = "write"
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn builtin_orchestrator_exposes_worker_remove_and_workdir_delete() {
|
async fn builtin_orchestrator_exposes_worker_remove_and_workdir_delete() {
|
||||||
let workspace = tempfile::tempdir().unwrap();
|
let workspace = tempfile::tempdir().unwrap();
|
||||||
let resolved = ProfileResolver::new()
|
let mut resolved = ProfileResolver::new()
|
||||||
.with_workspace_base(workspace.path())
|
.with_workspace_base(workspace.path())
|
||||||
.resolve(
|
.resolve(
|
||||||
&ProfileSelector::source_named(ProfileRegistrySource::Builtin, "orchestrator"),
|
&ProfileSelector::source_named(ProfileRegistrySource::Builtin, "orchestrator"),
|
||||||
ProfileResolveOptions::with_worker_name("orchestrator-worker"),
|
ProfileResolveOptions::with_worker_name("orchestrator-worker"),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
if resolved.manifest.feature.memory.enabled() {
|
||||||
|
resolved
|
||||||
|
.manifest
|
||||||
|
.feature
|
||||||
|
.memory
|
||||||
|
.bind_workspace_settings(manifest::WorkspaceMemorySettingsSnapshot {
|
||||||
|
workspace_id: "workspace-test".to_string(),
|
||||||
|
settings_revision: 1,
|
||||||
|
language: "English".to_string(),
|
||||||
|
})
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
let workspace_context =
|
let workspace_context =
|
||||||
WorkerWorkspaceContext::with_client(None, Arc::new(NoopWorkspaceClient));
|
WorkerWorkspaceContext::with_client(None, Arc::new(NoopWorkspaceClient));
|
||||||
let client = MockClient::new(simple_text_events());
|
let client = MockClient::new(simple_text_events());
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ fn main_config_contract_with_schema(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ts_rs::TS)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ts_rs::TS)]
|
||||||
#[ts(export)]
|
|
||||||
pub struct WorkspaceConfigState {
|
pub struct WorkspaceConfigState {
|
||||||
pub snapshot: ConfigTreeSnapshot,
|
pub snapshot: ConfigTreeSnapshot,
|
||||||
pub contract: ToolchainContract,
|
pub contract: ToolchainContract,
|
||||||
@@ -118,7 +117,6 @@ pub struct EvaluatedConfigCandidate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ts_rs::TS)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ts_rs::TS)]
|
||||||
#[ts(export)]
|
|
||||||
pub struct ConfigCommitRequest {
|
pub struct ConfigCommitRequest {
|
||||||
#[ts(type = "number")]
|
#[ts(type = "number")]
|
||||||
pub base_revision: u64,
|
pub base_revision: u64,
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ Deno.test("Worker Console composer keeps a compact bounded chip editor", async (
|
|||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
consolePage.includes("<ComposerInput") &&
|
consolePage.includes("<ComposerInput") &&
|
||||||
consolePage.includes('<div class="composer-input-shell">') &&
|
consolePage.includes('class="composer-input-shell"') &&
|
||||||
!consolePage.includes("handleComposerShellClick") &&
|
!consolePage.includes("handleComposerShellClick") &&
|
||||||
consolePage.includes("bind:this={composerInputElement}") &&
|
consolePage.includes("bind:this={composerInputElement}") &&
|
||||||
consolePage.includes("onchange={handleComposerChange}") &&
|
consolePage.includes("onchange={handleComposerChange}") &&
|
||||||
@@ -616,7 +616,7 @@ Deno.test("Worker Console paste chips preserve typed draft and target authority"
|
|||||||
consolePage.includes("if (!composerEditable) return") &&
|
consolePage.includes("if (!composerEditable) return") &&
|
||||||
composerInput.includes('chip.setAttribute("aria-label", label)') &&
|
composerInput.includes('chip.setAttribute("aria-label", label)') &&
|
||||||
composerInput.includes("preserveExactText = false") &&
|
composerInput.includes("preserveExactText = false") &&
|
||||||
consolePage.includes("buildComposerSegmentsRequest(value.segments, {") &&
|
consolePage.includes("const command = buildComposerSegmentsRequest(") &&
|
||||||
consolePage.includes("preserveExactText: value.textPastes.length > 0") &&
|
consolePage.includes("preserveExactText: value.textPastes.length > 0") &&
|
||||||
consolePage.includes("composerDrafts.set(activeComposerTargetKey") &&
|
consolePage.includes("composerDrafts.set(activeComposerTargetKey") &&
|
||||||
consolePage.includes("switchComposerTarget(target)") &&
|
consolePage.includes("switchComposerTarget(target)") &&
|
||||||
|
|||||||
Reference in New Issue
Block a user