Commit Graph

795 Commits

Author SHA1 Message Date
Isaac Mungai e38b0e7727 Filter hostnames that are already activated
When creating a new request to update papi property
hostnames, skip hostnames that we activated in a previous
execution of the akamai_update_papi_property job_type.

Change-Id: I11752ac19035c856c3d2b4ec837493a9dc5f89d5
2016-12-08 10:13:04 -05:00
Jenkins 6bfda5b01a Merge "Add admin endpoint to patch access urls" 2016-10-04 13:20:57 +00:00
Isaac Mungai 8b9d771df0 Fix unit tests that mock python ssl module
Change-Id: I714f18beba6466398cc96b78c5ef33528a2bdfd7
2016-10-03 17:10:29 -04:00
Isaac Mungai 53ac238b2a Add admin endpoint to patch access urls
Change-Id: I30da22d2a229b346212e53abd7bff50884929ab6
2016-10-03 16:33:02 -04:00
Jenkins 368c2d435a Merge "Handle error when getting peer cert on older py27" 2016-10-03 20:25:06 +00:00
Isaac Mungai 30f0332658 Handle error when getting peer cert on older py27
If the create_default_context function is not available
create a context for python version < 2.7.9.

Change-Id: Iec1411a98faf36e2ad5d2deb772d6a20c063e7d2
2016-10-03 12:53:49 -04:00
Isaac Mungai cda9e802b3 Create new context for each recreation of ssl cert
This will make tracking cert creation easier
when searching through logs by request_id.

Change-Id: Ic233f537bbbe3762a2e561677f7e24982e5ab904
2016-10-03 11:40:13 -04:00
Isaac Mungai d9ec45d8c2 Add unit tests for delete http policies
Change-Id: I340d350eb57c0c68deed15e17ab24be2bc51c7e6
2016-09-30 13:58:36 -04:00
Isaac Mungai 054dd47fd3 Add support akamai DV SNI certificates
Change-Id: I9f1ef35ee5cb3e50ac689b333357d43ef43fb343
2016-09-27 09:34:31 -04:00
Isaac Mungai 0458de585d Check shard is within records limit
Before adding a new record to a domain, check to see
if it's at maximum capacity and skip to the next cert
if necessary.

Change-Id: I7e4c56e27cebc45a9cdddf9659762f29f9c6227c
2016-09-21 14:18:02 -04:00
Isaac Mungai 24eb952e71 Add admin config sni cert endpoint
Change-Id: I32d3759c932c92fbfd73e925d2c8147e1234bf28
2016-09-15 11:42:04 -04:00
Isaac Mungai a8b472cc95 Add misc unit and functional tests
Change-Id: Iaabe1c90a19ea95a8a3ce87a2a2986d00344fe20
2016-09-09 09:42:08 -04:00
Jenkins fcdd97677c Merge "Switching Poppy test to use ostestr (OpenStack Testr)" 2016-09-07 19:14:59 +00:00
Jenkins 12188071bc Merge "Delete old policies when upgrading to HTTPS" 2016-09-06 18:06:50 +00:00
Jenkins 263edba5b3 Merge "Enable skipped test" 2016-09-06 18:06:45 +00:00
Jenkins 78e5cbe917 Merge "cover all service creation logic in provider" 2016-09-06 18:06:39 +00:00
Jenkins 54709c676f Merge "Unit tests for akamai services controller" 2016-09-06 18:05:21 +00:00
Jenkins 665c57750b Merge "Validate TLD during ssl cert creation" 2016-09-06 15:06:25 +00:00
Isaac Mungai 61bd7ef5e1 cover all service creation logic in provider
Completes all coverage for akamai provider service creation
logic.

Change-Id: Ia5987238ea5665870b28902e9f058d35c8ccfdd3
2016-09-01 10:50:01 -04:00
Mohan Madhavan 67a259e33f Reordering the caching rules
Change-Id: Ic2abcf516f340682056a581d74604aa1c8d76430
2016-08-31 16:07:57 -05:00
Isaac Mungai cc6dbf73e8 Enable skipped test
Also fixes domain claim logic in the mock storage layer,
it should now match the same behavior in cassandra storage.

Change-Id: I84490f9adf17f92f593a06303f63e5d69597711c
2016-08-31 15:43:50 -04:00
Isaac Mungai 76b9121c73 Delete old policies when upgrading to HTTPS
When a domain is upgraded from HTTP to HTTPS, queue
a task that checks if the upgraded domain is deployed
before deleting the old HTTP policy.

Change-Id: I92cd0ced90de81226f1c0873fc01bc0e6df31633
2016-08-31 13:20:15 -04:00
Mohan Madhavan 7e0e0e69eb Validate TLD during ssl cert creation
Change-Id: Id77c9cff8075bbc3f421b832d2d71ea217ef952c

Mocked the underlying network calls that validate the domain

Change-Id: I07146c65518b120d114d62ae38066de08b210b2a

Fixing pep8 issue

Change-Id: Ibf5072288c1fbba086a021e07a56c33a4f7b3fbf
2016-08-31 10:54:39 -05:00
Jenkins 8c7538078d Merge "Verify domain before requesting property updates" 2016-08-29 19:58:06 +00:00
Isaac Mungai 876d1e2104 Unit tests for akamai services controller
Change-Id: I69fe1956bccfab08332182c9e73230da43cd03e2
2016-08-29 11:14:07 -04:00
Isaac Mungai 8c94600fad Verify domain before requesting property updates
Verify that the domain still has a certificate and still
exists on a service. If the domain is found on a service,
verify that it still has the proper protocol and cert type.

Change-Id: If786a91f7a9434468ca5293874b1118f96cf94d6
2016-08-25 10:48:35 -04:00
Jenkins 15f2093d22 Merge "Enforce schema for admin endpoints" 2016-08-25 14:02:04 +00:00
Jenkins 052eced94c Merge "Ground work for unit testing transport controller" 2016-08-25 14:00:40 +00:00
Jenkins c6317189ca Merge "Adds a security test to make sure paging links only use https" 2016-08-24 19:22:01 +00:00
tonytan4ever 2140f6def0 Switching Poppy test to use ostestr (OpenStack Testr)
Change-Id: Iec921d21f3325e92462c7a2b40d748db8f85cdff
2016-08-24 11:39:10 -04:00
Isaac Mungai 00f40d9837 fix: adding domain causes loss of log_delivery
When adding a new domain to a service that already has
log delivery, the log delivery access url was lost.

Change-Id: Ie75f52465d6db3d7a9b8013f4973dbc38ceb24f3
2016-08-22 14:35:20 -04:00
Jenkins 9e5b4000fa Merge "DNS updates for http to https+san upgrade" 2016-08-22 17:51:34 +00:00
Henry Yamauchi 1be3a21a61 Adds a security test to make sure paging links only use https
This test ensures that all paging links are over SSL and not
plain HTTP.

Change-Id: I1bf3dde26403ae2d12403b37e0b0c0946652b768
Implements: blueprint paging-links-over-https
2016-08-22 13:44:17 -04:00
Isaac Mungai a465ef323b Ground work for unit testing transport controller
Change-Id: Id0c544b737beb966e70a9ca0694060fd9bd08436
2016-08-19 15:18:14 -04:00
Isaac Mungai ef61e853ae Enforce schema for admin endpoints
Prevents misleading 500 status code when schema is not valid.

Change-Id: Ia2c3e34156182c70f4220164725d44270d682072
2016-08-18 15:01:49 -04:00
Isaac Mungai 6fa8a5959a Mark san mapping items to mark progress
Since we have two types of jobs for san mapping queue
mark completion of the first job in order to filter
items for the second job type. The order of execution
for job types matters.

Change-Id: Ifc9e5a24c9359befc5580007940d3aa7b9437426
2016-08-17 10:33:30 -04:00
Isaac Mungai 23fcb0d5f1 DNS updates for http to https+san upgrade
Change-Id: Ic90934e6e27f2f28449a2df4566aaab400a36186
2016-08-16 09:05:46 -04:00
Isaac Mungai 0a67d6f7cc fix: deserialize details before get cert status
Change-Id: Ia9b897d93b4af05fd131d0d87c36838587f109e9
2016-08-05 13:55:24 -04:00
Isaac Mungai 4452a54061 Mailgun driver unit tests
Change-Id: Ib08627351e3c945c636544fb3d2ddcaad687502f
2016-07-28 17:08:51 -04:00
Isaac Mungai 33b104b11f Enforce san cert hostname limit on cert create
Add settings to cert_info_storage
Add settings admin endpoints
Add limit check log to taskflow and provider layers

Change-Id: Ie0db8f962363590a70bc387ca9387e2fb22829b1
2016-07-21 14:27:15 -04:00
Isaac Mungai 534b928bd4 Fix sans lookup by adding access url suffix
Change-Id: I63eb4ed137b6268930a4afd43e2fd1bafb566b5e
2016-07-18 09:09:06 -04:00
Jenkins 0948c854e4 Merge "Add unit tests for manager default background jobs" 2016-07-14 15:13:48 +00:00
Jenkins e502686c03 Merge "Add tests for rackspace dns services controller" 2016-07-13 20:36:33 +00:00
Jenkins 1921c8b6ed Merge "Trim user inputs as whitespaces causes discrepencies in caching rules" 2016-07-13 19:51:24 +00:00
Jenkins 5813b35e06 Merge "Removed redundant mapping of costa rica in geo zone code mapping" 2016-07-13 19:49:53 +00:00
Mohan Madhavan b9ded0336b Removed redundant mapping of costa rica in geo zone code mapping
Change-Id: I138085353b4e34e9ef78798b18f890aeefebe3af
2016-07-11 10:51:42 -05:00
Mohan Madhavan 0c242518ae Trim user inputs as whitespaces causes discrepencies in caching rules
Change-Id: Ib9d2ab70f435fd996c4a7a4130635d52a0a7c668

Trim whitespaces that is induced by user inputs

Change-Id: Ib9d2ab70f435fd996c4a7a4130635d52a0a7c668
2016-07-11 10:27:52 -05:00
Isaac Mungai 819887663b Add unit tests for manager default background jobs
Change-Id: Ic933cca69ad94b6468b2b99171f79975ee4b8cdc
2016-07-08 16:06:05 -04:00
Isaac Mungai a0a0942846 Add tests for rackspace dns services controller
Change-Id: I579c8f1f0dafd1f6bc51cc653d1bceb9498aadf1
2016-07-06 13:22:50 -04:00
Isaac Mungai c949223c06 Add unit tests for akamai services controller
Change-Id: Ic2d50903593c523259369632e9f8b3a58e53dc6f
2016-07-05 14:07:22 -04:00