func (s *MongoSuite) TestDefaultMongodPath(c *gc.C) { s.PatchValue(&mongo.JujuMongodPath, "/not/going/to/exist/mongod") s.PatchEnvPathPrepend(filepath.Dir(s.mongodPath)) obtained, err := mongo.Path() c.Check(err, gc.IsNil) c.Check(obtained, gc.Equals, s.mongodPath) }
func (s *MongoSuite) TestJujuMongodPath(c *gc.C) { obtained, err := mongo.Path() c.Check(err, gc.IsNil) c.Check(obtained, gc.Equals, s.mongodPath) }