class UpdateTest

Public Instance Methods

test_update_config() click to toggle source

Test updating the config manifest on one server

# File test/test_update.rb, line 16
def test_update_config
  req = MockRequest.new(:update, :one, :local)
  cfg = Vermillion::Cfg.new.populate_config

  status = Update.new(cfg, req)

  assert status.one(req.param).zero?
end
test_update_one() click to toggle source

Test updating one server

# File test/test_update.rb, line 6
def test_update_one
  req = MockRequest.new(:update, :one, "local/vermillion-server")
  cfg = Vermillion::Cfg.new.populate_config

  status = Update.new(cfg, req)

  assert status.one(req.param).zero?
end