Commit Graph

55 Commits

Author SHA1 Message Date
tonytan4ever 80812a918a Add cafe_engine_config_file_path option for api test gate
Change-Id: I93022e51d999c9735b900d0fc37477dc6d047a67
2016-09-08 22:17:56 -04:00
Isaac Mungai 57ecf44f72 testr doesnt support the --coverage-package-name option
replace 'testr' with 'test' for coverage

Change-Id: I5c057c09a2f8632f24ac14b4df99d85cc93d3441
2016-09-08 11:19:22 -04:00
Isaac Mungai b450ee6e80 add coverage package name option to testr
since setup.cfg lists package name as poppycdn, running
coverage failed to generate any data. specify a package
as poppy different from the one in setup.cfg.

Change-Id: Iac721e9df96807b4182e49a6b29a25f0c5b3e0b0
2016-09-08 09:46:38 -04:00
tonytan4ever 2140f6def0 Switching Poppy test to use ostestr (OpenStack Testr)
Change-Id: Iec921d21f3325e92462c7a2b40d748db8f85cdff
2016-08-24 11:39:10 -04:00
Isaac Mungai 9d6bfd188e bugfix: hostname fix for call to ssl cert utils
Change-Id: I56e7cb56c6c94459fce7b549f445db151c5f07c0
2016-07-26 20:49:54 -04:00
Isaac Mungai 32ef7e2d9e Unpin python-mock
Update all deprecated calls to nonexistent functions
Update some incorrect unit tests for fastly services

Change-Id: Ida6398944dfddc07812f74c98abf2218449d7bcc
2016-05-12 15:32:26 -04:00
Isaac Mungai dd82ab71bb Fix skipped tests while running tox
The exclude option passed to tox uses regex to filter
tests by name. We had a few unit and functional that
had substring 'api' as part of the name that were getting
skipped inadvertently.

Change-Id: I937c9f5a7562d1b3f6ab4a2c4025de1360ddfb9d
2016-05-03 11:25:42 -04:00
Ronald Bradford e9ce471c27 Remove use of Oslo Incubator local
Remove last use of Oslo Incubator and cleanup docs.

Change-Id: I56c8dbbc72733446f970a7f6a4a651d11422de8e
2016-03-18 12:22:38 -04:00
Ronald Bradford 5ad7b36e45 Graduate from Oslo Incubator to oslo.i18n
Implements: blueprint graduate-oslo-i18n [1]
https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-oslo-i18n

Change-Id: Ifb9173cd9006c324118b6e5a432f653446f4a1ff
2016-03-17 16:44:45 -04:00
Tony Tan a4426f8e36 fix: missing LC_ALL causing python file containing unicode to fail
Change-Id: I02043c326f3ba9ed364489d5d49f5371cc270a9a
2016-03-08 13:34:14 -05:00
Jenkins 98421ac976 Merge "Put py34 first in the env order of tox" 2016-01-08 16:33:56 +00:00
Janonymous c73c93947b Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: If6d82c0c1130189a9d0a999a4c062b0da2049e41
Closes-bug: #1489059
2015-12-22 18:25:53 +05:30
Ondřej Nový 90c21f09ab Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I383c3d3ac0c9508d0f0c2d9620dd80c04d57ab82
2015-12-11 21:23:51 +01:00
venkatamahesh c601d3ab8d Change repositories from stackforge to openstack
Change-Id: Iefd739ddf04105f81d35c6ca2d1d50c96f476f38
2015-10-26 14:58:43 -04:00
Sriram Madapusi Vasudevan e43bd0447c rm: un-pin python-novaclient
with upgrade of pyrax of 1.9.5, this issue was
resolved.

Change-Id: I7bef7d8795c923bb3c67c2aeeffb97f5a946ac05
2015-09-23 09:22:38 -04:00
tonytan4ever 483e4e7ed0 Pin python-novaclient to fix API test
Change-Id: Iaa1c74e92cf00aae71cc7c5bca9caa545adbd341
2015-09-02 15:18:35 -04:00
amitgandhinz 0d08dfa66e Added Docker Files to mimic third party API's
This change works towards making the API tests pass
against Mimic'd drivers so that real production accounts
do not need to be set up - namely:
- Mimic - Fastly
- Mimic - Keystone

It also makes the mimic fastly instance the default driver in /etc

Implements: bp/mimic-fastly

Change-Id: I35d36fbc2452fc4e2233c19abefd738c9975edd0
2015-08-04 15:12:34 -04:00
Sriram Madapusi Vasudevan 93eaad3e58 fix: pin mock to 1.0.1
- pinning mock to 1.0.1 under tests/test-requirements.txt did not work,
  probably because some other framework has a dependency on it, putting
  it in the last line did not work either.

Change-Id: I67fd7d170fb653f18bb5b90fbffab202b7c2bc67
2015-07-10 11:08:15 -04:00
Anantha Arunachalam 1a8edc0c22 Added support for HostHeaderType and HostHeaderValue while creating the service.
Implements: blueprint host-header-forwarding

Change-Id: I7fa82c7699cd300e1eb1966bbf3d25c7ab549ed6
2015-06-26 16:12:22 -04:00
Obulpathi 7b3f03a804 Changes test runner from testr to nose
Change-Id: I40a89c3e9f22e6d433635bb147677de7ab8c5f61
2015-06-09 16:17:41 -04:00
Obulpathi ec669cbdc2 Changes from nose to testr
Change-Id: I3f2ab38289960c096a2d487fb31c31f82d9aba86
2015-05-26 15:20:03 -04:00
Jenkins 49afe133d6 Merge "Adds PYTHONDONTWRITEBYTECODE option to tox.ini" 2015-03-06 21:22:45 +00:00
Obulpathi e456804cc4 Adds PYTHONDONTWRITEBYTECODE option to tox.ini
Change-Id: I516eeaee64df4a4287820823ac1dbdfaef0dd07d
2015-03-06 14:51:06 -05:00
tonytan4ever 91aaf1830b - Getting the current file's path and join
with the migrations

Change-Id: I4a8ed51850acfb7317659564519797727189063a
2015-03-03 17:15:57 -05:00
Jenkins 938dc1f17d Merge "Makes running api tests via tox simpler" 2015-02-18 20:58:28 +00:00
Jenkins 764f3d248e Merge "Removed unecessary builds in tox" 2015-02-18 17:31:35 +00:00
Obulpathi 9ba23456cd Makes running api tests via tox simpler
Change-Id: I92c7a010e6e6119f082459ca6b6748ca93cf95bd
2015-02-18 11:26:42 -05:00
amitgandhinz cfbfc3dc5e Removed unecessary builds in tox
Change-Id: I48a96bc639b1cf826a54504eb020b39e1579ad47
2015-02-18 11:25:03 -05:00
amitgandhinz 36e4b52222 Updated maxcdn references
Change-Id: I2c03d3b8a09518ee0d7938158c959d159aec2dcc
2015-02-17 14:58:07 -05:00
Obulpathi c64baeff90 Removes py26 environment from tox.ini
Change-Id: I74d3f73428ced97051eb37face77eda951fad7d4
Closes-Bug: 1408034
2015-01-06 12:33:14 -05:00
amitgandhinz 9292baff3b User can now get services where the service name has an extension
For example, www.site.com would attempt to be an msapplication content type
and www.site.com.au would attempt to be an audio/object content type

Change-Id: I474fc523558a8c99ded656eff45f022ae6fb38ae
Closes-Bug: 1392568
2014-12-22 09:59:03 -05:00
Jenkins 050255410d Merge "Adds End To End Tests" 2014-12-16 20:12:20 +00:00
amitgandhinz b1252a71ec Fixed issue with running apidocker
Change-Id: Icda1875d7352a28d53930a896909be07129abd66
Closes-Bug: 1400395
2014-12-15 13:55:40 -05:00
Malini Kamalambal 8a0e22fb60 Adds End To End Tests
This patchset adds the end to end tests for Poppy.
The test steps include,
1) Deploying a WP site on a cloud server
2) Creating a Poppy Service for the WP site
3) Reporting page load metrics using webpagtest

Change-Id: I5f96cd21ac59806310f314e27da4f07642d3cfb0
2014-12-12 12:19:02 -05:00
Jenkins d6d5b95f6f Merge "Work toward Python 3.4 support and testing" 2014-12-05 22:58:09 +00:00
Jenkins e8faad7a23 Merge "Added tox environment for running api tests using docker" 2014-12-02 22:36:21 +00:00
amitgandhinz 181bdbcba0 Added tox environment for running api tests using docker
Change-Id: I0b9f6a34218e52ebe6cda590eb271d9e49ed8186
2014-12-02 17:23:16 -05:00
amitgandhinz 8091123422 Made the X-Project_ID header mandatory in Poppy
Any middleware used (Keystone, Repose, etc) will be required to
validate that the project_id is correct for the auth token used.

This change also moves the instantiation of the hook that checks
that the X-Project-ID header is mandatory to each controller
instead of during the make_app.  This allows the X-Project-ID
context hook to only be checked on certain controllers (and ignored
on ones like /ping where projectid is not needed.

Change-Id: Ie2cfb9d76a0e53ba990332d1050cce634626b992
Closes-Bug: 1392818
2014-12-02 13:28:22 -05:00
Malini Kamalambal 7bf0deda03 Add API tests for get service endpoint
This patch,
1) Adds API tests for get service endpoint.
2) Uncomments create service validations which were dependent on
get service endpoint.

Change-Id: I3fb9f9a8348cedd7ceb4062bad82d51d41b2a38e
2014-10-06 13:13:43 -04:00
Malini Kamalambal ddf4174b22 API Tests for Create Service endpoint
This patch updates API Tests for Create Service endpoint, to include
Fastly service validation.

Change-Id: I6c3370b5dd8937f4349e10ca3e81ae3c2f5eada3
2014-09-30 10:21:12 -04:00
Jeremy Stanley 9e83c2a091 Work toward Python 3.4 support and testing
Change-Id: If57ca5febf9210facd5f447cb05022710d3c95fe
2014-09-03 19:07:20 +00:00
tonytan4ever 2ea3f39221 Add MaxCDN driver && unittest
Change-Id: I4b1b51c994cf918b3de898c702869dae475eda95
2014-09-02 18:09:54 -04:00
Jenkins e4a471933a Merge "Make API tests run via tox" 2014-08-27 15:24:17 +00:00
amitgandhinz 1146543147 adding docs
Change-Id: I0eef8bec16029e27ab27d8bb7dc69e5aa211e2ab
2014-08-25 12:34:07 -04:00
Malini Kamalambal 0e160a42c4 Make API tests run via tox
This patch makes the changes necessary to make the API tests
run via tox.

Change-Id: I44fe0ee301b7427c01e3eb44975bf068f398338e
2014-08-25 12:14:20 -04:00
amitgandhinz 5ab42a4ae0 Fixing Gerrit Gating issues with Pep8 and Docs
Change-Id: I419b6e60e04cb828256eff1d5f6ac16cb6cfe585
2014-08-14 11:08:08 -04:00
amitgandhinz 032ef14457 made tox pylint checking optional 2014-08-07 17:15:42 -04:00
amitgandhinz 8daef25ef9 added pylint and cleaned up test-requirements 2014-08-07 17:06:03 -04:00
amitgandhinz f9d1c30bbb added pypy to tox 2014-08-04 17:59:45 -04:00
Malini Kamalambal 7d77d5fc82 Exclude API tests from tox. 2014-07-18 10:23:04 -04:00