Oliver Feldmann
810d197665
[ANS] Step implementation ( #3764 )
...
* Add ans implementation
* Remove todo comment
* Rename test function
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
* Better wording
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
* Add reading of response body function
* Use http pkg ReadResponseBody
* Check read error
* Better test case description
* Fix formatting
* Create own package for read response body
* Omit empty nested resource struct
* Separate Resource struct from Event struct
* Merge and unmarshall instead of only unmarshalling
* Improve status code error message
* Remove unchangeable event fields
* Separate event parts
* Change log level setter function
* Restructure ans send test
* Revert exporting readResponseBody function
Instead the code is duplicated in the xsuaa and ans package
* Add check correct ans setup request
* Add set options function for mocking
* Review fixes
* Correct function name
* Use strict unmarshalling
* Validate event
* Move functions
* Add documentation comments
* improve test
* Validate event
* Add logrus hook for ans
* Set defaults on new hook creation
* Fix log level on error
* Don't alter entry log level
* Set severity fatal on 'fatal error' log message
* Ensure that log entries don't affect each other
* Remove unnecessary correlationID
* Use file path instead of event template string
* Improve warning messages
* Add empty log message check
* Allow configuration from file and string
* Add sourceEventId to tags
* Change resourceType to Pipeline
* Use structured config approach
* Use new log level set function
* Check correct setup and return error
* Mock http requests
* Only send log level warning or higher
* Use new function name
* One-liner ifs
* Improve test name
* Fix tests
* Prevent double firing
* Reduce Fire test size
* Add error message to test
* Reduce newANSHook test size
* Further check error
* Rename to defaultEvent in hook struct
* Reduce ifs further
* Fix set error category test
The ansHook Fire test cannot run in parallel, as it would affect the
other tests that use the error category.
* Change function name to SetServiceKey
* Validate event
* Rename to eventTemplate in hook struct
* Move copy to event.go
* Fix function mix
* Remove unnecessary cleanup
* Remove parallel test
The translation fails now and again when parallel is on.
* Remove prefix test
* Remove unused copyEvent function
* Fix ifs
* Add docu comment
* Register ans hook from pkg
* register hook and setup event template seperately
* Exclusively read eventTemplate from environment
* setupEventTemplate tests
* adjust hook levels test
* sync tests- wlill still fail
* migrate TestANSHook_registerANSHook test
* fixes
* Add ans send event step
* Fix tests
* Add groovy wrapper
* Add groovy wrapper test
* Fix function names
* Reduce ifs
* Fix docu
* We always set the timestamp
* Validate event
* Test unknown field in json
* Make test list test
* Set all event fields as separate parameters
* Generate and fix code
* Review fixes
* Format test file
* Format go code
* Fix common steps tests
* Print event to console if verbose
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
Co-authored-by: Roland Stengel <r.stengel@sap.com>
2022-06-21 15:45:07 +02:00
..
2022-04-08 11:29:07 +02:00
2022-04-08 11:29:07 +02:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-12-09 12:54:18 +01:00
2022-04-12 14:39:42 +02:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-12-09 12:54:18 +01:00
2021-12-09 12:54:18 +01:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-11-12 14:33:18 +01:00
2021-11-12 14:33:18 +01:00
2020-12-22 09:30:54 +01:00
2022-04-13 09:03:22 +02:00
2021-12-09 12:54:18 +01:00
2021-12-09 12:54:18 +01:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-11-02 11:00:01 +01:00
2021-11-02 11:00:01 +01:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-12-09 12:54:18 +01:00
2021-12-09 12:54:18 +01:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-12-09 12:54:18 +01:00
2022-04-12 14:39:42 +02:00
2021-02-10 11:33:10 +01:00
2022-04-12 14:39:42 +02:00
2021-10-28 11:01:16 +02:00
2022-06-13 13:13:15 +02:00
2020-12-22 09:30:54 +01:00
2022-04-12 14:39:42 +02:00
2021-10-28 11:01:16 +02:00
2022-04-12 16:00:17 +02:00
2021-12-06 14:43:37 +01:00
2022-02-07 20:34:11 +01:00
2022-02-08 11:21:25 +01:00
2022-05-23 13:47:03 +02:00
2020-12-22 09:30:54 +01:00
2022-03-14 15:12:35 +01:00
2022-02-11 10:16:40 +01:00
2022-02-11 10:16:40 +01:00
2020-12-22 09:30:54 +01:00
2022-03-14 15:12:35 +01:00
2022-02-11 10:16:40 +01:00
2022-02-11 10:16:40 +01:00
2020-12-22 09:30:54 +01:00
2022-03-14 15:12:35 +01:00
2021-01-18 11:14:55 +01:00
2021-08-04 17:31:16 +02:00
2022-05-23 15:15:22 +02:00
2022-05-23 15:15:22 +02:00
2022-05-23 15:15:22 +02:00
2022-05-23 15:15:22 +02:00
2020-12-22 09:30:54 +01:00
2022-03-14 15:12:35 +01:00
2022-02-11 10:16:40 +01:00
2022-02-11 10:16:40 +01:00
2022-02-08 16:14:29 +01:00
2022-03-01 09:23:11 +01:00
2022-03-14 09:49:51 +01:00
2022-03-14 09:49:51 +01:00
2020-12-22 09:30:54 +01:00
2022-04-27 13:30:43 +02:00
2022-04-27 13:30:43 +02:00
2022-04-27 13:30:43 +02:00
2021-09-20 11:14:13 +02:00
2022-01-12 12:02:27 +01:00
2022-04-27 13:30:43 +02:00
2022-04-27 13:30:43 +02:00
2022-06-21 15:45:07 +02:00
2022-06-21 15:45:07 +02:00
2022-06-21 15:45:07 +02:00
2022-06-21 15:45:07 +02:00
2021-11-15 13:48:14 +01:00
2021-11-18 17:50:03 +01:00
2021-11-15 13:48:14 +01:00
2021-11-15 13:48:14 +01:00
2022-03-07 11:03:44 +01:00
2022-03-07 11:03:44 +01:00
2022-03-07 11:03:44 +01:00
2022-03-07 11:03:44 +01:00
2022-03-09 13:07:23 +01:00
2022-03-09 13:07:23 +01:00
2022-03-09 13:07:23 +01:00
2022-03-09 13:07:23 +01:00
2022-05-16 11:52:04 +02:00
2022-05-16 11:52:04 +02:00
2022-05-16 11:52:04 +02:00
2022-05-16 11:52:04 +02:00
2021-11-02 10:30:08 +01:00
2021-11-18 17:50:03 +01:00
2021-11-02 10:30:08 +01:00
2021-11-02 10:30:08 +01:00
2022-06-21 13:08:00 +02:00
2022-06-21 13:08:00 +02:00
2022-06-21 13:08:00 +02:00
2022-06-21 13:08:00 +02:00
2021-12-28 09:31:50 +01:00
2021-12-28 09:31:50 +01:00
2021-12-28 09:31:50 +01:00
2021-12-28 09:31:50 +01:00
2020-12-22 09:30:54 +01:00
2022-03-22 08:31:59 +01:00
2022-05-16 10:02:25 +02:00
2022-06-07 10:24:10 +02:00
2022-05-18 10:37:54 +02:00
2022-05-18 10:37:54 +02:00
2022-05-18 10:37:54 +02:00
2022-05-18 10:37:54 +02:00
2022-06-15 09:41:02 +02:00
2022-06-15 09:41:02 +02:00
2022-06-15 09:41:02 +02:00
2022-06-15 09:41:02 +02:00
2021-04-29 16:50:23 +02:00
2021-12-15 15:07:47 +01:00
2021-04-29 16:50:23 +02:00
2021-04-29 16:50:23 +02:00
2022-03-08 12:12:56 +01:00
2022-03-17 12:09:16 +01:00
2020-12-22 09:30:54 +01:00
2022-04-04 16:12:35 +02:00
2022-06-01 15:48:56 +02:00
2022-06-01 15:48:56 +02:00
2020-12-22 09:30:54 +01:00
2022-05-17 08:53:19 +02:00
2020-09-24 09:39:18 +02:00
2020-09-24 09:39:18 +02:00
2020-12-22 09:30:54 +01:00
2022-05-17 08:53:19 +02:00
2020-09-24 07:41:06 +02:00
2020-09-24 07:41:06 +02:00
2020-12-22 09:30:54 +01:00
2022-05-17 08:53:19 +02:00
2020-09-24 11:30:25 +02:00
2020-09-24 11:30:25 +02:00
2020-12-22 09:30:54 +01:00
2022-05-17 08:53:19 +02:00
2020-08-10 11:08:34 +02:00
2020-09-24 07:41:06 +02:00
2020-12-22 09:30:54 +01:00
2022-05-17 08:53:19 +02:00
2020-09-24 11:30:25 +02:00
2020-09-24 11:30:25 +02:00
2020-12-22 09:30:54 +01:00
2022-05-17 08:53:19 +02:00
2022-02-11 09:36:19 +01:00
2022-02-11 09:36:19 +01:00
2021-08-18 12:10:55 +02:00
2022-06-15 14:17:46 +02:00
2022-06-15 14:17:46 +02:00
2022-06-15 14:17:46 +02:00
2020-09-07 15:22:01 +02:00
2021-03-25 08:18:30 +01:00
2021-11-18 17:50:03 +01:00
2021-03-25 08:18:30 +01:00
2021-03-25 08:18:30 +01:00
2020-12-22 09:30:54 +01:00
2022-05-13 18:56:41 +02:00
2022-03-30 13:58:16 +02:00
2022-05-13 18:56:41 +02:00
2020-12-22 09:30:54 +01:00
2022-03-31 10:52:54 +02:00
2022-05-05 09:58:43 +02:00
2022-03-23 10:02:00 +01:00
2020-12-22 09:30:54 +01:00
2022-05-20 10:24:16 +02:00
2022-06-07 10:24:10 +02:00
2022-06-07 10:24:10 +02:00
2021-06-01 13:15:10 +02:00
2022-02-22 18:32:09 +01:00
2021-10-18 15:01:51 +02:00
2021-10-18 15:01:51 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-09-24 07:41:06 +02:00
2020-09-24 07:41:06 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-09-24 07:41:06 +02:00
2020-09-24 07:41:06 +02:00
2020-12-22 09:30:54 +01:00
2022-01-20 10:46:24 +01:00
2021-05-10 14:05:21 +02:00
2022-01-25 17:18:05 +01:00
2022-02-22 09:58:22 +01:00
2022-04-07 09:45:14 +02:00
2022-02-22 09:58:22 +01:00
2022-02-22 09:58:22 +01:00
2020-12-22 09:30:54 +01:00
2022-04-07 09:45:14 +02:00
2022-02-22 09:58:22 +01:00
2022-02-22 09:58:22 +01:00
2020-12-22 09:30:54 +01:00
2022-04-07 09:45:14 +02:00
2020-09-24 07:41:06 +02:00
2021-05-10 14:05:21 +02:00
2021-12-01 07:46:18 +01:00
2022-03-14 12:33:52 +01:00
2022-04-19 12:34:40 +02:00
2022-04-19 12:34:40 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-09-15 17:50:55 +02:00
2022-02-23 09:30:19 +01:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-12-21 16:21:07 +01:00
2022-02-23 09:30:19 +01:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2022-01-21 10:52:17 +01:00
2022-01-21 10:52:17 +01:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-09-24 07:41:06 +02:00
2022-02-23 09:30:19 +01:00
2020-12-22 09:30:54 +01:00
2022-04-08 11:29:07 +02:00
2022-04-08 11:29:07 +02:00
2022-04-08 11:29:07 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-09-15 17:50:55 +02:00
2022-02-23 09:30:19 +01:00
2020-12-22 09:30:54 +01:00
2022-04-07 16:33:46 +02:00
2022-04-07 16:33:46 +02:00
2022-04-07 16:33:46 +02:00
2021-12-06 16:17:59 +01:00
2022-05-05 15:06:42 +02:00
2022-04-26 09:38:49 +02:00
2022-05-05 15:06:42 +02:00
2021-12-22 15:34:36 +01:00
2022-06-07 10:24:10 +02:00
2022-06-07 10:24:10 +02:00
2022-06-07 10:24:10 +02:00
2020-12-22 09:30:54 +01:00
2021-12-14 13:42:06 +01:00
2020-11-16 15:14:54 +01:00
2021-08-19 11:29:33 +02:00
2022-02-10 10:25:03 +01:00
2022-05-18 08:58:01 +02:00
2022-03-30 08:18:51 +02:00
2022-05-18 08:58:01 +02:00
2021-06-30 11:18:49 +02:00
2021-11-18 17:50:03 +01:00
2021-06-30 11:18:49 +02:00
2021-06-30 11:18:49 +02:00
2022-01-14 16:49:45 +01:00
2021-01-22 15:55:50 +01:00
2021-11-18 17:50:03 +01:00
2021-07-27 09:51:56 +02:00
2021-11-18 09:08:03 +01:00
2021-02-10 17:08:23 +01:00
2021-11-18 17:50:03 +01:00
2021-06-28 10:50:33 +02:00
2021-11-18 09:08:03 +01:00
2021-02-04 10:50:15 +01:00
2021-12-15 15:07:47 +01:00
2021-08-04 16:42:25 +02:00
2021-11-18 09:08:03 +01:00
2021-02-05 10:35:55 +01:00
2021-12-15 15:07:47 +01:00
2021-08-04 16:42:25 +02:00
2021-11-18 09:08:03 +01:00
2021-08-12 09:11:02 +02:00
2021-11-18 17:50:03 +01:00
2021-08-12 09:11:02 +02:00
2021-11-18 09:08:03 +01:00
2021-06-29 14:50:19 +02:00
2021-11-18 17:50:03 +01:00
2021-08-04 16:42:25 +02:00
2021-08-04 16:42:25 +02:00
2021-08-02 16:27:16 +02:00
2021-11-18 17:50:03 +01:00
2021-08-02 16:27:16 +02:00
2021-11-18 09:08:03 +01:00
2021-01-29 09:46:47 +01:00
2021-11-18 17:50:03 +01:00
2021-06-28 10:50:33 +02:00
2021-11-18 09:08:03 +01:00
2021-02-17 09:59:56 +01:00
2021-11-18 17:50:03 +01:00
2021-07-16 16:09:55 +02:00
2021-11-18 09:08:03 +01:00
2021-10-04 13:08:34 +02:00
2022-04-05 12:33:19 +02:00
2022-04-05 12:33:19 +02:00
2022-04-05 12:33:19 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-06-19 20:13:20 +02:00
2020-06-19 20:13:20 +02:00
2020-12-22 09:30:54 +01:00
2022-03-11 09:47:44 +01:00
2022-03-21 09:14:36 +01:00
2022-03-21 09:14:36 +01:00
2020-12-22 09:30:54 +01:00
2022-02-22 18:32:09 +01:00
2021-04-15 13:58:23 +02:00
2021-05-10 17:44:28 +02:00
2020-12-22 09:30:54 +01:00
2022-03-30 13:23:16 +02:00
2022-03-17 17:13:34 +01:00
2022-03-17 17:13:34 +01:00
2020-12-22 09:30:54 +01:00
2022-03-23 10:02:00 +01:00
2022-03-30 13:58:16 +02:00
2022-05-23 11:22:49 +02:00
2020-12-22 09:30:54 +01:00
2022-03-17 08:01:00 +01:00
2021-11-16 15:02:57 +01:00
2022-04-08 13:19:08 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2020-11-10 17:14:55 +01:00
2020-11-10 17:14:55 +01:00
2020-12-22 09:30:54 +01:00
2022-02-22 18:32:09 +01:00
2021-06-22 12:51:47 +02:00
2021-06-22 12:51:47 +02:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2021-05-04 14:43:40 +02:00
2021-05-04 14:43:40 +02:00
2022-06-21 15:45:07 +02:00
2020-12-22 09:30:54 +01:00
2022-03-17 08:01:00 +01:00
2021-12-14 14:43:02 +01:00
2022-04-13 14:50:13 +02:00
2021-03-17 08:08:33 +01:00
2022-02-22 18:32:09 +01:00
2021-10-18 15:01:51 +02:00
2021-03-31 10:09:27 +02:00
2020-12-22 09:30:54 +01:00
2021-11-23 15:37:28 +01:00
2021-03-10 15:06:42 +01:00
2021-03-10 15:06:42 +01:00
2020-12-22 09:30:54 +01:00
2021-11-18 17:50:03 +01:00
2021-10-22 13:01:22 +02:00
2021-10-22 13:01:22 +02:00
2020-12-22 09:30:54 +01:00
2022-03-17 08:01:00 +01:00
2022-02-07 14:46:03 +01:00
2022-03-14 12:33:52 +01:00
2021-02-02 14:36:40 +01:00
2021-11-18 17:50:03 +01:00
2021-05-19 07:57:44 +02:00
2021-07-20 16:38:11 +02:00
2021-09-29 08:31:45 +02:00
2022-06-21 15:45:07 +02:00
2020-12-22 09:30:54 +01:00
2022-03-23 10:02:00 +01:00
2022-03-30 13:58:16 +02:00
2022-05-13 18:56:41 +02:00
2022-03-29 19:01:44 +02:00
2022-04-26 14:15:24 +02:00
2022-04-26 14:15:24 +02:00
2022-04-26 14:15:24 +02:00
2022-01-12 09:17:03 +01:00
2021-11-19 10:05:39 +01:00
2022-06-10 16:10:46 +02:00
2022-06-10 16:10:46 +02:00
2022-06-10 16:10:46 +02:00
2020-12-22 09:30:54 +01:00
2022-02-25 13:09:50 +01:00
2022-02-24 16:37:07 +01:00
2022-02-24 16:37:07 +01:00
2021-03-29 16:22:23 +02:00
2021-12-15 20:12:57 +01:00
2021-11-04 18:08:52 +01:00
2021-11-04 18:08:52 +01:00
2021-05-21 08:54:43 +02:00
2021-12-15 15:07:47 +01:00
2021-05-21 08:54:43 +02:00
2021-05-21 08:54:43 +02:00
2021-05-21 08:54:43 +02:00
2021-12-15 15:07:47 +01:00
2021-05-21 08:54:43 +02:00
2021-05-21 08:54:43 +02:00
2021-01-13 16:14:56 +01:00
2021-12-15 15:07:47 +01:00
2021-07-08 10:09:18 +02:00
2021-07-08 10:09:18 +02:00
2021-06-14 12:36:18 +02:00
2021-12-15 15:07:47 +01:00
2021-07-01 13:11:21 +02:00
2021-07-01 13:11:21 +02:00
2021-02-19 13:07:18 +01:00
2022-04-05 12:33:19 +02:00
2021-05-21 08:54:43 +02:00
2021-05-21 08:54:43 +02:00
2021-01-28 11:31:24 +01:00
2022-02-22 18:32:09 +01:00
2021-02-05 16:04:52 +01:00
2021-05-10 17:44:28 +02:00
2022-03-23 10:02:00 +01:00
2020-12-22 09:30:54 +01:00
2021-12-21 11:52:10 +01:00
2020-11-17 13:49:31 +01:00
2021-12-21 11:52:10 +01:00
2020-06-19 14:39:19 +02:00
2020-06-19 14:39:19 +02:00
2020-12-22 09:30:54 +01:00
2022-03-31 10:52:54 +02:00
2022-03-17 15:32:48 +01:00
2022-05-13 18:56:41 +02:00
2021-06-23 20:20:43 +02:00
2020-12-22 09:30:54 +01:00
2021-12-15 15:07:47 +01:00
2021-09-14 16:14:50 +02:00
2020-09-24 07:41:06 +02:00