Simplify GetNodeStatus to return only disk usage stats for volumes (refs #2561)
[arvados.git] / services / keep / keep_test.go
index 7dea47d0f83d4b4ed01eb4af1142b8891f84c086..508e0cd5a07c86792f32756479feb159fee0f3ba 100644 (file)
@@ -25,11 +25,11 @@ var BAD_BLOCK = []byte("The magic words are squeamish ossifrage.")
 
 // TODO(twp): Tests still to be written
 //
-//   * PutBlockFull
+//   * TestPutBlockFull
 //       - test that PutBlock returns 503 Full if the filesystem is full.
 //         (must mock FreeDiskSpace or Statfs? use a tmpfs?)
 //
-//   * PutBlockWriteErr
+//   * TestPutBlockWriteErr
 //       - test the behavior when Write returns an error.
 //           - Possible solutions: use a small tmpfs and a high
 //             MIN_FREE_KILOBYTES to trick PutBlock into attempting
@@ -37,6 +37,10 @@ var BAD_BLOCK = []byte("The magic words are squeamish ossifrage.")
 //           - use an interface to mock ioutil.TempFile with a File
 //             object that always returns an error on write
 //
+//   * TestNodeStatus
+//       - test that GetNodeStatus returns a structure with expected
+//         values: need to mock FreeDiskSpace or Statfs, or use a tmpfs
+//
 // ========================================
 // GetBlock tests.
 // ========================================