Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
c090ff2d
Unverified
Commit
c090ff2d
authored
Jul 05, 2021
by
Gautier de Saint Martin Lacaze
Browse files
Fix various tests
parent
0f413e28
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestDeploymentsApi.java
View file @
c090ff2d
...
...
@@ -187,6 +187,13 @@ public class TestDeploymentsApi extends AbstractIntegrationTest {
DeploymentStatus
.
SUCCESS
);
}
gitLabApi
.
getDeploymentsApi
().
addDeployment
(
testProject
,
environment
+
"-other"
,
commits
.
get
(
0
).
getId
(),
testProject
.
getDefaultBranch
(),
false
,
DeploymentStatus
.
SUCCESS
);
Pager
<
Deployment
>
pager
=
gitLabApi
.
getDeploymentsApi
().
getProjectDeployments
(
testProject
,
2
);
while
(
pager
.
hasNext
())
{
pager
.
next
();
...
...
src/test/java/org/gitlab4j/api/TestSystemHooksApi.java
View file @
c090ff2d
...
...
@@ -64,7 +64,7 @@ public class TestSystemHooksApi extends AbstractIntegrationTest {
assertTrue
(
hook
.
getPushEvents
());
assertFalse
(
hook
.
getTagPushEvents
());
assertFalse
(
hook
.
getMergeRequestsEvents
());
assert
Fals
e
(
hook
.
getRepositoryUpdateEvents
());
assert
Tru
e
(
hook
.
getRepositoryUpdateEvents
());
assertTrue
(
hook
.
getEnableSslVerification
());
gitLabApi
.
getSystemHooksApi
().
deleteSystemHook
(
hook
);
...
...
@@ -72,7 +72,7 @@ public class TestSystemHooksApi extends AbstractIntegrationTest {
hook
.
withPushEvents
(
false
)
.
withTagPushEvents
(
true
)
.
withMergeRequestsEvents
(
true
)
.
withRepositoryUpdateEvents
(
tru
e
)
.
withRepositoryUpdateEvents
(
fals
e
)
.
withEnableSslVerification
(
false
);
SystemHook
updatedHook
=
gitLabApi
.
getSystemHooksApi
().
addSystemHook
(
TEST_HOOK_URL
,
TEST_SECRET_TOKEN
,
hook
);
...
...
@@ -81,10 +81,10 @@ public class TestSystemHooksApi extends AbstractIntegrationTest {
assertFalse
(
hook
.
getPushEvents
());
assertTrue
(
hook
.
getTagPushEvents
());
assertTrue
(
hook
.
getMergeRequestsEvents
());
assert
Tru
e
(
hook
.
getRepositoryUpdateEvents
());
assert
Fals
e
(
hook
.
getRepositoryUpdateEvents
());
assertFalse
(
hook
.
getEnableSslVerification
());
gitLabApi
.
getSystemHooksApi
().
deleteSystemHook
(
h
ook
);
gitLabApi
.
getSystemHooksApi
().
deleteSystemHook
(
updatedH
ook
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment