use of com.cloud.api.command.user.network.CreateNetworkACLCmd in project cosmic by MissionCriticalCloud.
the class NetworkACLServiceTest method setUp.
@Override
@Before
public void setUp() {
ComponentContext.initComponentsLifeCycle();
final Account account = new AccountVO("testaccount", 1, "testdomain", (short) 0, UUID.randomUUID().toString());
final UserVO user = new UserVO(1, "testuser", "password", "firstname", "lastName", "email", "timezone", UUID.randomUUID().toString(), User.Source.UNKNOWN);
CallContext.register(user, account);
createACLItemCmd = new CreateNetworkACLCmd() {
@Override
public Integer getNumber() {
return 1;
}
@Override
public String getProtocol() {
return "TCP";
}
@Override
public Long getACLId() {
return 3L;
}
};
acl = new NetworkACLVO() {
@Override
public Long getVpcId() {
return 1L;
}
@Override
public long getId() {
return 1L;
}
};
aclItem = new NetworkACLItemVO() {
@Override
public long getAclId() {
return 4L;
}
};
}
Aggregations