Skip to content

Commit

Permalink
Merge last updates (#63)
Browse files Browse the repository at this point in the history
* consistent use of int64 for ids (was int32)

* Release 1 2 mocks (#41)

* #39 - added mocking for "users" library tests, split out integration tests from unit tests - integration tests now tagged and won't run as part of the normal go test (hopefully!)

* phase 1 of adding proper unit tests and moving the integration tests into their own runnable unit
- added httptest library
- reorganised the integration tests into their own files
- wrote unit tests for users

* unforced error with the naming of the function that gets the base url for logz.io mid-refactor - bad programmer

* encapsulated all of the local endpoints functions into the endpoints client

* removed unused imports

* integration tests only run on tag "integration"

* started refactor of alerts tests, added coveralls back in for travis

* added delete alert unit test

* fixed bug in update alert not detecting error state from API, added unit tests for update alert

* started refactor of endpoints, broke out test setup into integration and unit tests

* try out circle ci

* added correct details for circle ci build

* circleci:changed build instructions to be the same as travis...

* removed API_TOKEN as mandatory for unit tests

* removed create alert integration tests from the main build

* circleci:added new workflow for integration testing

* added correct (?) workflow syntax

* circleci:added coveralls

* circleci:added correct coveralls service name

* Renamed all the endpoints tests to have the word Integration in them
Added >80% unit test coverage for endpoints

* - refactored endpoint tests to include proper unit tests (rather than integration tests)
- fixed a couple of issues with non-detection of error states in the endpoints client

* alerts: Allow CreatedAt and CreatedBy to be nullable (#47)

* missing = from travis coveralls command...

* go fmt (#48)

* go fmt

* added scheduled workflow for integration tests

* Switch from dep to Go modules for dependency management (#49)

* Make clients respect baseUrl environment variable (#50)

* Update README.md with instructions on how to contribute (#51)

* CI: Add race detection to test step and use GO111MODULE=on (#52)

* Make Endpoint description nullable (#54)

* added unit test for "user-get"

* Fix endoint types for consistency with the Logz API (#56)

Previously, the endpoint type values were not matching what was returned
from the Logz.io API. This made the consumers of the package to manage
their own constants when using the endpoint types. This commit fixes
that by using the same values returned from the Logz API as the constant
for endpoint type. It also adds a helper function to get the URL for
each endoint type.

* Pass baseUrl when creating clients (#55)

* First pass sub_accounts support  (#57)

* added framework for sub-accounts

* sub_account create

* added
- create sub account
- delete sub account
- list sub accounts
- get sub account
and unit tests (and some API oddities)

* added
- update
and unit test

* changes to deal with new client New func

* alerts: Add missing severity constants "INFO" and "SEVERE"

* Update go.yml

Co-authored-by: Jon Boydell <[email protected]>
Co-authored-by: Peter Nguyen <[email protected]>
Co-authored-by: Peter Nguyen <[email protected]>
Co-authored-by: Isidro López <[email protected]>
Co-authored-by: Isidro López <[email protected]>
  • Loading branch information
6 people authored Jun 28, 2020
1 parent 51ae1e4 commit 6996ff9
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6996ff9

Please sign in to comment.