Skip to content

Commit

Permalink
#461: add test note to remind myself to write a test for directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte committed Jul 6, 2018
1 parent 3e42d7d commit 15b928e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func TestS3Remote(t *testing.T) {
}
})

t.Run("PushPullDirectories", func(t *testing.T) {
// TODO: need to check whether keys containing a dir in s3 break stuff, and vice versa
})

t.Run("Pull", func(t *testing.T) {
fsname := citools.UniqName()
citools.RunOnNode(t, node1, "dm clone test-real-s3 test.dotmesh --local-name="+fsname)
Expand Down Expand Up @@ -124,6 +128,13 @@ func TestS3Remote(t *testing.T) {
t.Error("Did not push new file to S3")
}
// citools.RunOnNode(t, node1, citools.DockerRun(fsname)+" rm /foo/hello-world.txt")
// citools.TryUntilSucceeds(func() error {
// output := citools.OutputFromRunOnNode(t, node1, "dm dot show "+fsname+" -H | grep dirty")
// if strings.Contains(output, "\t0") {
// return fmt.Errorf("not dirty yet")
// }
// return nil
// }, "waiting for dirty data...")
// citools.RunOnNode(t, node1, "dm commit -m 'cut this file from s3'")
// citools.RunOnNode(t, node1, "dm push test-real-s3 "+fsname)
// resp = citools.OutputFromRunOnNode(t, node1, s3cmd+" ls s3://test.dotmesh")
Expand Down

0 comments on commit 15b928e

Please sign in to comment.