Commit Graph

39 Commits

Author SHA1 Message Date
Darin Randal
fe854e1b21 Update zone tests to reflect correctly named jumpstart option 2018-01-23 10:01:51 -05:00
Jorgen Phillips
bd83c6d48a Fix test 2017-12-24 12:48:22 -06:00
Junade
d00a1d3f44 Merge pull request #38 from kleisauke/cleanup
Cleanup / fixes
2017-11-25 11:49:35 +08:00
Kleis Auke Wolthuizen
c8e85d2582 Add firewall access rules endpoint (#37)
* Add firewall access rules endpoint

* Configuration is an object

Maybe this needs to be defined in a seperate namespace (e.g. Cloudflare\API\Configuration) because it's no longer an array.

* Incorporate review
2017-11-25 11:45:18 +08:00
Kleis Auke Wolthuizen
dfa299c895 Remove unused imports 2017-11-21 17:54:30 +01:00
Kleis Auke Wolthuizen
e1864a6824 Drop unneeded arguments 2017-11-21 17:52:59 +01:00
Kleis Auke Wolthuizen
c9d21466aa assertCount should be used instead 2017-11-21 17:50:28 +01:00
Kleis Auke Wolthuizen
b15b4ecc51 Class autoloading correctness 2017-11-21 17:49:29 +01:00
Kleis Auke Wolthuizen
a09478eb2f Return type doesn't match 2017-11-21 17:47:22 +01:00
Kleis Auke Wolthuizen
ee4a42ea06 Replace alias functions with origin functions 2017-11-21 17:41:21 +01:00
Kleis Auke Wolthuizen
a4224265d8 Switch from stdClass to object casting 2017-11-21 17:35:01 +01:00
Kleis Auke Wolthuizen
0920fc48b2 Remove unnecessary double quotes 2017-11-21 17:25:41 +01:00
Tyler Vigario
3453e44158 Added changeDevelopmentMode & getAnalyticsDashboard to Zones (#32)
* Added toggleDevelopmentMode to Zones

* Improved success checking
Added PHPUnit test (I think?)

* Fixed success checking

* Fixed test

* Ran PHP CS Fixer

* Added getAnalyticsDashboard to Zones
Renamed toggleDevelopmentMode to changeDevelopmentMode to be uniform

* Fixed test (hopefully)

* Trying it a different way

* Another attempt

* Lol I guess we are just supressing errors for this one?
2017-11-08 21:26:32 +01:00
Junade Ali
30fc22aa5b Add Web Application Firewall and Railgun. 2017-10-23 14:17:09 -07:00
Junade Ali
ca9e5bbc28 Enabled PHPMD for src and tests 2017-10-13 15:18:08 +01:00
Linus Metzler
70ee68f755 fix the test 2017-10-05 14:44:09 +02:00
Junade Ali
d49028a31e Updated DNSTest style. 2017-10-03 18:09:07 +01:00
Anthony Sterling
db62f1db8a Added test coverage for DNS Update
I've added a test to cover the updating of a DNS record to help debug Issue #19
2017-10-02 08:48:43 +01:00
Anthony Sterling
fbb5aac074 Moved JSON API Responses to test fixtures
This PR moves the JSON API responses used in the tests to fixture files
within the tests folder. This allows reuse and the ability to lint/validate
these fixtures if required - although not covered in this PR.

I've added TestCase::getPsr7StreamForFixture and TestCase::getPsr7JsonResponseForFixture
to reduce code duplication and enable some assertions around the expected fixures/responses.

Thanks,
2017-09-24 15:24:33 +01:00
Anthony Sterling
2faff272df Applied PSR2 formatting to existing files 2017-09-23 18:50:51 +01:00
Junade
b91dd5e684 Merge pull request #5 from typhonius/add-query-to-get
Adds the query parameter to the guzzle call for GET requests.
2017-09-21 23:16:50 +01:00
Adam Malone
7d838d7f5f Adds the query parameter to the guzzle call for GET requests. 2017-09-21 11:45:21 +10:00
Junade Ali
635a299b43 COM-45 :: Update PageRule tests. 2017-09-20 14:55:44 +01:00
Junade Ali
121209e4ca COM-45 :: Adjust Guzzle Tests 2017-09-20 13:25:00 +01:00
Junade
a4ddb61d2a Merge pull request #7 from cloudflare/COM-40
COM-40 :: Added Page Rules endpoint.
2017-09-20 11:54:57 +01:00
Junade Ali
3166645a0c COM-40 :: Added Page Rules endpoint. 2017-09-20 11:52:33 +01:00
Junade
1658f4abcc Merge pull request #6 from cloudflare/COM-40
COM-40 :: Add ZoneLockdown and UA Rules
2017-09-19 16:10:19 +01:00
Junade Ali
1e8c8d6019 COM-40 :: Add ZoneLockdown and UA Rules 2017-09-19 16:04:35 +01:00
Junade
1b5d0273ed Merge pull request #4 from cloudflare/COM-40
COM-40 :: Added None Auth class, IPs endpoint and associated tests
2017-09-05 13:13:03 +01:00
Junade Ali
7d0c0c86dc COM-40 :: General refactoring/fixes. 2017-09-04 21:14:34 +01:00
Junade Ali
53cbd9d578 Finalised IPs endpoint 2017-09-04 20:33:22 +01:00
Junade Ali
4876787118 COM-40 :: Added None Auth class, IPs endpoint and associated tests 2017-09-04 20:22:23 +01:00
Hans
696a36d682 Change post unit test to json. 2017-08-30 17:02:09 +08:00
Junade Ali
3b028041a6 Additional DNS API coverage, PHPUnit whitelist and license added. 2017-08-22 16:28:05 +01:00
Junade Ali
6176cd81a3 Added extra endpoints. 2017-06-09 16:18:24 +01:00
Junade Ali
7ab10aaeaa Zones endpoints. 2017-06-07 17:01:50 +01:00
Junade Ali
bf8716e0b8 Finished user endpoints, started zone ones. 2017-06-06 17:05:21 +01:00
Junade Ali
5fcb00153b Finished Guzzle implementation, started work on Endpoints. 2017-02-01 18:07:33 +00:00
Junade Ali
a49c655e77 Initial commit, WIP. 2017-01-13 23:52:27 +00:00