     assert broken_plugins["serverboards.test.auth"]
     plugin = Serverboards.Plugin.Registry.find("serverboards.test.auth")
     # Should be false, but fails because, i think, the plugin registry runs in another DB transaction
+    #assert "disabled" in plugin.status
     #assert plugin.is_active == false
 
     File.rm("/tmp/serverboards-test-fail-postinst")

  end

  @tag skip: "There is some race condition that makes this difficult to test. Skipping to do not block progress. FIXME"
  test "Plugin is_active" do
    {:ok, client} = Client.start_link as: "dmoreno@serverboards.io"

    {:ok, list} = Client.call(client, "plugin.list", [])
    assert list["serverboards.test.auth"]["is_active"] != nil

    Client.call(client, "settings.update", ["plugins", "serverboards.test.auth", false])
    context = Serverboards.Config.get(:plugins)
    Logger.debug("At exs: #{inspect context}")

    {:ok, list} = Client.call(client, "plugin.list", [])
    assert list["serverboards.test.auth"]["is_active"] == false

    Client.call(client, "settings.update", ["plugins", "serverboards.test.auth", true])
    {:ok, list} = Client.call(client, "plugin.list", [])
    assert list["serverboards.test.auth"]["is_active"] == true
  end

  test "Bad protocol" do

    Serverboards.Plugin.Registry.reload_plugins
    assert broken_plugins["serverboards.test.auth"] == nil
    plugin = Serverboards.Plugin.Registry.find("serverboards.test.auth")
    assert "active" in plugin.status
  end
end
