Skip to content

Commit 123a0a8

Browse files
committed
Default call context account to ADMIN type in tests
1 parent 4a432cc commit 123a0a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/test/java/com/cloud/resourcelimit/ResourceLimitManagerImplTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public void setUp() throws Exception {
147147
overrideDefaultConfigValue(ResourceLimitService.ResourceLimitStorageTags, "_defaultValue", StringUtils.join(storageTags, ","));
148148

149149
Account account = mock(Account.class);
150+
when(account.getType()).thenReturn(Account.Type.ADMIN);
150151
User user = mock(User.class);
151152
CallContext.register(user, account);
152153
}

0 commit comments

Comments
 (0)