Re: [PATCH v4 3/4] tests/py: Add tests for 'time', 'day' and 'hour'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 01, 2019 at 10:16:45PM +0200, Ander Juaristi wrote:
> Signed-off-by: Ander Juaristi <a@xxxxxxxxxxxx>
> ---
>  tests/py/ip/meta.t         |  9 +++++++
>  tests/py/ip/meta.t.payload | 54 ++++++++++++++++++++++++++++++++++++++
>  2 files changed, 63 insertions(+)
> 
> diff --git a/tests/py/ip/meta.t b/tests/py/ip/meta.t
> index 4db8835..b4c3ce9 100644
> --- a/tests/py/ip/meta.t
> +++ b/tests/py/ip/meta.t
> @@ -3,6 +3,15 @@
>  *ip;test-ip4;input
>  
>  icmp type echo-request;ok
> +meta time "1970-05-23 21:07:14" drop;ok
> +meta time "2019-06-21 17:00:00" drop;ok
> +meta time "2019-07-01 00:00:00" drop;ok
> +meta time "2019-07-01 00:01:00" drop;ok
> +meta time "2019-07-01 00:00:01" drop;ok
> +meta day "Saturday" drop;ok;meta day "Saturday" drop

meta day "Saturday" drop;ok

should be fine, right?

> +meta hour "17:00" drop;ok;meta hour "17:00" drop

same here:

meta hour "17:00" drop;ok



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux