fix: finish worker wording cleanup
This commit is contained in:
@@ -1350,8 +1350,8 @@ impl FixtureWorkspace {
|
||||
};
|
||||
fixture.write_fixture_metadata("created", None)?;
|
||||
|
||||
write_blocking_pod_metadata(&fixture.xdg_data_home, "workspace")?;
|
||||
write_blocking_pod_metadata(&fixture.xdg_data_home, "workspace-orchestrator")?;
|
||||
write_blocking_worker_metadata(&fixture.xdg_data_home, "workspace")?;
|
||||
write_blocking_worker_metadata(&fixture.xdg_data_home, "workspace-orchestrator")?;
|
||||
run_yoi(
|
||||
binary,
|
||||
&fixture.workspace,
|
||||
@@ -1621,8 +1621,8 @@ impl FixtureWorkspace {
|
||||
"host_runtime_inherited": false,
|
||||
"host_xdg_runtime_dir_present": std::env::var_os("XDG_RUNTIME_DIR").is_some(),
|
||||
"tested_yoi_runtime_source": "fixture XDG_RUNTIME_DIR",
|
||||
"tested_yoi_pod_registry": self.xdg_runtime_dir.join("yoi").join("pods.json"),
|
||||
"fixture_pod_metadata_root": self.xdg_data_home.join("yoi").join("pods")
|
||||
"tested_yoi_worker_allocation": self.xdg_runtime_dir.join("yoi").join("workers.json"),
|
||||
"fixture_worker_metadata_root": self.xdg_data_home.join("yoi").join("workers")
|
||||
},
|
||||
"tested_yoi_env_policy": tested_yoi_env_policy_overview(),
|
||||
"cleanup": cleanup,
|
||||
@@ -1997,8 +1997,8 @@ fn copy_dir_recursive(source: &Path, destination: &Path) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn write_blocking_pod_metadata(data_home: &Path, worker_name: &str) -> Result<()> {
|
||||
let dir = data_home.join("yoi").join("pods").join(worker_name);
|
||||
fn write_blocking_worker_metadata(data_home: &Path, worker_name: &str) -> Result<()> {
|
||||
let dir = data_home.join("yoi").join("workers").join(worker_name);
|
||||
fs::create_dir_all(&dir)?;
|
||||
fs::write(dir.join("metadata.json"), b"not valid metadata for e2e\n")?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user