3483 Commits

Author SHA1 Message Date
melissaml
11f4a3c9dd Update URLs in documents according to document migration
Change-Id: I96d83374cfc2bdde92cb24f5a44c358fca6f8736
2017-07-13 15:32:08 +08:00
Jenkins
902505e98b Merge "Fix task tests under py3" 2017-07-13 06:19:35 +00:00
Jenkins
4aebef73c5 Merge "Fix pool tests in py3" 2017-07-13 03:34:12 +00:00
Jenkins
8902c4e129 Merge "Make central service tests py3 compatible" 2017-07-12 21:15:58 +00:00
Jenkins
9d688e2836 Merge "Auto-generate designate.conf.sample via genconfig testenv" 2017-07-12 20:12:39 +00:00
Jenkins
7e24e077f5 Merge "Eliminate annoying oslo.messaging timed out message" 2017-07-12 19:48:39 +00:00
Nguyen Van Trung
416ae6cd08 Auto-generate designate.conf.sample via genconfig testenv
- Keep currently config in the Designate
- Fix some warning about missing help string
- Auto-generate sample config via genconfig testenv.
- Add an instruction in README about genconfig
- Create config sample along with whole service, backend
- Create opts.py to focus list_opts.

Change-Id: Iead7772cd13316c9f4adafe1b1e70d36bbc6a11a
2017-07-01 21:32:16 +07:00
Doug Hellmann
47b61c57a4 use the same command for 'docs' env build as CI uses for real doc builds
Change-Id: Iff77d58ae895405eded2063d03e704a17e626868
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 14:44:36 -04:00
Doug Hellmann
e940a65e23 complete the migration from oslosphinx to openstackdocstheme
Change-Id: I32bbd44df176397d6887a4547cbf71b819daa358
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 14:44:36 -04:00
Doug Hellmann
84040e07ed rearrange existing documentation according to the new standard layout
Change-Id: I797d2445b16c8348cdbafbb4f859251c772e1e14
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 14:44:36 -04:00
Thomas Herve
f54f76ceae Fix task tests under py3
This makes all the unit tests pass under python3 \o/

Change-Id: I6f145ece1b0ce12843e0b9754467a79f88770bdc
2017-06-29 10:02:03 +02:00
Thomas Herve
e0a670a030 Fix pool tests in py3
This fixes an assertion which was trying to sort dictionaries: it works
around it by comparing items instead.

Change-Id: Iaa9764102a18d4b4cd6c2042791991ae1ab114e3
2017-06-29 10:01:11 +02:00
Thomas Herve
ff32da0bcc Make central service tests py3 compatible
This enables tests for central service, by not comparing None and int
values.

Change-Id: I001c0a5628ec2ed1c3fe53b52786a0ade16c9c95
2017-06-29 09:16:58 +02:00
Jenkins
3c323d5eab Merge "Make the Zone object py3 compatible" 2017-06-29 02:25:28 +00:00
Jenkins
6eaa76c822 Merge "Optimize the link address" 2017-06-28 18:25:16 +00:00
Jenkins
9364dedfb2 Merge "Improving cover testenv" 2017-06-28 18:25:10 +00:00
Jenkins
40d5d20d61 Merge "Stop using deprecated 'message' attribute in Exception" 2017-06-28 18:25:04 +00:00
Jenkins
56f36e9f35 Merge "Remove unnecessary setUp function in testcase" 2017-06-28 18:23:05 +00:00
Jenkins
5887078073 Merge "Fix missing format of impl_infoblox config file" 2017-06-28 18:22:59 +00:00
Jenkins
1a25663148 Merge "Fix UUID and String value in test_pool" 2017-06-28 18:22:53 +00:00
Jenkins
f6e6c7fca4 Merge "Improving check warning build_sphinx" 2017-06-28 18:22:47 +00:00
Jenkins
8eea30cb03 Merge "Fix missing database privileges and config references" 2017-06-28 18:22:36 +00:00
Jenkins
8d509383ce Merge "Return PoolList as a right list object" 2017-06-28 18:22:30 +00:00
Jenkins
e816f25e75 Merge "Improve testcase" 2017-06-28 17:47:36 +00:00
Jenkins
a76dffc645 Merge "Remove .testrepository/times.dbm" 2017-06-28 17:47:30 +00:00
Jenkins
a989d0d778 Merge "Ensure TTL is not 0 for zone imports" 2017-06-28 17:47:24 +00:00
Hieu LE
59711d5db8 Eliminate annoying oslo.messaging timed out message
Oslo.messaging >=5.18.0 polling spam logs for timed out message.
Setting oslo.messaging log level to INFO for eliminating annoying
timed out messages.

This commit also adopt get_rpc_transport and
get_notification_transport from oslo.messaging.

Change-Id: I2de252a59073af0db2d570f78208ee0402a2826e
Depends-On: I0ee741d8deda358e7cfb29407865ac6780ac64b9
Closes-Bug: #1691618
Related-Bug: #1671781
2017-06-28 17:45:10 +00:00
Dai Dang Van
58728c316e Fix missing database privileges and config references
Change-Id: Ide6604566f3814eff90074704a8045439a9026d1
Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>
2017-06-28 13:52:38 +00:00
OpenStack Proposal Bot
ccaaa3f06c Updated from global requirements
Change-Id: Iff2426d2399494e7b37f9d7d20e7cab890baade4
2017-06-27 12:09:03 +00:00
Vu Cong Tuan
be73e7939b Stop using deprecated 'message' attribute in Exception
The 'message' attribute has been deprecated and removed
from Python3.
For more details, please check:
https://www.python.org/dev/peps/pep-0352/

Change-Id: Ib3f142812c66354eadec3e5224f70f3ef8ce0e33
2017-06-23 16:39:59 +07:00
Nguyen Van Trung
6725ea21f6 Improving cover testenv
- Add coverage report to analyze code.

Change-Id: I46d3e6abe0a2b2e39db80ff399fcd53d35d1d577
2017-06-19 08:35:38 +00:00
lingyongxu
7d027bbecc Optimize the link address
Use https instead of http to ensure the safety,the patch
alse fix a wrong url to right.

Change-Id: Iea8388c74a695cbf7b32fce168b484b5a0236ae5
2017-06-15 10:32:42 +08:00
Nguyen Van Trung
f7e8a71b02 Improving check warning build_sphinx
- With this PS, we could be received a warning error at same time
when build sphinx decumentation of Designate via:

    $ python setup.py build_sphinx

- Fix some issues with docs sphinx.

Change-Id: I1e5a8c4b45dc3d10028531eabb50d3d6189ea070
2017-06-12 13:55:18 +07:00
Nguyen Van Trung
a780b892c6 Fix missing format of impl_infoblox config file
- The 'deprecated_reason' will created if 'deprecated_for_removal=True'
and help='DEPRECATED: <string>'.
- Currently format will be raising 'NoneType' object if we want
to genconfig testenv(in-progress [1]).

[1] https://review.openstack.org/#/c/472770/

Change-Id: I1b542175cb471093787e0ba0947bc5920917f29b
2017-06-12 00:40:38 +07:00
OpenStack Proposal Bot
9a2f65e39d Updated from global requirements
Change-Id: I703b52be58d9d0290a49dbe6835cf273e1f37393
2017-06-10 21:36:05 +00:00
Jenkins
877d7818d6 Merge "Add 'DELETED', 'NO_ZONE' and 'SUCCESS' status for objects." 2017-06-09 13:04:14 +00:00
Jenkins
350433b019 Merge "Updated from global requirements" 2017-06-09 13:04:08 +00:00
Jenkins
97160f90e3 Merge "Fix remaining API tests under python3" 2017-06-09 13:04:02 +00:00
Jenkins
8b594ca4f9 Merge "Fix doc generation for Python3" 2017-06-09 12:16:01 +00:00
Jenkins
2e474f39bc Merge "Fix issue with 'priority' value in pool_ns_record" 2017-06-09 12:11:24 +00:00
Jenkins
c4497e38be Merge "Fix issues with value pool-manger and bind9 tests" 2017-06-09 12:11:18 +00:00
Jenkins
a4d4aed518 Merge "Fix wrong Tld name" 2017-06-09 12:10:41 +00:00
lingyongxu
23409d2f44 Remove unnecessary setUp function in testcase
In testcase, setUp will be called automatically. This patch used to
remove setUp functions that do nothing. Besides, it will keep code clean.

Change-Id: I9205cd1faab3fa5bfdaa13ed798249a354716a23
2017-06-08 17:35:27 +08:00
Dai Dang Van
af5a62dc47 Remove .testrepository/times.dbm
When we run tox command, we are facing with
test fail problem like: "No module named gdbm".
This patch adds cleaning up of this file
before running next tests.

Change-Id: If906d8c684cce14b62dec718fd22b6903b0ac663
2017-06-07 14:40:50 +00:00
Dai Dang Van
94af0f1501 Return PoolList as a right list object
- We are using PoolAttributeList object for this case
and put a list of Pool objects for it.

Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>

Change-Id: Ie9047c6623d5b54c1ef890f43cff759c1b537797
2017-06-06 08:03:46 +00:00
Nguyen Van Trung
c9156e4b47 Fix UUID and String value in test_pool
- Pool_id must be UUID value, it's not an integer.
- target_id must be UUID value [1].
- namserver_id must be UUID value [2].
- 'options' value of targets must be String format [3].

[1] https://github.com/openstack/designate/blob/master/designate/objects/pool_target.py#L25
[2] https://github.com/openstack/designate/blob/master/designate/objects/pool_nameserver.py#L25
[3] https://github.com/openstack/designate/blob/master/designate/objects/pool_target_option.py#L37

Change-Id: Ibd616470233747a7aab9fe04ebf5fcfa0a59fd22
Co-authored-By: Dai Dang Van <daidv@vn.fujitsu.com>
2017-06-06 14:19:11 +07:00
Dai Dang Van
241315d59c Improve testcase
We should have better inputs for objects that we created
even when we don't face with wrong inputs because
we didn't call validate() for each time we set attribute.

- Fix some wrong UUID into correctly value.

Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>

Change-Id: Ibe0e24e6cc0366deb2b669ade2c9ff87f7eebe4e
2017-06-06 11:24:49 +07:00
Nguyen Van Trung
599f202442 Fix issue with value in nsd4 and powerdns test-case
- Whole values in 'options' must string format [1] which have
field relation from PoolTarget object into PoolTargetOptionList object.

- Currently, the values will not match schema if perform a validation.

[1] https://github.com/openstack/designate/blob/master/designate/objects/pool_target_option.py#L37

Change-Id: Ib356ae6a52f72170b6267a0c2532f2bc97c7d843
2017-06-06 10:50:53 +07:00
Dai Dang Van
de4466fa2d Fix wrong Tld name
Reference link about a right/wrong Tld name:
- https://github.com/openstack/designate/blob/master/designate/tests/test_schema/test_format.py#L318
- https://github.com/openstack/designate/blob/master/designate/schema/format.py#L34

Change-Id: I98ab55987894ef56684518ec074db8714763b574
2017-06-06 10:13:58 +07:00
Nguyen Van Trung
54a0b9730d Fix issues with value pool-manger and bind9 tests
- PoolNameserver's port must is integer to get successful validation[1].
- PoolNsRecord's value must is string format [2].

[1] https://github.com/openstack/designate/blob/master/designate/objects/pool_nameserver.py#L37

[2] https://github.com/openstack/designate/blob/master/designate/objects/pool_target_option.py#L37

Change-Id: I5ff240606dd564a1318c92ec2dad9bc88a217b31
2017-06-06 02:25:09 +00:00