test(e2e): ensure "partition pull" writes files
Adds a test case covering the "remote partition pull" command configured
with file-based object storage.
@@ -138,6 +138,27 @@ async fn remote_partition_and_get_from_store_and_pull() {
.assert()
.failure()
.stderr(predicate::str::contains("try passing --object-store=file"));
+
+ // Ensure files are actually wrote to the filesystem
+ let dir = tempfile::tempdir().expect("could not get temporary directory");
+
+ Command::cargo_bin("influxdb_iox")
+ .unwrap()
+ .arg("-h")
+ .arg(&router_addr)
+ .arg("remote")
+ .arg("partition")
+ .arg("pull")
+ .arg("--catalog")
+ .arg("memory")
+ .arg("--object-store")
+ .arg("file")
+ .arg("--data-dir")
+ .arg(dir.path().to_str().unwrap())
+ .arg(&namespace)
+ .arg("my_awesome_table")
+ .arg("1970-01-01")
+ .assert()
.success()
.stdout(
predicate::str::contains("wrote file")
