b1ackd0t
5e060d5620
NOISSUE - Add More Linters ( #1924 )
...
* Fix linting errors
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
* feat(linters): add ineffassign linter
This commit adds the `ineffassign` linter to the project's `.golangci.yml` configuration file. The `ineffassign` linter helps identify and flag assignments to variables that are never used, helping to improve code quality and maintainability.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
* Add extra linters
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
* feat(golangci): Add header check
- Added goheader check to ensure all files have license headers
- Added build tags for "nats" in the .golangci.yml file to include the necessary dependencies for the "nats" package during the build process.
- Also, increased the maximum number of issues per linter and the maximum number of same issues reported by the linter to improve the code quality analysis.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
* feat(.golangci.yml): Add new linters
Add the following new linters to the .golangci.yml configuration file:
- asasalint
- asciicheck
- bidichk
- contextcheck
- decorder
- dogsled
- errchkjson
- errname
- execinquery
- exportloopref
- ginkgolinter
- gocheckcompilerdirectives
These linters will help improve code quality and catch potential issues during the code review process.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
2023-10-16 11:43:33 +02:00
Washington Kigani Kamadi
e2992cbede
NOISSUE - Change import name aliases ( #1868 )
...
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Change import aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Fix aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Fix error
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix import alias
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix import
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Add linter to CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix merge issues
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Add gofumpt
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove multiple gofupmt in CI
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unnecessary changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
---------
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
2023-08-11 11:30:25 +02:00
Sammy Kerata Oina
7758f42f6b
NOISSUE - Improve graceful shutdown and code quality ( #1821 )
...
* remove single case switch
remove duplicate cases
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove single case switch \n format comments
Signed-off-by: SammyOina <sammyoina@gmail.com>
* graceful exit on main func
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove fatal from imported packages
Signed-off-by: SammyOina <sammyoina@gmail.com>
* reuse exit function
Signed-off-by: SammyOina <sammyoina@gmail.com>
* return nill for empty configs
Signed-off-by: SammyOina <sammyoina@gmail.com>
* return nil for config file not found
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-07-28 03:01:27 +02:00
Dušan Borovčanin
55e09c1921
MF-1506 - Group-based Access Control ( #1716 )
...
* Move Things and Users to Clients
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Update Add and Delete Policies (#1792 )
* Remove Policy Action Ranks
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Rebase Issues
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix CI Test Errors
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Adding Check on Subject For Clients
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove Check Client Exists
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Check When Sharing Clients
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Only Add User to Group When Sharing Things
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove clientType
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Minor Fix on ShareClient and Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Policies Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Clean Up Things Authorization
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests on RetrieveAll
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Test ShareThing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Merge Conflicts
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove Adding Policies. Only Use Ownership
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Check If Subject is same as Object
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Move Back To Union As Sometimes Policy is Empty and Fails to Evaluate on Ownership
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Entity Type For Failing Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix BUG in policy evaluation
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Comments Regarding checkAdmin
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests On Rebase
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Combine Authorize For Things and Users
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests On Rebase
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Error on Things SVC `unsupported protocol scheme`
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Bug on Things Authorization Cache (#1810 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use Password instead of username in MQTT handler
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Simplify MQTT authorization
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix MQTT tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add More Functions to SDK (#1811 )
* Add More Functions to SDK
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Examples to GoDoc
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Update Unassign Interface
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Pass Subject as ID and Not Token on List Channels By Thing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Bootstrap Errors For Element Check
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add empty line Before Return
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Reorder URLS in things mux
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Listing Things Policies
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Share Thing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Examples to CLI Docs
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Update Identity To Update Another User
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Identify an Update Policies on Things
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Update Things Policies
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix GoDocs on Disconnect
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Change Authorize To Use AccessRequest
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* For Evaluate Policy Use AccessRequest (#1814 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add SDK Tests (#1812 )
* Add Things Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Channel Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Certs Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Consumer Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Enrich Group Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests For Health
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests For Tokens
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename SDK for Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Policies Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Linter
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Make Variable Defination Inline
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Make Cache Key Duration Configurable (#1815 )
* Make Cache Key Duration Configurable
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename ENV Var
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Update GoDocs (#1816 )
* Add GoDocs
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Missing GoDoc Files
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Enable godot
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add License Information
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add Call Home Client to Mainflux services (#1751 )
* Move Things and Users to Clients
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
* collect and send data package
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create telemetry migrations
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add telemetry endpoints
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add transport
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove homing server
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home to adapters
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add last seen
Signed-off-by: SammyOina <sammyoina@gmail.com>
* rename logger
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove homing client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use unmerged repo
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use renamed module
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* edit documentation
Signed-off-by: SammyOina <sammyoina@gmail.com>
* align table
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use alias for call home client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update callhome
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home pkg
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix modules
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mf build version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mf build version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore default
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home for users and things
Signed-off-by: SammyOina <sammyoina@gmail.com>
* enable opting on call home
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove full stops
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update callhome client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home to all services
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore sdk tests
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove unnecessary changes
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore health_test.go
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Co-authored-by: Sammy Kerata Oina <44265300+SammyOina@users.noreply.github.com>
2023-06-14 12:40:37 +02:00
Aryan Godara
54c7518316
MF-1718 - Use static code analysis in CI ( #1729 )
...
* things, twins, and logger lint fixed
Signed-off-by: aryan <aryangodara03@gmail.com>
* all services updated, auth jwt not working, ineffectual assignment issue
Signed-off-by: aryan <aryangodara03@gmail.com>
* handle error from grpc server in endpointtest
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, auth/jwt needs to be resolved
Signed-off-by: aryan <aryangodara03@gmail.com>
* revert back to jwt v4 temporarily
Signed-off-by: aryan <aryangodara03@gmail.com>
* updated jwt tokenizer
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve EOF error for httptest requests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix auth jwt, update to registeredclaims
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix ineffective assignment, auth/api/grpc endpoint failing
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, remove later
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc server setup
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve golangci tests, remove debug statements
Signed-off-by: aryan <aryangodara03@gmail.com>
* update golangci version and modify linters used
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix failing tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc server for setup tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix logging and errors inlined
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix remarks, update grpc setup_test
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix setup_test
Signed-off-by: aryan <aryangodara03@gmail.com>
* update setup_test grpc
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix data race
Signed-off-by: aryan <aryangodara03@gmail.com>
* update setup_test grpc
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc setup down to single simple function
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix linting issues
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve pr comments
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix tests, handle returned errors, go mod tidy vendor
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix errors from new linters
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: aryan <aryangodara03@gmail.com>
2023-04-22 17:14:35 +02:00
Dušan Borovčanin
c0c72491ff
NOISSUE - Logger Fatal method returns no value ( #1728 )
...
* Make Fatal return no value
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Fatal test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename logger imports
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace Fatal with Fatalf
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor Logger tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix expected and actual order inversion
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2023-02-22 20:50:51 +01:00
b1ackd0t
8c21181f17
NOISSUE - Update Provision service ( #1658 )
...
* Add config urls
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add docs for provision
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update provision docs on mqtt bench
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Run tools relative to root folder
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-10-21 17:01:55 +02:00
Dušan Borovčanin
6c59184d3f
NOISSUE - Fix CI script ( #1613 )
...
* Fix CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter errors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add timeout to linter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-06-09 21:57:37 +02:00
Ivan Milošević
cddfdf4038
NOISSUE - Use github action for showing OpenAPI spec with Swagger UI ( #1427 )
...
* init swaggerui action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove dep
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix filename
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add checkout master
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* try diffrent action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path for search
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* put almost all openapi spec to one folder
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix pattern
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* try servers changing
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* test k8s
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove servers
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use blokovi action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add cname
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Parameters ready for PR to upstream
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Fix errors in Auth openapi spec
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove white line
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix link in README
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change docs and api links in readme files
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-06-23 13:31:46 +02:00
Dušan Borovčanin
516c02bebe
MF-1378 - Update dependencies ( #1379 )
...
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix compose files and configs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Upgrade image versions
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Postgres version
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update test dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix fkey error handling
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-05-20 20:53:56 +02:00
Mirko Teodorovic
5e35cbe06b
NOISSUE - Fix docs ( #952 )
...
* fix missing timeout
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* upd tools readme.md
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* upd tools readme.md
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add mising Referer header required for pass reset request
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-11-16 16:20:29 +01:00
Dušan Borovčanin
23b421bdc5
Fix provision tool connect error handling ( #879 )
...
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-10-08 19:31:13 +02:00
Dušan Borovčanin
873ef4c96f
NOISSUE - Simplify MQTT benchmarking tool ( #852 )
...
* Fix user creation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract client creation to separate method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove message generating in separate goroutine
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove runSub and runPub methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Refactor benchmark code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update client message handling
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix microseconds typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Simplify client
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Don't take zero-messages clients int count
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix token timeout condition
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add timeout for publisher
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Paho lib version
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Temporary drop SenML and subscribe support
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Calculate payload size
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove templates
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-09-25 19:02:29 +02:00
Drasko DRASKOVIC
5ef6aa84de
NOISSUE - Clean NginX files, move .gitignores to dirs ( #853 )
...
* Remove nginx entrypoint trash, move .gitignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add node_modules to Aedes .gitignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Move docker .gitignore to nginx
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-16 11:47:34 +02:00
Mirko Teodorovic
97327ab05f
NOISSUE - Add measuring time from pub to sub ( #839 )
...
* refactor code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert some names
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move meausuring time start
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add random payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes for config.toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add random payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove printfs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add logging
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor sync
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor sync
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor results
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change sync and result collecting for sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-06 14:59:35 +02:00
Mirko Teodorovic
640dfb7e19
NOISSUE - update mqtt prov tool and some refactor ( #831 )
...
* refactor code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add some comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert some names
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move meausuring time start
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes to .gitignore
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-05 13:39:58 +02:00
Drasko DRASKOVIC
ec4b46b669
NOISSUE - Improve VerneMQ plugin code, add configurable gRPC pool size ( #836 )
...
* Enable gRPC support
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add poolboy process pool
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add Verne docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Improve code, add settings for pool size
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-03 01:05:36 +02:00
Drasko DRASKOVIC
655f421ca9
NOISSUE - Fix proto files in VerneMQ ( #834 )
...
* Add socket pool and fix pattern matching
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix hackney req
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Change docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Correct protobuf and add MQTT loback ignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Bring back docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-02 21:20:18 +02:00
Drasko DRASKOVIC
f090573567
NOISSUE - Improve MQTT benchmarking tools ( #828 )
...
* Refactor mqtt-bench
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Refactor mqtt-bench and provision tools
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Improve README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Remove provision generated toml file
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Update README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Replace `tcp` with `tcps` for mtls
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-08-30 14:09:12 +02:00
Mirko Teodorovic
bfd12304ac
NOISSUE - update mqtt benchmark ( #824 )
...
* update gitignore
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix dates for cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* print to stdout for creating result file from script
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add script for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add time measeuring
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* separate test in one file each
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move config.toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add connection check, and prevent blocking of publisher when connection fails
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-27 14:21:39 +02:00
Mirko Teodorovic
19834dfc51
MF-295 add mqtt benchmark tool ( #817 )
...
* adding mqtt benchmark tool
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mqtt benchmark tool - vendoring
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add mtls support
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* tool for channel provision, reorganize code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding config toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* tool for channel provision, adding ssl cert gen
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add config toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add readme for provision
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some printing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add test configs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some dead code, and sort comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace statistics lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace statistics lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cobra and viper
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove statistic lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change type visibility
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove empty line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update deps
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, adding comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-13 12:56:31 +02:00