Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 33ee47f3
authored
5 years ago
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup some more tests
1 parent
a0ce51e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
test/test.js
test/test.js
View file @
33ee47f
...
@@ -40,10 +40,17 @@ describe('Application life cycle test', function () {
...
@@ -40,10 +40,17 @@ describe('Application life cycle test', function () {
browser
.
quit
();
browser
.
quit
();
});
});
function
getAppInfo
()
{
function
getAppInfo
(
location
,
done
)
{
if
(
!
done
)
{
done
=
location
;
location
=
LOCATION
;
}
var
inspect
=
JSON
.
parse
(
execSync
(
'cloudron inspect'
));
var
inspect
=
JSON
.
parse
(
execSync
(
'cloudron inspect'
));
app
=
inspect
.
apps
.
filter
(
function
(
a
)
{
return
a
.
location
===
LOCATION
;
})[
0
];
app
=
inspect
.
apps
.
filter
(
function
(
a
)
{
return
a
.
location
===
location
;
})[
0
];
expect
(
app
).
to
.
be
.
an
(
'object'
);
expect
(
app
).
to
.
be
.
an
(
'object'
);
done
();
}
}
function
waitForElement
(
elem
)
{
function
waitForElement
(
elem
)
{
...
@@ -135,7 +142,6 @@ describe('Application life cycle test', function () {
...
@@ -135,7 +142,6 @@ describe('Application life cycle test', function () {
xit
(
'build app'
,
function
()
{
execSync
(
'cloudron build'
,
EXEC_ARGS
);
});
xit
(
'build app'
,
function
()
{
execSync
(
'cloudron build'
,
EXEC_ARGS
);
});
it
(
'install app'
,
function
()
{
execSync
(
`cloudron install --location
${
LOCATION
}
`
,
EXEC_ARGS
);
});
it
(
'install app'
,
function
()
{
execSync
(
`cloudron install --location
${
LOCATION
}
`
,
EXEC_ARGS
);
});
it
(
'can get app information'
,
getAppInfo
);
it
(
'can get app information'
,
getAppInfo
);
it
(
'can login'
,
login
);
it
(
'can login'
,
login
);
...
@@ -168,10 +174,7 @@ describe('Application life cycle test', function () {
...
@@ -168,10 +174,7 @@ describe('Application life cycle test', function () {
// ensure we don't hit NXDOMAIN in the mean time
// ensure we don't hit NXDOMAIN in the mean time
browser
.
get
(
'about:blank'
).
then
(
function
()
{
browser
.
get
(
'about:blank'
).
then
(
function
()
{
execSync
(
`cloudron configure --location
${
LOCATION
}
2 --app
${
app
.
id
}
`
,
EXEC_ARGS
);
execSync
(
`cloudron configure --location
${
LOCATION
}
2 --app
${
app
.
id
}
`
,
EXEC_ARGS
);
getAppInfo
(
`
${
LOCATION
}
2`
,
done
);
getAppInfo
();
done
();
});
});
});
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment