vtest "sess.* symbols and vcl syntax"

vinyl v1 -vcl {
	backend be none;

	sub vcl_deliver {
		set resp.http.sess-xid = sess.xid;
		set resp.http.sess-timeout-idle = sess.timeout_idle;
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.http.sess-xid == 1000
	expect resp.http.sess-timeout-idle == 5.000
} -run

vinyl v1 -syntax 4.0 -vcl {
	backend be none;
	sub vcl_deliver {
		set resp.http.sess-timeout-idle = sess.timeout_idle;
	}
}

vinyl v1 -syntax 4.0 -errvcl "Symbol not found: 'sess.xid'" {
	backend be none;
	sub vcl_deliver {
		set resp.http.sess-xid = sess.xid;
	}
}
