Skip to content

Commit f5efd4e

Browse files
author
klaus.freitas.scclouds
committed
fix noredist
1 parent b950353 commit f5efd4e

File tree

1 file changed

+32
-0
lines changed
  • plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management

1 file changed

+32
-0
lines changed

plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management/MockAccountManager.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@
2525
import javax.naming.ConfigurationException;
2626

2727
import com.cloud.api.auth.SetupUserTwoFactorAuthenticationCmd;
28+
import org.apache.cloudstack.acl.apikeypair.ApiKeyPairPermission;
29+
import org.apache.cloudstack.api.BaseCmd;
2830
import org.apache.cloudstack.api.command.admin.account.CreateAccountCmd;
31+
import org.apache.cloudstack.api.command.admin.user.DeleteUserKeysCmd;
2932
import org.apache.cloudstack.api.command.admin.user.GetUserKeysCmd;
33+
import org.apache.cloudstack.api.command.admin.user.ListUserKeyRulesCmd;
3034
import org.apache.cloudstack.api.command.admin.user.MoveUserCmd;
3135
import org.apache.cloudstack.api.response.UserTwoFactorAuthenticationSetupResponse;
3236
import org.apache.cloudstack.auth.UserTwoFactorAuthenticator;
@@ -542,4 +546,32 @@ public void validateUserPasswordAndUpdateIfNeeded(String newPassword, UserVO use
542546
public void checkApiAccess(Account account, String command) throws PermissionDeniedException {
543547

544548
}
549+
550+
@Override
551+
public String getAccessingApiKey (BaseCmd cmd) {
552+
return null;
553+
}
554+
555+
@Override
556+
public ApiKeyPair getKeyPairByApiKey(String apiKey) {
557+
return null;
558+
}
559+
560+
@Override
561+
public void deleteApiKey(DeleteUserKeysCmd cmd) {
562+
}
563+
564+
@Override
565+
public void deleteApiKey(ApiKeyPair apiKeyPair) {
566+
567+
}
568+
569+
@Override
570+
public List<ApiKeyPairPermission> listKeyRules(ListUserKeyRulesCmd cmd) {
571+
return null;
572+
}
573+
@Override
574+
public void validateCallingUserHasAccessToDesiredUser(Long userId) {
575+
576+
}
545577
}

0 commit comments

Comments
 (0)