Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api / tests @ 182b2e2a

# Date Author Comment
182b2e2a 01/28/2014 11:21 am Dionysis Grigoropoulos

cyclades: Fix typo in tests/networks.py

3d870b05 01/27/2014 02:17 pm Dionysis Grigoropoulos

cyclades: Update api/networks.py and typo fixes

  • Update api/networks.py to use the updated get_attribute from commit
    14402edcf6d19fc42a64ef93da3d66ef7969327b.
  • Add corresponding test case
  • Typo fix in an error message in api/subnets.py

Refs #4979

14402edc 01/24/2014 07:12 pm Christos Stavrakakis

cyclades: Validate fields of API requests

Make sure that all fields of a request (user input) have a valid type.
This commit validates 'ports', 'servers' and 'floating_ips' APIs.

Refs #4979

ba777b02 01/23/2014 03:44 pm Giorgos Korfiatis

cyclades: Detach serial from resource when resolved

62b76f38 01/22/2014 12:50 pm Christos Stavrakakis

cyclades: Extend flavors with 'allow_create' field

  • Add 'allow_create' field to Flavor DB model and the corresponding
    migration.
  • Extend API for flavors to return the 'SNF:allow_create' attribute
  • Update POST /servers API call to check that the flavor that is...
7219c7a3 01/20/2014 01:39 pm Christos Stavrakakis

cyclades: Add deleted attribute for changes-since

Extend API response for servers, networks, subnets and floating IPs,
to support HTTP 'changes-since' queries.

03d430b5 12/18/2013 07:17 pm Christos Stavrakakis

cyclades: Comment out unused tests

Security groups are not working yet. Comment out relevant tests.

9cec0c17 11/27/2013 12:21 pm Christos Stavrakakis

cyclades: Change behaviour of servers fqdn

Change behaviour of 'CYCLADES_SERVERS_FQDN' setting: * If this setting is set to 'None', do not fall back to the public IP
address of the machine. * Return the value of the setting even if the machine has no public...

57c57b88 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Typo fixes

eb5f7eb0 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Fix a bug in logic/subnets.py

  • Fix a potential crash if the gateway IP was the last available IP of
    the subnet
  • Create the corresponding test
83157287 11/25/2013 01:13 pm Dionysis Grigoropoulos

Add a new function to assert success code 201

  • Add assertSuccess201 function
  • Use this new function in test/subnets.py
55b3d06b 11/13/2013 08:41 am Christos Stavrakakis

cyclades: Fix broken tests

Fix some tests that broke because of recent changes in astakosclient.
The 'token' argument has been removed, so all mocking arguments are
shifted by one.

ddffd973 11/12/2013 01:06 pm Christos Stavrakakis

cyclades: Fix some broking tests

cdd6fc06 11/06/2013 04:06 pm Christos Stavrakakis

cyclades: Create 'cyclades_network' service

Create 'cyclades_network' service which is part of Cyclades, of 'network'
type and with 'network' prefix to hold all API endpoints that are
relative with networks. So, for example, the endpoint for networks will...

f8ce6d44 11/06/2013 02:00 pm Christos Stavrakakis

cyclades: Fix bug in tests

Fix bug in port tests that were introduced by latest changes in IPPool
manager.

8d5795b4 11/06/2013 02:00 pm Christos Stavrakakis

Cyclades: Rename 'Can not' to 'Cannot' to all msgs

fef04862 11/05/2013 06:52 pm Dionysis Grigoropoulos

cyclades: Add a test for subnet creation

3aecadc8 11/05/2013 11:07 am Christos Stavrakakis

cyclades: Fix default/forced server networking

Fix the default behaviour for networking of servers that are being
created. There are two settings controlling this behaviour:

  • CYCLADES_DEFAULT_SERVER_NETWORKS: This setting contains list of
    networks to connect a newly created server to, if the user has not...
d2c3c533 11/04/2013 12:18 pm Christos Stavrakakis

cyclades: Create server in public net with FIP

Remove 'floating_ips' extension attribute to POST /servers API call.
Instead use the 'fixed_ip' attribute of 'networks' attribute to specify
the IPv4 address of a floating IP. So in order to create a server
connected to a private network and a public network, the 'networks'...

09b76b7e 11/02/2013 02:39 pm Christos Stavrakakis

cyclades: Fix permissions when looking up ports

Look up of ports should check the port userid and not the network
userid.

99988465 11/02/2013 01:43 pm Christos Stavrakakis

cyclades: Create server with existing ports

Extend POST /servers API call to support creation of servers that will
be using existing ports. Networking of the instance is defined via the
'networks' attribute which can contain either network UUIDs or port
UUIDs. In case of network UUIDs, the user can also request for a...

fae6e5f0 11/01/2013 04:17 pm Christos Stavrakakis

cyclades: Create ports without 'device_id'

Allow creation of ports that are not connected to any instance. Such
ports will be in 'DOWN' state. To allow this, 'machine' attribute of
NetworkInterface model has been made to allow null values. Finally, the
'logic.ports' module has been remove, and the corresponding code has...

7421d45e 11/01/2013 12:55 am Christos Stavrakakis

cyclades: Add 'SNF:floating_ip_pool' to networks

Extend network API methods to include the 'SNF:floating_ip_pool'
attribute which indicates whether floating IP can be allocated from the
network or not. Trying to allocate a floating IP from a network which is...

69c8d65d 11/01/2013 12:45 am Christos Stavrakakis

cyclades: Create port with specified IPv4 Address

Extend POST /ports API method to respsect 'fixed_ips' attribute. If this
attribute contains a valid IPv4 address, the new port will get this
address instead of trying to allocate one from the available IP pools of...

4edfc376 10/31/2013 11:52 am Christos Stavrakakis

cyclades: Get floating IP without specifying pools

Extend GET /floatingips API method, to allow requests that do not
specify the 'floating_network_id' attribute. In this case it will try
to allocate a floating IP address from one of the available floating IP...

8c15a209 10/30/2013 06:27 pm Christos Stavrakakis

cyclades: Mock Ganeti in ports tests

f32e8021 10/30/2013 06:27 pm Christos Stavrakakis

cyclades: Mock GANETI_USE_HOTPLUG on ports tests

Test that you can not create or delete a port on a machine
that is started if GANETI_USE_HOTPLUG is set to False.

9a73f94d 10/30/2013 05:43 pm Marios Kogias

cyclades: Fix bugs in floating-ip tests

b7311f3d 10/30/2013 04:56 pm Dionysis Grigoropoulos

cyclades: Various refactors in subnets

  • Remove unused functions and imports from logic/subnets.py
  • Remove --network-id option from snf-manage subnet-modify and make
    it an argument
  • Fix --ip-version, --dhcp and --gateway options in snf-manage
    subnet-create...
b9364b15 10/30/2013 03:27 pm Marios Kogias

cyclades: Fix bug in floating-ips api tests

4911365b 10/30/2013 01:14 pm Christos Stavrakakis

cyclades: Fix bug in network test

3a6be177 10/30/2013 12:51 pm Christos Stavrakakis

cyclades: Rename Port state from BUILDING to BUILD

Neutron API defines the 'BUILD' status. This commit renames BUILDING
state of NIC to BUILD.
e4f484da 10/30/2013 12:43 pm Marios Kogias

cyclades: Update floating-ips api

Make changes to the floating-ips ip so that it complies with the
Openstack Quantum API.

0711e5aa 10/30/2013 12:56 am Christos Stavrakakis

cyclades: Fix default values for IP pool

Temporary commit to change default offset and size of IPPoolTable
factory.

2c2d4f0a 10/29/2013 08:22 pm Christos Stavrakakis

cyclades: Fix tests for ports

  • Mock GanetiRapiClient
  • Fix some wrong checks about response codes
  • PEP8 fixes
495e2be8 10/29/2013 02:17 pm Christos Stavrakakis

Revert "cyclades: Add /routers api"

This reverts commit 69dadbe4e3223dc4d8cbaa5b09dde755c15679ed. Temporary
remove the /routers API.

9c74cc19 10/25/2013 04:25 pm Marios Kogias

cyclades: Fix POST /ports

Modify port create api call. If the user gives a public network
he has to give a valid floating ip as well.

69dadbe4 10/25/2013 12:35 am Marios Kogias

cyclades: Add /routers api

  • Add support for /routers api calls
  • Add tests for the api
7bff4d2f 10/25/2013 12:33 am Marios Kogias

cyclades: Add a port deletion test

411e5025 10/16/2013 06:53 pm Dionysis Grigoropoulos

cyclades: Update subnet tests

097009bf 10/16/2013 06:28 pm Dionysis Grigoropoulos

cyclades: s/slac/enable_slac in api/subnets.py

911a1bc1 10/16/2013 01:26 pm Dionysis Grigoropoulos

cyclades: Various fixes in api/subnets.py

01adca6b 10/14/2013 05:42 pm Dionysis Grigoropoulos

cyclades: Neutron API, update tests for IP Pools

97ca522f 10/14/2013 05:42 pm Dionysis Grigoropoulos

cyclades: Update subnets.py to support slac

IPv6 subnets now support a boolean attribute called slac.
If a request for a subnet contains both a slac field and an enable_dhcp
field, only the slac one will be used. If no slac field is found for an
IPv6 subnet, the field enable_dhcp will be used instead....

fde2c1f7 10/14/2013 03:51 pm Christos Stavrakakis

cyclades: Fix the os-floating-ips API

Rewrite the of-floating-ips API to match with the new DB schema.

710b1c43 10/14/2013 03:51 pm Christos Stavrakakis

cyclades: Refactor code for allocating IPs

Refactor code that was used for allocating IP addresses and creating
NetworkInterfaces. The new code is more suitable to the new DB schema
where each network may have many IPv4 subnets and each subnet may
have many IP pools. Also, the new functions are using prefetch related...

a3b8aaf6 10/11/2013 04:54 pm Marios Kogias

cyclades: Add more port tests

e08afd0b 10/11/2013 02:45 pm Christos Stavrakakis

cyclades: Fix typo and tests

b3a43976 10/11/2013 02:40 pm Christos Stavrakakis

cyclades: Optimize DB queries of /servers API

Use 'prefetch_related' attribute of Django queryset to prefetch the
NetworkInterface and IPaddress objects that are related with a
VirtualMachine object. Also, modify functions that operate on server
NICs and IPs, to to use only the prefetched objects, which means that...

5db2001a 10/11/2013 11:07 am Marios Kogias

cyclades: Syntactic refactor ports

5b8a9240 10/10/2013 08:08 pm Christos Stavrakakis

cyclades: Fix and add new tests for /networks

Also, delete tests for old networks.

6a959c73 10/10/2013 06:12 pm Dionysis Grigoropoulos

cyclades: Update api/subnets.py and tests

Commit 4e3a667 introduced a new model for Subnets, this commit contains
the following changes:

  • Update api/subnets.py to match the new model
  • Create tests/subnets.py to test the above api calls
  • Update api/urls and tests/__init__.py to reflect the above changes
0baa1e3d 10/10/2013 12:40 pm Build Bot

Integrate /networks API call

593851e0 10/10/2013 12:40 pm Build Bot

cyclades: Add /ports api call

92d2d1ce 10/10/2013 01:56 am Christos Stavrakakis

cyclades: Make API server tests pass

Refactor Cyclades code so that it follows the new models for Networks,
Subnets and IPAddresses. This refactor is not complete. Instead is the
necessary refactor for making tests for server API calls succeed.

326c3ec8 10/09/2013 07:36 pm Christos Stavrakakis

cyclades: Replace FloatingIP with IPAddress

This commit just replaces all references to FloatingIP objects with
references to IPAddress object, in order to be able to just load the
code. But the code is left unchanged, so all tests will fail.

d0545590 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use NIC UUID in firewall tags

Use NICs UUID instead of index to generate firewall tags. Make the
'set_firewall_profile' action to take the NICs ID as argument. Also,
update the firewall settings.

c988fcca 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Change format of 'attachment' attribute

Change the format of the 'attachment' attribute. Until now, each
attachment had an identifier of the form 'nic-$vm_id-$nic_id'. This
commit changes the identifier to just '$nic_id', since from now on
is unique for the lifetime of a NIC.

7c714455 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use Ganeti NIC UUIDs

Since Ganeti 2.8, it is supported to refer to devices (NICs and Disks)
not only by their index but also by their name or UUID. This commit
updates Synnefo to refer to devices by their name. Synnefo will set the
name of the devices which will be a UUID. We do not use Ganeti's UUIDs...

c4ed6248 10/09/2013 11:39 am Christos Stavrakakis

cyclades: Fix bug in floating IP test

9dcfad23 09/20/2013 01:45 pm Christos Stavrakakis

cyclades: Handle errors during vm creation

Commit #f2080d1 mocked an OP_INSTANCE_REMOVE when enqueuing an
OP_INSTANCE_CREATE job to Ganeti failed. However, this may result in
releasing IPs that may get reserved in Ganeti, because we can never
really know if the job has reached Ganeti or not (e.g. timeout). For...

8e67ea28 09/18/2013 06:22 pm Christos Stavrakakis

cyclades: Apply old commits to moved files

Code from file 'api/servers.py' has been moved to 'logic/servers.py'.
During the merge of hotfix-0.14.6 the develop, this code was lost. This
commit applies commits #f2080d1, #ea9b0fb, #32a0b85 to the new file.

ed2064f8 09/18/2013 05:17 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.6' into develop

Conflicts:
Changelog
docs/admin-guide.rst
snf-cyclades-app/synnefo/api/management/commands/network-remove.py
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/api/tests/servers.py
snf-cyclades-app/synnefo/logic/backend.py...

dfcece01 08/23/2013 06:00 pm Christos Stavrakakis

cyclades: Fix broken tests from commit #c172f4a

Commit #c172f4a used the "size" attribute of images. This commit
fixes mocked images of tests to contain this attribute.

e368ad39 08/07/2013 11:08 am Christos Stavrakakis

cyclades: PEP8 fixes to tests module

2522e489 08/07/2013 11:08 am Christos Stavrakakis

cyclades: extend VM info with 'port_forwarding'

Extend servers info API response with 'SNF:port_forwarding' attribute,
describing port fowarding rules (DNAT) that are applied to vms. The
description of such rules is done via the new CYCLADES_PORT_FORWARDING...

7e82ac17 08/07/2013 11:08 am Christos Stavrakakis

cyclades: add tests for 'fqdn'

9582e68e 08/05/2013 01:29 pm Christos Stavrakakis

cyclades: Remove assumptions from tests

Remove some hard-coded IDs from tests.

94537e34 07/11/2013 03:52 pm Christos Stavrakakis

cyclades: Move tests in tests directory