Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
a654ff4e
Commit
a654ff4e
authored
4 years ago
by
Nathan Hertz
Browse files
Options
Downloads
Patches
Plain Diff
Added unit test for vulture execution; updated gitignore with vulture
log files
parent
474ce5c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
apps/cli/executables/vulture/test/test_vulture.py
+19
-0
19 additions, 0 deletions
apps/cli/executables/vulture/test/test_vulture.py
with
21 additions
and
1 deletion
.gitignore
+
2
−
1
View file @
a654ff4e
...
...
@@ -58,4 +58,5 @@ projects_checklist.txt
deps.png
build/pkgs
**/eggs
**/parts
\ No newline at end of file
**/parts
**/vulture_*.log
\ No newline at end of file
This diff is collapsed.
Click to expand it.
apps/cli/executables/vulture/test/test_vulture.py
+
19
−
0
View file @
a654ff4e
from
vulture.condorlite
import
Job
,
MockLogger
import
pytest
def
test_execution
(
caplog
):
"""
Test execution of the null executable
"""
log_entries
=
[
"
000 (4242.000.000)
"
,
"
Job submitted from host: <0.0.0.0:7777>
"
,
"
Job executing on host: <0.0.0.0:7777>
"
,
"
Job terminated.
"
,
"
Job node: null
"
]
test_job
=
Job
(
"
test/null.condor
"
)
test_job
.
execute
()
output
=
"
\n
"
.
join
([
record
.
message
for
record
in
caplog
.
records
])
assert
[
entry
in
output
for
entry
in
log_entries
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment