Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
a80b7adb
Commit
a80b7adb
authored
Aug 20, 2019
by
Dmitry Lukhtionov
Browse files
Add test
parent
1b1c7279
Pipeline
#15415
failed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_matcher.py
View file @
a80b7adb
...
...
@@ -49,6 +49,12 @@ def test_eq_and(raw, config, expected):
{
"platform"
:
{
"$regex"
:
"^S"
},
"vendor"
:
"Dell"
},
False
,
),
(
{
"vendor"
:
"Eltex"
,
"image"
:
"_image.bin"
},
{
"image"
:
{
"$regex"
:
"^\S+"
},
"vendor"
:
"Eltex"
},
True
,
),
({
"vendor"
:
"Eltex"
},
{
"image"
:
{
"$regex"
:
"^\S+"
},
"vendor"
:
"Eltex"
},
False
),
],
)
def
test_regex
(
raw
,
config
,
expected
):
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
12987ed4
·
Sep 01, 2019
mentioned in commit
12987ed4
mentioned in commit 12987ed4ad2aea9835f786710fc0b2a7d554e83b
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!2556 (merged)
·
Sep 01, 2019
mentioned in merge request
!2556 (merged)
mentioned in merge request !2556
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment