Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
8a336af5
Commit
8a336af5
authored
Sep 14, 2016
by
Francesc Guasch
Browse files
test searching by name
parent
c1a1c981
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/kvm/20_domain_kvm.t
View file @
8a336af5
...
...
@@ -97,7 +97,7 @@ sub test_new_domain {
my
$row
=
search_domain_db
(
$domain
->
name
);
ok
(
$row
->
{
name
}
&&
$row
->
{
name
}
eq
$domain
->
name
,"
I can't find the domain at the db
");
my
$domain2
=
$RAVADA
->
search_domain
_by_id
(
$domain
->
id
);
my
$domain2
=
$RAVADA
->
search_domain
(
$domain
->
name
);
ok
(
$domain2
->
id
eq
$domain
->
id
,"
Expecting id =
"
.
$domain
->
id
.
"
, got
"
.
$domain2
->
id
);
ok
(
$domain2
->
name
eq
$domain
->
name
,"
Expecting name =
"
.
$domain
->
name
.
"
, got
"
.
$domain2
->
name
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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