Commit Graph

550 Commits

Author SHA1 Message Date
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
pancho horrillo
56876335b7 Add yet another Nmap example, ideal to be consumed by browser
I intend to replace the nmap-streaming.pow example with this one.
I've realized that nmap-streaming.pow is not actually a streaming example,
since Nmap won't write its output(s) until scan is finished, and hence, kapow
will serve them in one shot.

Check it out, @nilp0inter, @cr0hn.
2019-10-25 08:14:38 +02:00
Héctor Hurtado
a54c6f24a1 Added getRoute to control api 2019-10-24 17:52:03 +02:00
pancho horrillo
2fc18b76e3 poc/examples/nmap-{streaming,callback}.pow: minor cleanup
* Update comments.
* Add Content-Type: text/xml header (nmap-streaming.pow) only.
* Wrap the Nmap output in XML comment delimiters, *after* the XML header.
* Write to /response/body (preferred) instead of /response/stream (legacy).
* Use suffix .xml for temp files.
* Move possibly noise-generating calls outside of the block
  that is sent to the /request/body.
2019-10-24 17:05:54 +02:00
pancho horrillo
b0c16ca684 Validate url_pattern format in control API append operation
Closes: #38

Co-authored-by: César Gallego Rodríguez <cesar.gallego.next@bbva.com>
2019-10-24 14:10:58 +02:00
Héctor Hurtado
84a71815e4 FIXES: #44 2019-10-24 10:44:57 +02:00
pancho horrillo
d2c3138036 Give nmap examples some lovin'.
* Add legal headers.
* Add default values for params and forms.
* Cleanup code a bit.
* Wrap nmap output in XML comments; not legal, but perhaps better than the alternative.
2019-10-24 07:27:20 +02:00
cr0hn
73308cebeb Add - 2 new examples using nmap (#61)
add - two examples using nmap
2019-10-23 18:56:01 +02:00
pancho horrillo
52ae3375a4 Drop stale TODO comment
Close #42
2019-10-23 18:52:20 +02:00
pancho horrillo
ae3bd76434 Leverage ioutil.ReadAll() and ioutil.ReadFile() to simplify logic
Related to: #46
2019-10-23 18:01:58 +02:00
pancho horrillo
7674725658 Drop TODO line of solved issue
Related to #46
2019-10-23 17:59:37 +02:00
Héctor Hurtado
f4b9a96a06 Added note to spec to state cookie name case sensitivity: FIXES: #43 2019-10-23 16:40:04 +02:00
Héctor Hurtado
90449773e4 Added legal header to all features and step definitions files 2019-10-23 13:45:54 +02:00
Héctor Hurtado
723e4787b3 Added legal header to all Go source files 2019-10-23 13:35:01 +02:00
César Gallego Rodríguez
aa6d59fa56 Fix for - and file adding a route. Move null routes to their own issue.
Closes: #46
2019-10-23 13:20:31 +02:00
pancho horrillo
034a5ab677 Fix typo in comment
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-22 16:29:54 +02:00
Roberto Abdelkader Martínez Pérez
be6a2efcc4 Wait less time between retries
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 13:23:49 +02:00
Roberto Abdelkader Martínez Pérez
d465d10b49 Add missing pattern in data server resource endpoints
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 13:16:06 +02:00
Roberto Abdelkader Martínez Pérez
fe894628d7 Change Data API bind address for spec tests 2019-10-22 12:40:00 +02:00
Roberto Abdelkader Martínez Pérez
0762728ef5 Remove unused dependency 2019-10-22 12:24:10 +02:00
Roberto Abdelkader Martínez Pérez
28a0be1d87 Allow kapow server to run without .pow file and non-interactive
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com>
2019-10-22 11:56:18 +02:00
Roberto Abdelkader Martínez Pérez
fa394ce997 Call server.StartServer() from cmd
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 10:23:12 +02:00
Roberto Abdelkader Martínez Pérez
44a9471a57 Implement server.StartServer() to run all three servers
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 10:22:47 +02:00
Roberto Abdelkader Martínez Pérez
8994b8da8c Implement Run function for data server.
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 10:22:10 +02:00
Roberto Abdelkader Martínez Pérez
6a05b31320 Implement configRouter
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 09:48:58 +02:00