Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nmaas Platform
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
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nmaas
nmaas Platform
Commits
8a97cb35
Commit
8a97cb35
authored
1 week ago
by
kbeyro
Browse files
Options
Downloads
Patches
Plain Diff
fix test
parent
ba22336e
No related branches found
No related tags found
1 merge request
!213
Resolve "Support deployment of applications on remote clusters"
Pipeline
#94409
passed
1 week ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/net/geant/nmaas/orchestration/tasks/app/AppRequestVerificationTaskTest.java
+1
-0
1 addition, 0 deletions
...chestration/tasks/app/AppRequestVerificationTaskTest.java
with
1 addition
and
0 deletions
src/test/java/net/geant/nmaas/orchestration/tasks/app/AppRequestVerificationTaskTest.java
+
1
−
0
View file @
8a97cb35
...
@@ -42,6 +42,7 @@ public class AppRequestVerificationTaskTest {
...
@@ -42,6 +42,7 @@ public class AppRequestVerificationTaskTest {
public
void
shouldTriggerRequestVerify
()
throws
InterruptedException
{
public
void
shouldTriggerRequestVerify
()
throws
InterruptedException
{
when
(
deployments
.
findByDeploymentId
(
deploymentId
)).
thenReturn
(
Optional
.
of
(
AppDeployment
.
builder
().
applicationId
(
Identifier
.
newInstance
(
10L
)).
build
()));
when
(
deployments
.
findByDeploymentId
(
deploymentId
)).
thenReturn
(
Optional
.
of
(
AppDeployment
.
builder
().
applicationId
(
Identifier
.
newInstance
(
10L
)).
build
()));
when
(
applications
.
findById
(
any
(
Long
.
class
))).
thenReturn
(
Optional
.
of
(
new
Application
()));
when
(
applications
.
findById
(
any
(
Long
.
class
))).
thenReturn
(
Optional
.
of
(
new
Application
()));
when
(
remoteClusterManager
.
clusterExist
(
any
())).
thenReturn
(
true
);
task
.
trigger
(
new
AppVerifyRequestActionEvent
(
this
,
deploymentId
));
task
.
trigger
(
new
AppVerifyRequestActionEvent
(
this
,
deploymentId
));
verify
(
deploy
,
times
(
1
)).
verifyRequest
(
any
(
Identifier
.
class
),
any
(
AppDeployment
.
class
),
isNull
());
verify
(
deploy
,
times
(
1
)).
verifyRequest
(
any
(
Identifier
.
class
),
any
(
AppDeployment
.
class
),
isNull
());
}
}
...
...
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