Skip to content

Commit 9b018a1

Browse files
committed
Fix tests
1 parent a21a321 commit 9b018a1

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

plugin/src/test/java/io/jenkins/plugins/casc/permissions/Action.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package io.jenkins.plugins.casc.permissions;
22

33
public enum Action {
4-
VIEW_CONFIGURATION("View Configuration"),
5-
DOWNLOAD_CONFIGURATION("Download Configuration"),
4+
VIEW_CONFIGURATION("Export configuration"),
65
APPLY_NEW_CONFIGURATION("Apply new configuration"),
76
RELOAD_EXISTING_CONFIGURATION("Reload existing configuration"),
87
;

plugin/src/test/java/io/jenkins/plugins/casc/permissions/PermissionsTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.jenkins.plugins.casc.permissions;
22

33
import static io.jenkins.plugins.casc.permissions.Action.APPLY_NEW_CONFIGURATION;
4-
import static io.jenkins.plugins.casc.permissions.Action.DOWNLOAD_CONFIGURATION;
54
import static io.jenkins.plugins.casc.permissions.Action.RELOAD_EXISTING_CONFIGURATION;
65
import static io.jenkins.plugins.casc.permissions.Action.VIEW_CONFIGURATION;
76
import static java.lang.String.format;
@@ -62,7 +61,6 @@ void checkPermissionsForSystemReader(JenkinsRule j) throws Exception {
6261
SYSTEM_READER,
6362
ImmutableMap.<Action, Boolean>builder()
6463
.put(VIEW_CONFIGURATION, true)
65-
.put(DOWNLOAD_CONFIGURATION, true)
6664
.put(APPLY_NEW_CONFIGURATION, false)
6765
.put(RELOAD_EXISTING_CONFIGURATION, false)
6866
.build());
@@ -106,7 +104,6 @@ void checkPermissionsForAdmin(JenkinsRule j) throws Exception {
106104
ADMIN,
107105
ImmutableMap.<Action, Boolean>builder()
108106
.put(VIEW_CONFIGURATION, true)
109-
.put(DOWNLOAD_CONFIGURATION, true)
110107
.put(APPLY_NEW_CONFIGURATION, true)
111108
.put(RELOAD_EXISTING_CONFIGURATION, true)
112109
.build());

0 commit comments

Comments
 (0)