Skip to content

Commit bf8eec8

Browse files
committed
fix tests, skip deprecated tests
1 parent 0833623 commit bf8eec8

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

website/cue/reference/remap/functions/parse_nginx_log.cue

+7-8
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,17 @@ remap: functions: parse_nginx_log: {
8080
)
8181
"""#
8282
return: {
83+
timestamp: "2021-04-01T13:02:31Z"
84+
severity: "error"
85+
pid: 31
86+
tid: 31
8387
cid: 1
84-
client: "172.17.0.1"
85-
host: "localhost:8081"
8688
message: "open() \"/usr/share/nginx/html/not-found\" failed (2: No such file or directory)"
87-
pid: 31
88-
request: "POST /not-found HTTP/1.1"
89+
client: "172.17.0.1"
8990
server: "localhost"
90-
severity: "error"
91-
tid: 31
92-
timestamp: '2021-04-01T17:02:31Z'
91+
request: "POST /not-found HTTP/1.1"
92+
host: "localhost:8081"
9393
}
94-
9594
},
9695
]
9796
}

website/cue/reference/remap/functions/to_timestamp.cue

+5
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,39 @@ remap: functions: to_timestamp: {
5252
to_timestamp!("2020-10-21T16:00:00Z")
5353
"""
5454
return: "2020-10-21T16:00:00Z"
55+
skip_test: true
5556
},
5657
{
5758
title: "Coerce a unix timestamp (integer) to a timestamp"
5859
source: """
5960
to_timestamp!(1675968923)
6061
"""
6162
return: "2023-02-09T18:55:23Z"
63+
skip_test: true
6264
},
6365
{
6466
title: "Coerce a unix timestamp (float) to a timestamp"
6567
source: """
6668
to_timestamp!(1675968923.567)
6769
"""
6870
return: "2023-02-09T18:55:23.566999912Z"
71+
skip_test: true
6972
},
7073
{
7174
title: "Coerce a unix timestamp, in milliseconds, to a timestamp"
7275
source: """
7376
to_timestamp!(1676478566639, unit: "milliseconds")
7477
"""
7578
return: "2023-02-15T16:29:26.639Z"
79+
skip_test: true
7680
},
7781
{
7882
title: "Coerce a unix timestamp, in nanoseconds, to a timestamp"
7983
source: """
8084
to_timestamp!(1675968923012312311, unit: "nanoseconds")
8185
"""
8286
return: "2023-02-09T18:55:23.012312311Z"
87+
skip_test: true
8388
},
8489
]
8590
}

0 commit comments

Comments
 (0)