varnishtest "Test refcounting backends from director"

# XXX: This test is probably not relevant with VMOD.directors

varnish v1  -vcl {
	import directors;

	backend node1 { .host = "10.0.0.1"; .port = "80"; }
	backend node2 { .host = "10.0.0.2"; .port = "80"; }
	backend node3 { .host = "10.0.0.3"; .port = "80"; }

	sub vcl_init {
		new cluster = directors.random();
		cluster.add_backend(node1, 1);
		cluster.add_backend(node2, 1);
		cluster.add_backend(node3, 1);
	}

	sub vcl_backend_fetch {
		set bereq.backend = cluster.backend();
	}
} -start

varnish v1 -wait
