Commit Graph

26 Commits

Author SHA1 Message Date
mtakaki
5679bdaa52 83 (#84)
* #83 - Fixing the bug that was preventing the status update

* #83 - Refactoring unit tests for configuration to ensure we catch more cases
2020-02-10 23:51:02 -08:00
mtakaki
df2d094dc6 Fixing push status that has been broken since moving to a client (#80)
* Fixing push status that has been broken since moving to a client

* Adding unit test to cover the bug
2020-01-28 01:42:49 -08:00
mtakaki
5be0217c00 #10 - Creating auxiliary client class to generate configuration class (#78)
* #10 - Creating auxiliary client class to generate configuration class based on cachet's component list.

* Updating the python version in codacy to reduce false positives

* Moving some of the cachet operations to the client class to clean up the configuration class and making better constants

* Refactoring status to have proper classes and adding more tests. Refactoring the requests tests to use requests-mock.

* Removing unused imports from test_scheduler

* Adding more tests and the ability to run the client from command line

* Updating README and client arg parsing

* Fixing broken unit tests
2020-01-18 13:55:07 -08:00
mtakaki
bcafbd64f7 21 2 (#77)
* 21 - Improving exception when an invalid type is used in the config

* Bumping the version
2020-01-06 07:40:11 -08:00
mtakaki
a13a42d51c Multithreading #66 (#76)
* feat(multihreading): each url has it's own thread

* Fixing broken unit tests

* Improving readability when there are multiple URLs registerd and creating new action to upload metrics

* Improving error message when there's no file found

* Bumping the version

Co-authored-by: Alex Berenshtein <aberenshtein@yotpo.com>
2020-01-05 10:25:06 -08:00
Mitsuo Takaki
e132f8660b #72 - Adding the ability to control incident status 2019-10-25 08:10:12 -07:00
Mitsuo Takaki
9e5d42f8b8 Fixing broken build, due to updates to the libraries 2019-10-24 21:31:04 -07:00
mazhead
3af53ce9b6 Add client header option to requests (#61)
* Add header option

* Add header option

* Add unit test for headers

* Add client header

* Remove environ for HEADER

environ does not support dictionaries, so HEADER can't be passed.
2019-03-31 01:18:48 -07:00
Mitsuo Takaki
eae51967c4 Fixing the broken test 2019-02-24 22:01:54 -08:00
mtakaki
10e0141454 Upgrading to python3 (#60)
* Migrating to python 3.7.2, but docker image is not working properly.

Need to continue investigating why it's not properly running.

* Trying to fix the build and fixing logging in the scheduler initialization.

* Trying to fix the build

* Collecting test results

* Fixing the dockerfile

* Updating the development dependencies
2019-02-22 02:17:13 -08:00
Mitsuo Takaki
d3c14e6491 Addressing codacy issues 2018-03-18 17:44:01 -07:00
Mitsuo Takaki
1899e95642 #38 - Adding support to milliseconds and different units for latency and changing http status to a range, instead of a single value. 2018-03-18 16:58:02 -07:00
Mitsuo Takaki
9e66736f48 Fixing the build and upgrading pytest and pytest-cov to latest 2018-03-18 14:43:41 -07:00
Mitsuo Takaki
d63420ac01 Documenting better the code and small tweaks to the unit tests. 2016-05-20 02:23:39 -07:00
Mitsuo Takaki
a3a91edadc Adding support to overriding some of the configuration through environment variables. 2016-05-19 23:41:20 -07:00
Mitsuo Takaki
a83abfd1d3 Fixing failing test. Using @mock.path decorator, instead of overriding the sys.modules. 2016-05-19 08:26:18 -07:00
Mitsuo Takaki
ca358eab2b Verifying component status when we initialize to set the initial state. Tests are failing, but checking it in nonetheless. 2016-05-18 09:34:58 -07:00
Mitsuo Takaki
0f53ff8678 Initial attempt at creating incidents when an URL becomes unhealthy. Missing to actually call it from the scheduler. #3 2016-05-16 01:31:53 -07:00
Mitsuo Takaki
f563526a2a Creating push_metrics() method to start pushing the URL latency, if it the metric id is configured. 2016-05-03 02:28:58 -07:00
Mitsuo Takaki
0ea3891a7d Adding REGEX to sample configuration and updating the unit tests. 2016-05-02 01:09:56 -07:00
Mitsuo Takaki
072aed1024 Adding better documentation and more tests, but still missing tests for Scheduler 2016-05-01 00:41:33 -07:00
Mitsuo Takaki
f254bddd0f Fixing log format and extracting main logic to a separate class. 2016-04-30 13:39:02 -07:00
Mitsuo Takaki
c7a28edac2 Adding Agent unit test and asserting calls to logging. 2016-04-29 23:49:51 -07:00
Mitsuo Takaki
a6cf64e2b4 Wrapping up Configuration unit tests 2016-04-29 19:07:56 -07:00
Mitsuo Takaki
a24c69cfd5 Creating more tests for Configuration 2016-04-29 15:36:28 -07:00
Mitsuo Takaki
c5520450ba Adding new expectation (Regex) and creating unit tests. 2016-04-29 08:48:53 -07:00