From 1fb7ae3440feeb6cb1843a4a410110d1e1ebd9fc Mon Sep 17 00:00:00 2001 From: Adrian Villin Date: Mon, 19 Aug 2024 10:51:59 +0200 Subject: vppinfra: fix format_clib_timebase_time - make the format RFC9110 compliant Type: fix Change-Id: I4272562ca1082285a596ef866ab6c4f405c64bc5 Signed-off-by: Adrian Villin --- extras/hs-test/http_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extras/hs-test/http_test.go') diff --git a/extras/hs-test/http_test.go b/extras/hs-test/http_test.go index f8b0fb79615..5e7494ace87 100644 --- a/extras/hs-test/http_test.go +++ b/extras/hs-test/http_test.go @@ -829,6 +829,7 @@ func HttpStaticBuildInUrlPostIfStatsTest(s *NoTopoSuite) { } func HttpStaticMacTimeTest(s *NoTopoSuite) { + currentDate := time.Now().In(time.FixedZone("GMT", 0)).Format(http.TimeFormat) vpp := s.GetContainerByName("vpp").VppInstance serverAddress := s.GetInterfaceByName(TapInterfaceName).Peer.Ip4AddressString() s.Log(vpp.Vppctl("http static server uri tcp://" + serverAddress + "/80 url-handlers debug")) @@ -848,6 +849,7 @@ func HttpStaticMacTimeTest(s *NoTopoSuite) { s.AssertContains(string(data), s.GetInterfaceByName(TapInterfaceName).Ip4AddressString()) s.AssertContains(string(data), s.GetInterfaceByName(TapInterfaceName).HwAddress.String()) s.AssertContains(resp.Header.Get("Content-Type"), "json") + s.AssertContains(resp.Header.Get("Date"), currentDate) } func HttpInvalidRequestLineTest(s *NoTopoSuite) { -- cgit 1.2.3-korg