2523 Commits

Author SHA1 Message Date
Jenkins
5eea2dc5f0 Merge "Added CORS support to Designate" 2015-11-04 21:39:51 +00:00
Bertrand Lallau
92a08f1229 Use assertIn and assertNotIn
Tests should use:
  self.assertIn(value, list)
  self.assertNotIn(value, list)

instead of:
  self.assertTrue(value in list)
  self.assertFalse(value in list)

because assertIn and assertNotIn raise more meaningful errors:
  self.assertIn(3, [1, 2]
  >>> MismatchError: 3 not in [1, 2]

  self.assertTrue(3 in [1, 2])
  >>> AssertionError: False is not true

Change-Id: I38bf94b50dbfff8aa075b8ecbb5b4d03a2cdf2e2
Closes-Bug: #1510007
2015-11-04 22:36:17 +01:00
Jenkins
640db9f9e3 Merge "Updated from global requirements" 2015-11-04 21:21:36 +00:00
Jenkins
6113026abe Merge "Use assertTrue/False instead of assertEqual(T/F)" 2015-11-04 20:29:31 +00:00
Jenkins
ddfd208007 Merge "Fix typos in sample config files" 2015-11-04 20:28:42 +00:00
Bertrand Lallau
69217969ef Use assertTrue/False instead of assertEqual(T/F)
Usage of assertEqual(True/False, ***) should be changed to a more
meaningful format of assertTrue/False(***).

Change-Id: I8623f5534f00ea1690f74a297488957a8d35f074
Closes-Bug: #1510001
2015-10-30 20:02:16 +01:00
sonu.kumar
d16c1ada3f Uses assertIsNone instead of assertEqual(None, ***)
The usage of assertEqual(None, ***) should be changed to a more
meaningful format of assertIsNone(***).

Change-Id: Iac767a599f173f3f8bd42e012a23c11861e4c83a
2015-10-29 10:41:49 +05:30
Bertrand Lallau
34abd6549e Use oslo_config IPOpt support
The oslo_config library provides IPOpt type.

Change-Id: Ica80589e84445c7abc304576d61a9fd117cfb859
2015-10-26 10:40:27 +01:00
OpenStack Proposal Bot
a9b47d4b64 Updated from global requirements
Change-Id: Ia1ce5aa63cebf5fd9ab14e6e0247b204b437134a
2015-10-23 18:44:22 +00:00
sonu.kumar
94f18defa0 Fixes Output for zone type filter
Closes-Bug: #1506742

Change-Id: Ifd6269fef1061da3fdc5ececd103a79789b9473f
2015-10-21 09:49:26 +05:30
Michael Krotscheck
59f2f03a1c Added CORS support to Designate
This adds the CORS support middleware to Designate, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.

The paste.ini method of deploying the middleware was
chosen, because it needs to be able to annotate error responses
created by other middlewares. If one such middleware throws an
error - such as an auth error from keystone - that error response
must still have CORS headers in order to be readable by the
user agent.

openstack-config-generator hooks were not added in this patch, as
it does not appear that designate explicitly supports them.

OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html

Change-Id: Ib66e8afafbde568549228c98d210f02466a90cc8
2015-10-19 10:49:15 -07:00
sonu.kumar
6a29992833 Fix order of argument in assertEqual
Some tests of central used incorrect argument
order in assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed)

Change-Id: I8fb43e687e64e133b23c1321659183a8b18c11f6
Partial-Bug: #1259292
2015-10-16 14:39:21 +05:30
OpenStack Proposal Bot
b5b5433420 Designate 1.0.0
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABCAAGBQJWH2XQAAoJEFB6+JAlsQQjynIP/iuMt5J3a+kHAXTfFmOdrfaC
 JI6kA40gN1k2Sh15gGfRC+1h4a6dj9ZVsbMVI4nes8DREHErErKpMvl04wQLK6yp
 xnX7Wrn1TTGtml77pEagYTgRBVjtzg6NE1oWGcLq5oCQ7wXac/GNZH2jasu66zOD
 WLcmx27akQp4ZUf0QVLXEVTy69m9MiQJjaLyXT+NxghKUPgPtyRjcuI3okdVWy72
 xcvEvESmtJZhNHI7D3nLkkuDjFqbtFzPiYTr8lHTloC2f23FhCwRPjx5fKOOVg0k
 AiqpYMjkDSqV/liongNi65iTGjiMNwlcm0+lz7/5+bli+1MsDouUHmBF/Il7uxtO
 hdRdJplyvy+DumQ22ru46kBiaANPBSSyNRHkz2C1F975CEACRm9/LxNWk8hSiDYh
 XaimkWF0Cd4M+xZPcqcFnCTcfULA1rt6BL3rdJMAJnRgTEhoSlA0r41G/RinZ3yc
 Bil9Gf7oTpVU1eJvw16k/d09Laok+ufeF4b+6QAYeDQbp3kcIah5UIwdfKX+iirc
 B1uhaLN2mHBshrJ2W3C7LMGt5zDR8+hTTR9Bl/E3rog1aeW/dMb4gFvw2UyIHjlU
 t3S2AorhNURUgwDhZc6F4nc64FifBz1upXtaQmct/oLMDWKfbfF4Bu0jtmiWMJ9r
 UQNMs5ur052YxaSjsUJr
 =yy1G
 -----END PGP SIGNATURE-----

Merge tag '1.0.0'

This is a null-merge of the 1.0.0 release tag back into the master
branch so that the 1.0.0 tag will appear in the git commit history of
the master branch. It contains no actual changes to the master branch,
regardless of how our code review system's UI represents it. Please
ask in #openstack-infra if you have any questions, and otherwise try
to merge this as quickly as possible to avoid later conflicts on the
master branch.

Change-Id: I65eccc05656174f425287fd7b9ab88d77870b815
2015-10-15 08:37:50 +00:00
Jenkins
027e3108e1 Merge "Added test cases for tsigkeys extention for V1 api" 2015-10-14 15:07:51 +00:00
Jenkins
a2502bd422 Merge "Fix order of arguments in assertEqual" 2015-10-14 13:59:15 +00:00
Jenkins
02811ee3a4 Merge "Fix order of argument in assertEqual" 2015-10-14 13:59:07 +00:00
Jenkins
ab4bc821c1 Merge "Fix order of argument in assertEqual" 2015-10-14 13:56:04 +00:00
Jenkins
e01e9c549d Merge "Fix order of argument in assertEqual" 2015-10-14 13:53:38 +00:00
sonu.kumar
71f2fee187 Updated api-export-size attribute in quota update docs
Change-Id: I16355eaa1f15f748c5d0fa319e4e0f3b593dbd1f
Closes-Bug: #1505944
2015-10-14 16:02:03 +05:30
Endre Karlson
5813493932 Add functional tests for TLDs
Change-Id: Ic5c25f40cf19d0f1915f89698468090bf6eb743b
2015-10-13 15:06:53 +00:00
Jenkins
88a13e2c20 Merge "Fix order of argument in assertEqual" 2015-10-13 12:46:54 +00:00
Hironori Shiina
69a085eff6 Fix typos in sample config files
Correct 'comand' to 'command' in sample config files.

Change-Id: I8ed97c630c4a6a842ce134c1a5826e271ba8bde2
2015-10-13 04:51:14 +00:00
Jenkins
8db99252d2 Merge "Unauthed tests for Zones (Security)" 2015-10-13 01:50:22 +00:00
Jenkins
e362e06a45 Merge "Use assertFalse instead of assertEqual(False, ***)" 2015-10-13 01:50:20 +00:00
Jenkins
6efc44ebb4 Merge "Unauthed tests for Blacklists (Security)" 2015-10-13 01:49:01 +00:00
Jenkins
3a2c4f3b19 Merge "Unauthed tests for Pools (Security)" 2015-10-13 01:48:52 +00:00
Jenkins
086bd6f518 Merge "Added test cases for records" 2015-10-13 01:44:19 +00:00
TimSimmons
8af0bfaf5e Block oslo.messaging 2.6.0 release
"Looks like we are broke a lot of CI jobs"

Change-Id: I08d1eed1874eccb51b6a614f5e69207dd74196eb
Partial-Bug: #1505295
2015-10-12 22:55:14 +00:00
Jenkins
37fdb05bd1 Merge "Functional tests: optionally disable ssl cert validation" 2015-10-08 20:55:59 +00:00
Jenkins
c741bf13eb Merge "Functional tests: Use a configurable url pattern" 2015-10-08 10:16:12 +00:00
Jenkins
a0496ab293 Merge "Clear out pyc files before a tox run" 2015-10-08 10:15:28 +00:00
Jenkins
1b44c450d2 Merge "retry creates/deletes in the pool manager" 2015-10-06 18:08:25 +00:00
TimSimmons
94dfad359f retry creates/deletes in the pool manager
- The pool manager doesn't retry creates/deletes right away. If there's
just a small net split, or the DNS server has some temporary failure, trying
a second time will usually succeed. This should fix a lot of premature ERROR
states

Change-Id: Ib61110c4e460e93b8b5cfa8a9256151a5cabc43b
closes-bug: #1503350
2015-10-06 11:08:13 -05:00
sonu.kumar
f9d5266ea0 Use assertFalse instead of assertEqual(False, ***)
The usage of assertEqual(False, ***) should be changed to a more
meaningful format of assertFalse(***).

Change-Id: I133f7784280132ca1dcfeeba5f42bb17806a497a
2015-10-06 11:09:40 +05:30
Endre Karlson
bfe79196c9 Fix handling of Pool NS changes
Closes-Bug: #1500798

Change-Id: Ie697f35a523a63617ba386f0dcde63600ce5dac6
(cherry picked from commit c59a2a012e61a80ea4d985db04ac29a582c745d1)
1.0.0.0rc2 1.0.0
2015-10-05 14:06:00 +00:00
Jenkins
fa19a42ec3 Merge "Functional tests: optionally skip admin actions in setups" 2015-10-05 13:18:09 +00:00
sonu.kumar
f42f4b626f Fix order of arguments in assertEqual
Some tests in test_base.py used incorrect arguments
order in assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed) as specified in
the example of http://nullege.com/codes/search/
testtools.TestCase.assertEquals.

Partial-Bug: #1259292

Change-Id: I84128994a9f168fab13f464cd23882d55658456f
2015-10-05 11:23:38 +05:30
Paul Glass
098b730c63 Functional tests: optionally disable ssl cert validation
Change-Id: I4738d9c918148b23c080e64e3f7dc6c122aa79ad
2015-10-02 20:51:52 +00:00
Paul Glass
9bdcb63904 Functional tests: Use a configurable url pattern
This removes the append_version_to_url config option in favor of
a pattern that will build the request url by interpolating arguments.

Change-Id: I0b1152d518a5f4ddfcfc5d5a7b28606932a86c4b
2015-10-01 19:17:27 +00:00
sonu.kumar
e7940e5f0e Fix order of argument in assertEqual
Some tests in test_domain.py used incorrect argument
order in assertEqual(observed, expected).

The correct order expected by testtools is
assertEqual(expected, observed).

Change-Id: I1c3db17fce9278389622492289bbd253acbd41f6
Partial-Bug: #1259292
2015-10-01 15:08:02 +05:30
Paul Glass
d0d2816e8c Functional tests: optionally skip admin actions in setups
* This defaults to doing those admin actions
* This lets us run a set of smoke tests without need admin access
* Fix a url to respect the `append_version_to_url` config option
* Also, move configs like this into a separate config section

Change-Id: If159423906d979990264fd8fd47b47e37aafe6ed
2015-09-30 22:43:03 +00:00
sonu.kumar
0dfccbb417 Added test cases for records
This patch adds test cases for records in v1 api.

Change-Id: I4b465a68fee3f890f1e8abc9c3054da1d6ba4de4
2015-09-30 09:49:14 +05:30
Endre Karlson
c59a2a012e Fix handling of Pool NS changes
Closes-Bug: #1500798

Change-Id: Ie697f35a523a63617ba386f0dcde63600ce5dac6
2015-09-29 20:26:50 +02:00
Kiall Mac Innes
24aa529e01 Clear out pyc files before a tox run
When switching back from master to a stable branch, tests
will often fail as pyc files will exist for migrations
that no longer have py files.

Change-Id: Ie3d892f86b929e87605ba29f4237152c4a47bec8
2015-09-29 11:58:10 +01:00
sonu.kumar
b5ee69f93c Fix order of argument in assertEqual
Some tests of recordset used incorrect argument
order in assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed)

Change-Id: I4eb74da35490e09738411d185af817efd7f4faa2
Partial-Bug: #1259292
2015-09-29 16:27:19 +05:30
sonu.kumar
2fed891b5a Fix order of argument in assertEqual
Some tests in test_zone.py used incorrect argument
order in assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed).

Change-Id: I60e491f5629fd6dccd25c24bfb158d3c2b0145f1
Partial-Bug: #1259292
2015-09-29 15:56:42 +05:30
sonu.kumar
1f01af47e0 Fix order of argument in assertEqual
Some tests used incorrect argument order in
assertEqual(observed, expected).

The correct order expected by testtools is
assertEqual(expected, observed)

Change-Id: I73b331a1c75aa9e136c64ebaf363e7a2ef6a3ebc
Partial-Bug: #1259292
2015-09-29 11:36:30 +05:30
Charles Neill
e5c997c728 Unauthed tests for Pools (Security)
These tests will attempt CRUD operations against Pools without
auth tokens. All requests should return 401 (Unauthorized).

Change-Id: I55013490b7003d0111eb3185181b94996c62f1ba
2015-09-24 16:55:33 -05:00
Charles Neill
1e1bd43edb Unauthed tests for Blacklists (Security)
These tests will attempt CRUD operations against Blacklists without
auth tokens. All requests should return 401 (Unauthorized).

Change-Id: If079aed4d52b6b3e3010a987fd5220bcf48242ca
2015-09-24 16:54:37 -05:00
Charles Neill
a2b7eaac49 Unauthed tests for Zones (Security)
These tests will attempt CRUD operations against Zones without
auth tokens. All requests should return 401 (Unauthorized).

Change-Id: Ia8c1cbb10edb7a77049d1a47dfd37651ad496701
2015-09-24 16:48:08 -05:00