diff options
author | 2018-02-12 14:00:55 +0530 | |
---|---|---|
committer | 2018-02-12 15:32:27 +0530 | |
commit | 9b16e7e72a97bd90a37c7871363a24e9b205b2a0 (patch) | |
tree | 8d0efcd91fca0a82ff095d6bbf4ddeec34b0e398 /nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java | |
parent | fe355ec81ccaf825479a29e46583bb2d15bdd46a (diff) |
Nova Model UTs
Change-Id: I3e72997983bdec151ded4b923e03d0f64b9891e8
Issue-ID: SO-369
Signed-off-by: Abhishek Shekhar <abhishek.shekhar1@amdocs.com>
Diffstat (limited to 'nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java')
-rw-r--r-- | nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java | 218 |
1 files changed, 218 insertions, 0 deletions
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java new file mode 100644 index 0000000..f6aba6e --- /dev/null +++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java @@ -0,0 +1,218 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package com.woorea.openstack.nova.model; + +import org.junit.Test; + +import java.util.Calendar; +import java.util.List; + +import static org.junit.Assert.*; + +public class LimitsTest { + + private Limits limits = new Limits(); + private Limits.AbsoluteLimit aLimit = new Limits.AbsoluteLimit(); + private Limits.RateLimit rLimit = new Limits.RateLimit(); + private Limits.RateLimit.LimitEntry entry = new Limits.RateLimit.LimitEntry(); + + @Test + public void getNextAvailable() { + entry.getNextAvailable(); + } + + @Test + public void getUnit() { + entry.getUnit(); + } + + @Test + public void getVerb() { + entry.getVerb(); + } + + @Test + public void getRemaining() { + entry.getRemaining(); + } + + @Test + public void getAvailable() { + entry.getAvailable(); + } + + @Test + public void getValue() { + entry.getValue(); + } + + @Test + public void getRate() { + limits.getRate(); + } + + @Test + public void getAbsolute() { + limits.getAbsolute(); + } + + @Test + public void getRegex() { + rLimit.getRegex(); + } + + @Test + public void getUri() { + rLimit.getUri(); + } + + @Test + public void getLimit() { + rLimit.getLimit(); + } + + @Test + public void getMaxServerMeta() { + aLimit.getMaxServerMeta(); + } + + @Test + public void getMaxPersonality() { + aLimit.getMaxPersonality(); + } + + @Test + public void getMaxImageMeta() { + aLimit.getMaxImageMeta(); + } + + @Test + public void getMaxPersonalitySize() { + aLimit.getMaxPersonalitySize(); + } + + @Test + public void getMaxTotalCores() { + aLimit.getMaxTotalCores(); + } + + @Test + public void getMaxTotalInstances() { + aLimit.getMaxTotalInstances(); + } + + @Test + public void getMaxTotalRAMSize() { + aLimit.getMaxTotalRAMSize(); + } + + @Test + public void getTotalVolumesUsed() { + aLimit.getTotalVolumesUsed(); + } + + @Test + public void getMaxSecurityGroupRules() { + aLimit.getMaxSecurityGroupRules(); + } + + @Test + public void getMaxTotalKeypairs() { + aLimit.getMaxTotalKeypairs(); + } + + @Test + public void getTotalCoresUsed() { + aLimit.getTotalCoresUsed(); + } + + @Test + public void getMaxTotalVolumes() { + aLimit.getMaxTotalVolumes(); + } + + @Test + public void getTotalRAMUsed() { + aLimit.getTotalRAMUsed(); + } + + @Test + public void getTotalInstancesUsed() { + aLimit.getTotalInstancesUsed(); + } + + @Test + public void getMaxSecurityGroups() { + aLimit.getMaxSecurityGroups(); + } + + @Test + public void getTotalVolumeGigabytesUsed() { + aLimit.getTotalVolumeGigabytesUsed(); + } + + @Test + public void getTotalSecurityGroupsUsed() { + aLimit.getTotalSecurityGroupsUsed(); + } + + @Test + public void getMaxTotalFloatingIps() { + aLimit.getMaxTotalFloatingIps(); + } + + @Test + public void getTotalKeyPairsUsed() { + aLimit.getTotalKeyPairsUsed(); + } + + @Test + public void getMaxTotalVolumeGigabytes() { + aLimit.getMaxTotalVolumeGigabytes(); + } + + @Test + public void getServerMetaUsed() { + aLimit.getServerMetaUsed(); + } + + @Test + public void getPersonalityUsed() { + aLimit.getPersonalityUsed(); + } + + @Test + public void getImageMetaUsed() { + aLimit.getImageMetaUsed(); + } + + @Test + public void getPersonalitySizeUsed() { + aLimit.getPersonalitySizeUsed(); + } + + @Test + public void getSecurityGroupRulesUsed() { + aLimit.getSecurityGroupRulesUsed(); + } + + @Test + public void getTotalFloatingIpsUsed() { + aLimit.getTotalFloatingIpsUsed(); + } + +}
\ No newline at end of file |