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
8a793186
Commit
8a793186
authored
Jun 16, 2019
by
Greg Messner
Browse files
Added test for project variable details (#387).
parent
1084773a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
View file @
8a793186
...
...
@@ -333,6 +333,12 @@ public class TestGitLabApiBeans {
assertTrue
(
compareJson
(
events
,
"project-events.json"
));
}
@Test
public
void
testProjectVariableDetails
()
throws
Exception
{
Variable
variable
=
unmarshalResource
(
Variable
.
class
,
"project-variable-details.json"
);
assertTrue
(
compareJson
(
variable
,
"project-variable-details.json"
));
}
@Test
public
void
testProtectedBranch
()
throws
Exception
{
ProtectedBranch
protectedBranch
=
unmarshalResource
(
ProtectedBranch
.
class
,
"protected-branch.json"
);
...
...
src/test/resources/org/gitlab4j/api/project-variable-details.json
0 → 100644
View file @
8a793186
{
"key"
:
"TEST_VARIABLE_1"
,
"variable_type"
:
"env_var"
,
"value"
:
"TEST_1"
,
"protected"
:
false
,
"masked"
:
true
}
\ No newline at end of file
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