Skip to content

Commit 8a79318

Browse files
committed
Added test for project variable details (#387).
1 parent 1084773 commit 8a79318

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,12 @@ public void testProjectEvents() throws Exception {
333333
assertTrue(compareJson(events, "project-events.json"));
334334
}
335335

336+
@Test
337+
public void testProjectVariableDetails() throws Exception {
338+
Variable variable = unmarshalResource(Variable.class, "project-variable-details.json");
339+
assertTrue(compareJson(variable, "project-variable-details.json"));
340+
}
341+
336342
@Test
337343
public void testProtectedBranch() throws Exception {
338344
ProtectedBranch protectedBranch = unmarshalResource(ProtectedBranch.class, "protected-branch.json");
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"key": "TEST_VARIABLE_1",
3+
"variable_type": "env_var",
4+
"value": "TEST_1",
5+
"protected": false,
6+
"masked": true
7+
}

0 commit comments

Comments
 (0)