Commit Graph

574 Commits

Author SHA1 Message Date
Roberto Abdelkader Martínez Pérez
bc917ff166 Update README.rst 2019-11-19 11:03:42 +01:00
Roberto Abdelkader Martínez Pérez
c82cfd5bc2 Go Report Card badge 2019-11-19 09:30:06 +01:00
Héctor Hurtado
7bca5b8577 New error handling added to module resource in package data. Minor coding improvements. 2019-11-18 19:09:55 +01:00
pancho horrillo
1249b23458 Fix case mismatch in error JSON (adding tag) 2019-11-18 17:44:39 +01:00
Héctor Hurtado
4c7eae8ebb New error handling added to getRequestBody function in data package 2019-11-18 15:01:02 +01:00
Héctor Hurtado
e4b3a4f718 New error handling added to server and decorator module in data package 2019-11-18 14:52:52 +01:00
Héctor Hurtado
edff842c3b New srverrors package added. New error handling added to control package 2019-11-18 14:32:54 +01:00
Roberto Abdelkader Martínez Pérez
2c32daedcb Default value in case there is no header 2019-11-18 10:31:00 +01:00
pancho horrillo
402bbf00d7 Fix style in comment 2019-11-15 21:00:21 +01:00
pancho horrillo
3af5def406 poc: make error_body(reason) return a JSON with extraneous fields
We then ensure that the cucumber steps only test the
presence of the required fields, not just comparing it byte-wise.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-14 17:40:47 +01:00
pancho horrillo
03de51e6ca Fix missing quotes in step
Co-authored-by: César Gallego Rodríguez <cesar.gallego.next@bbva.com>
Co-Authored-By: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-14 17:13:34 +01:00
Héctor Hurtado
ee9bb8df9c New error handling in poc and features 2019-11-14 15:05:19 +01:00
pancho horrillo
9ebc989bc7 poc/Makefile: add 'fix' target (mirroring spec/Makefile) 2019-11-14 17:53:32 +01:00
pancho horrillo
3e2bc44c0b spec/Makefile: on fix target, skip tagged scenarios and features
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-14 17:53:02 +01:00
Héctor Hurtado
e6b779dfbb Specification modified to include changes in error responses 2019-11-14 13:51:16 +01:00
Héctor Hurtado
ec788f68c2 Added documentation comments to the control package 2019-11-14 12:10:00 +01:00
pancho horrillo
f43e47f4f1 Remove leftover script 2019-11-14 11:57:44 +01:00
pancho horrillo
2d5743af84 Add blank line between legal header and package declaration
Otherwise, the legal header is rendered as package documentation.
2019-11-13 18:18:44 +01:00
Roberto Abdelkader Martínez Pérez
19bc0df968 Old poc examples were full of injections due to migration strategy. Will be rewritten in doc. 2019-11-12 13:16:30 +01:00
Roberto Abdelkader Martínez Pérez
049081c8b0 Update topdf 2019-11-12 13:06:31 +01:00
Roberto Abdelkader Martínez Pérez
1566dcf30f Sanitize input 2019-11-12 13:05:25 +01:00
Roberto Abdelkader Martínez Pérez
653fc3eb32 Escape input 2019-11-12 13:04:29 +01:00
pancho horrillo
822e4f85df spec: clarify the order of the execution of the tests
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-11 18:02:07 +01:00
pancho horrillo
6194c6961a Tweak PoC to pass current test suite
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-11 17:47:28 +01:00
pancho horrillo
e4606ab84a Drop compound error scenario
In order to allow different Kapow! implementations (Go, Python, ...)
compound errors will be left as implementation-dependent.
The spec will only test for simple error conditions.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-11 17:47:28 +01:00
pancho horrillo
9eb186bd0f Revert "Closes: #66"
This reverts commit c3be29255a.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-11-11 17:47:20 +01:00
Roberto Abdelkader Martínez Pérez
19f7cb0171 Revert "Removed references to reason phrase from spec". Closes #66
This reverts commit d9e072f89a.
2019-11-11 16:39:21 +01:00
pancho horrillo
fe303d4d02 README.rst: Fix heading 2019-11-03 23:39:21 +01:00
pancho horrillo
28f0ae03d5 doc: misc fixes and tweaks
* doc/README.md:
  - Fix a couple of typos.
  - Fix spacing and shell quote style (for consistency with other markdown docs
  already in the tree).
  - Fix indent with spaces not tabs in heredocs with <<- style¹.
  - Fix shell example partially inserted twice.

* doc/*.pow:
  - Fix indent with spaces not tabs in heredocs with <<- style¹.

¹: See the last paragraph in
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Here-Documents

"If the redirection operator is ‘<<-’, then all leading tab characters
are stripped from input lines and the line containing delimiter. This allows
here-documents within shell scripts to be indented in a natural fashion."
2019-10-31 18:49:48 +01:00
pancho horrillo
0639b3af50 spec: add missing empty line 2019-10-31 18:45:48 +01:00
Héctor Hurtado
69cbcd7fda Fix code highlights in README.rst 2019-10-31 15:37:32 +01:00
Héctor Hurtado
31f71c2ed7 Fix code highlights in README.rst 2019-10-31 15:30:02 +01:00
Héctor Hurtado
7c48eb730d CLOSES: #77 2019-10-31 15:22:56 +01:00
Héctor Hurtado
84a106db19 Target for building a Kapow! container image and Dockerfile 2019-10-31 15:22:56 +01:00
Héctor Hurtado
19c4e8d482 Changed user server bind address to 0.0.0.0 to allow listen on a container 2019-10-31 15:22:56 +01:00
pancho horrillo
d5e9ab0f07 spec: add missing space after full-stop.
Mostly to trigger a Circle CI rebuild.
2019-10-30 17:58:05 +01:00
pancho horrillo
e413ce4805 Drop now-spurious env var setting in call to behave at Circle CI config 2019-10-30 17:43:14 +01:00
pancho horrillo
c3180e3e7d spec: fix incorrect default value for KAPOW_DATAAPI_URL
This caused ghost failures when running the tests.
2019-10-30 17:40:40 +01:00
pancho horrillo
275db5ef91 spec: add entry on KAPOW_USER_URL env var 2019-10-30 17:40:40 +01:00
pancho horrillo
604a6d7d4d spec: add entry on KAPOW_BOOT_TIMEOUT env var 2019-10-30 17:40:33 +01:00
Héctor Hurtado
0021f754fd Changed get resource item and handler ID not found scenarios.
This change is to comply with Go's implementation.

Co-authored-by: pancho horrillo <pedrofelipe.horrillo.@bbva.com>
2019-10-29 15:50:43 +01:00
pancho horrillo
712d26db89 Tweak Circle CI config not to run skipped tests
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
2019-10-29 15:18:58 +01:00
pancho horrillo
3dd038e0aa Revert nmap examples, they need more work
Closes: #65
2019-10-28 16:46:02 +01:00
Héctor Hurtado
fb50e24836 CLOSES: #71 2019-10-28 11:42:52 +01:00
pancho horrillo
00770650a8 Rename nmap example to nmap-web
* Drop unused CSS section
2019-10-25 19:21:04 +02:00
pancho horrillo
c29a17d7e4 Fix handling of arguments
Closes: #67
2019-10-25 18:54:52 +02:00
Héctor Hurtado
9cb9e9335d Closes: #68 2019-10-25 11:50:14 +02:00
Héctor Hurtado
d9e072f89a Removed references to reason phrase from spec. Closes #66 2019-10-25 10:15:21 +02:00
Héctor Hurtado
c3be29255a Closes: #66 2019-10-25 09:52:12 +02:00
Héctor Hurtado
26a7b690b7 Verify content type on getRoute method 2019-10-25 09:02:36 +02:00