Hugo Trippaers
859412c1ce
Fix headers
...
again....
2012-12-14 11:58:25 +01:00
Hugo Trippaers
2235776aed
Unittests for NiciraNvpGuestNetworkGuru
...
These unittests do not depend on the componentlocator but instead are
completely dependent on mock objects. This ensures that they can be run
standalone without any requirements on the environment.
Includes some fixes to NiciraNvpGuestNetworkGuru and GuestNetworkGuru
2012-12-14 10:41:36 +01:00
Hugo Trippaers
9c8eba1da3
Fix the tests
...
Note to self, surefire actually runs with assertions enabled where junit
inside eclipse doesn't. Sure surefire will mark tests as failed when an
assertion is triggered. Take care when mocking stuff.
2012-12-07 17:34:14 +01:00
Hugo Trippaers
2b74b6e827
Start removing the old ant build files
...
Removed all build.xml files from the plugins
2012-12-07 15:58:56 +01:00
Hugo Trippaers
fa207d2b4d
Add unittests for NiciraNvpApi
...
Added some unittests for the NiciraNvpApi. These tests mainly validate
the logic of the execute methods, which are the main thing in this
class. Other methods are basically wrappers around these functions.
Changed NiciraNvpApi to have a factory method for obtaining the
HttpMethod. This makes it easier to mock it.
Changed the executeMethods in NiciraNvpApi to protected so the unittests
have access.
Fixed a bug in NiciraNvpApi where releaseconnection was not called in
some cases.
2012-12-07 15:55:26 +01:00
Hugo Trippaers
1fbf2a2864
Fix bug in Port Forwarding
...
Nicira NVP can't handle a range of port when implementing port
forwarding, so return an error message when a rule is being implemented
that uses port ranges.
Include unittest to verify this behaviour
2012-12-06 16:50:56 +01:00
Hugo Trippaers
cfd2a0bdf8
Fixes for some bug discovered while writing unittests
...
Rewritten handling for static nat and port forwarding, should make some
more sense now and the complex functions are split in smaller units.
Fix a small bug in Match
Add equals function to NatRule that ignores the uuid field.
2012-12-06 14:45:58 +01:00
Hugo Trippaers
22ef646b23
Add more unittests for NiciraNvpResource
2012-12-06 14:45:58 +01:00
Hugo Trippaers
48308ec070
Redoing NatRule usage and some fixes based on issues found while writing
...
unittests
2012-12-06 14:45:37 +01:00
Hugo Trippaers
700050a713
More unittests for NiciraNvpResource
...
Add some basic unittest for NatRule
2012-12-06 14:45:09 +01:00
Hugo Trippaers
b0955e43ff
Put the mockito version in the central version list
2012-12-06 14:42:59 +01:00
Hugo Trippaers
0902f60c61
Quickly add the license header before Chip finds out.
2012-12-02 11:19:32 -08:00
Hugo Trippaers
751e74708e
Setup unittests for the nicira nvp plugin
...
Changed the creation of the NiciraNvpApi to a factory method that can be
overridden by a mock object.
Setup two tests to test the configure function of the NiciraNvpResource
to test this factory method.
2012-12-02 10:50:14 -08:00
Hiroaki Kawai
a28f4cac3c
HttpClient needs releaseConnection method call
...
reviewboard: https://reviews.apache.org/r/8186/
Signed-off-by: Hugo Trippaers <trippie@gmail.com>
2012-11-29 20:23:30 +01:00
Hiroaki Kawai
c8832cd4b6
Commit https://reviews.apache.org/r/8075/
...
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2012-11-19 12:02:26 +01:00
Alena Prokharchyk
214bbf3ebd
CLOUDSTACK-279: fixed deleteProject when executed by the regular user. Always pass System account as a caller when do account cleanup
...
Conflicts:
api/src/com/cloud/api/commands/DeleteRemoteAccessVpnCmd.java
server/src/com/cloud/network/element/CiscoNexusVSMElement.java
server/src/com/cloud/network/element/ElasticLoadBalancerElement.java
server/src/com/cloud/network/element/F5ExternalLoadBalancerElement.java
server/src/com/cloud/network/element/JuniperSRXExternalFirewallElement.java
server/src/com/cloud/network/element/NetscalerElement.java
server/src/com/cloud/network/element/OvsElement.java
server/src/com/cloud/network/element/VpcJuniperSRXExternalFirewallElement.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/src/com/cloud/network/vpc/VpcManagerImpl.java
server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
server/src/com/cloud/storage/StorageManager.java
2012-10-17 17:26:19 -07:00
Hugo Trippaers
28c31e3707
truncate names that are longer than 40 characters, this is the max
...
length nicira api accepts for display_name.
2012-10-17 13:29:03 +02:00
Hugo Trippaers
a4a3194899
Fix license headers
2012-10-15 10:22:12 +02:00
Chip Childers
b48d0d7d08
CLOUDSTACK-326: Removing extra license and README files
...
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 14:29:51 -04:00
Hugo Trippaers
c07d6d28ee
Merge branch 'nicira-l3support'
...
This commit merges the nicira-l3support branch with master. This
effectively adds nicira nvp l3 support to master. The NiciraNVP Provider
can support the following services with this modification: Connectivity,
SourceNat, StaticNat and PortForwarding
Testing done:
Create, Delete network offerings with Nicira Element
Use Gui to add, modify, remove Nicira Element and Provider
Provision, deprovision SourceNat networks
Provision, deprovision Portforwarding and StaticNat rules
Tested with Nicira NVP release 2.1.0, 2.2.0 and 2.2.1 (2.2.x recommended)
2012-10-12 14:15:17 +02:00
Hugo Trippaers
51f9a98871
Check all TODO and FIXME tasks
2012-10-12 12:02:54 +02:00
Hugo Trippaers
ab8ba3d61d
Implement the portforwarding code in the resource
...
Fix a small naming typo
2012-10-12 11:57:27 +02:00
Hugo Trippaers
553a72047f
Implement static nat handling
2012-10-11 18:13:47 +02:00
Hugo Trippaers
18e11ac0c8
These need to be objects instead of primitives otherwise they get
...
included by default during conversion to json.
2012-10-05 09:27:21 -07:00
Hugo Trippaers
aa6355ffe6
Updated master to 4.1.0
...
mvn release:update-versions -DautoVersionSubmodules=true -Dnonoss -P
client,deps,developer -DdevelopmentVersion=4.1.0-SNAPSHOT
2012-10-01 11:00:55 -07:00
Hugo Trippaers
bb4dadaed8
small fixes
2012-10-01 10:12:59 -07:00
Hugo Trippaers
c9b0b0b1a9
Add Nicira configuration to the UI
2012-09-30 23:33:37 -07:00
Hugo Trippaers
c5634b9687
Wire the PortForwarding and StaticNat calls
2012-09-30 10:20:54 -07:00
Hugo Trippaers
de41cb7cb5
Start implementing IpDeployer
2012-09-28 11:32:53 -07:00
Hugo Trippaers
dd68a00338
Persist the uuid of the logical router once created
2012-09-27 22:16:11 -07:00
Hugo Trippaers
af77912034
Keep naming consistent
2012-09-27 18:26:56 -07:00
Hugo Trippaers
8ba7749869
Prepare all capabilities we will be supporting
...
Remove the logical router if we are done with it.
2012-09-27 18:24:19 -07:00
Hugo Trippaers
fe997651a6
Wired up the creation of the SourceNat router in the element
2012-09-27 15:34:53 -07:00
Hugo Trippaers
bfc8da1082
Update Nicira Api to support L3 functionality
2012-09-25 15:51:48 -07:00
Jie Feng
c9aa08350a
[DOC] docbook conversion - choosing a deployment architecture
2012-09-13 16:12:06 -04:00
olivier lamy
fe8a01106b
rename cloud-plugins to cloudstack-plugins
2012-08-27 16:53:51 +02:00
olivier lamy
c68dd35b6e
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack
2012-08-27 16:44:18 +02:00
olivier lamy
a06ed5728c
remove intermediate parent poms
2012-08-27 16:43:24 +02:00
Hugo Trippaers
e2b814d045
If there already is an entry in the nic mapping table for a starting VM,
...
try to reconcile with the Nicira Controller.
2012-08-27 13:41:27 +02:00
olivier lamy
3aa469da2a
groupdId is now org.apache.cloudstack
2012-08-25 09:20:21 +02:00
olivier lamy
5ef60aceb1
%s/tab/ws/
2012-08-25 00:03:23 +02:00
Darren Shepherd
4a4007e652
Add license
2012-08-24 11:18:54 -07:00
Darren Shepherd
ebc0fa458a
* Maven 3 support
...
* Pretty Format POM's
* AWS API compiles now
2012-08-24 11:18:54 -07:00
Darren Shepherd
490e87a617
Fix small compilation issue encountered when building with maven
2012-08-24 11:18:53 -07:00
Darren Shepherd
f826971fea
Maven config, initial commit
2012-08-24 11:18:52 -07:00
Sheng Yang
46a12b378c
CS-15243: Add service combination check at create network offering
2012-08-07 13:17:48 -07:00
Chip Childers
81ff7a09fd
CS-15875 resolved via patch from Andy Gross.
2012-08-07 14:10:11 -04:00
Chip Childers
3a882fa17c
License header updates for the plugins folder.
2012-08-03 09:07:43 -04:00
Hugo Trippaers
65daade79a
Add a "ping" function to the resource and allow commands to be retried.
2012-08-01 14:11:32 +02:00
Hugo Trippaers
b4bcd7f3fe
Use the name of the network (or uuid) as display text of the nicira logical switch.
2012-07-30 15:17:46 +02:00