Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Commits
0ed3bec6
Commit
0ed3bec6
authored
3 years ago
by
Benedikt Wetzel
Browse files
Options
Downloads
Patches
Plain Diff
reformat code
parent
23478893
No related branches found
No related tags found
1 merge request
!201
Introduce action commands
Pipeline
#5821
passed
3 years ago
Stage: build
Stage: test
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkStateCheckerTest.kt
+9
-10
9 additions, 10 deletions
...heodolite/execution/operator/BenchmarkStateCheckerTest.kt
with
9 additions
and
10 deletions
theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkStateCheckerTest.kt
+
9
−
10
View file @
0ed3bec6
...
@@ -115,16 +115,6 @@ internal class BenchmarkStateCheckerTest {
...
@@ -115,16 +115,6 @@ internal class BenchmarkStateCheckerTest {
return
actionSelector
return
actionSelector
}
}
@Test
fun
checkIfResourceIsDeployed
()
{
// pod with matching labels are deployed
assertTrue
(
checker
.
checkIfResourceIsDeployed
(
getActionSelector
(
"app"
to
"pod1"
)))
// no pod with matching labels are deployed
assertFalse
(
checker
.
checkIfResourceIsDeployed
(
getActionSelector
(
"app"
to
"pod0"
)))
}
private
fun
createAndDeployConfigmapResourceSet
():
ResourceSets
{
private
fun
createAndDeployConfigmapResourceSet
():
ResourceSets
{
// create test deployment
// create test deployment
val
resourceBuilder
=
DeploymentBuilder
()
val
resourceBuilder
=
DeploymentBuilder
()
...
@@ -153,6 +143,15 @@ internal class BenchmarkStateCheckerTest {
...
@@ -153,6 +143,15 @@ internal class BenchmarkStateCheckerTest {
return
set
return
set
}
}
@Test
fun
checkIfResourceIsDeployed
()
{
// pod with matching labels are deployed
assertTrue
(
checker
.
checkIfResourceIsDeployed
(
getActionSelector
(
"app"
to
"pod1"
)))
// no pod with matching labels are deployed
assertFalse
(
checker
.
checkIfResourceIsDeployed
(
getActionSelector
(
"app"
to
"pod0"
)))
}
@Test
@Test
fun
checkIfResourceIsInfrastructure
()
{
fun
checkIfResourceIsInfrastructure
()
{
val
resourceSets
=
listOf
(
createAndDeployConfigmapResourceSet
())
val
resourceSets
=
listOf
(
createAndDeployConfigmapResourceSet
())
...
...
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