use of org.apache.cloudstack.api.command.user.network.CreateNetworkACLCmd in project cloudstack by apache.
the class NetworkACLServiceTest method setUp.
@Override
@Before
public void setUp() {
ComponentContext.initComponentsLifeCycle();
Account account = new AccountVO("testaccount", 1, "testdomain", (short) 0, UUID.randomUUID().toString());
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 Long getACLId() {
return 3L;
}
@Override
public Integer getNumber() {
return 1;
}
@Override
public String getProtocol() {
return "TCP";
}
};
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