Skip to content

Commit

Permalink
Release 1.0.34 (#514)
Browse files Browse the repository at this point in the history
* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* 1.0.31 Release

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* 1.0.31 Release (#448)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* Release merge (#449)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* 1.0.31 Release (#448)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* Epankou/bug network containers not removed ewc 424 (#450)

* EWC-418 added registry email validation

* EWC-421 strace feature bug

* EWC-421 strace feature bug fix

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* bug(fix) microservice removal: port mapping removal (EWC-424)

* bug(fix) microservice removal: switched to const (EWC-424)

* test(core) unit tests for agent service progress (EWC-383) (#452)

* fix(cli): fix bug with generating access token for user in cli (#453)

Closes EWC-443

* fix(cli): fix bug with generating access token for user in cli (EWC-453)

* test(core) unit tests for agent-service (EWC-383) (#455)

* bug(fix) fixed deprecated warning about Buffer constructor (EWC-422)

* test(core) unit tests for catalog service (EWC-383) (#458)

* Maksimchepelev/bugs (#457)

* fix(cli): fix validation on delete connector

Closes EWC-447

* fix(cli): fix data types and descriptions in help

'... settings JSON file' -> 'Path to ... settings JSON file'
flowId and
catalogId type 'string' -> 'number' in help

Closes EWC-445 EWC-446

* Maksimchepelev/bugs (#459)

* fix(iofog): add validation for version command

compare version command with isReadyToUpgrade and isReadyToRollback
fields

Closes EWC-448

* fix(code): fix logger is not defined error in app-helper

Closes EWC-397

* test(core) unit tests for change-tracking service (EWC-383) (#460)

* version 1.0.32 (#461)

* Release 1.0.32 (#462)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* 1.0.31 Release (#448)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

…
  • Loading branch information
Railag authored Jan 25, 2019
1 parent 0056201 commit 43ff263
Show file tree
Hide file tree
Showing 56 changed files with 1,725 additions and 642 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@ stages:
if: type = pull_request
- name: dev_deploy
if: branch = develop AND type = push
- name: prod_deploy
if: branch = release AND type = push
- name: pre_release
if: branch =~ /^release-.*$/ AND type = push
- name: release
if: branch = master and type = push

jobs:
include:
- stage: build
script:
- npm test
- NODE_ENV=production node /home/travis/build/ioFog/Controller/src/main.js start
- npm run postman_test
- stage: dev_deploy
before_install:
- sudo apt-get install sshpass
script:
- sshpass -p $DEV_MACHINE_PASSWORD ssh -o StrictHostKeyChecking=no $DEV_MACHINE_USERNAME@$DEV_MACHINE_IP "cd /FogController; NODE_ENV=production node src/main.js stop; git pull; npm i; NODE_ENV=production node src/main.js start"
- stage: prod_deploy
- sshpass -p $DEV_MACHINE_PASSWORD ssh -o StrictHostKeyChecking=no $DEV_MACHINE_USERNAME@$DEV_MACHINE_IP "cd /FogController; NODE_ENV=production node src/main.js stop; git pull; npm i; npm test; NODE_ENV=production node src/main.js start; npm run postman_test"
- stage: pre_release
before_install:
- sudo apt-get install sshpass
script:
- sshpass -p $PROD_MACHINE_PASSWORD ssh -o StrictHostKeyChecking=no $PROD_MACHINE_USERNAME@$PROD_MACHINE_IP "cd /Controller; NODE_ENV=production node src/main.js stop; git pull; npm i; NODE_ENV=production node src/main.js start"
- sshpass -p $PREPROD_MACHINE_PASSWORD ssh -o StrictHostKeyChecking=no $PREPROD_MACHINE_USERNAME@$PREPROD_MACHINE_IP "cd /Controller; NODE_ENV=production node src/main.js stop; git pull; git checkout ${TRAVIS_BRANCH}; npm i; npm test; NODE_ENV=production node src/main.js start; npm run postman_test"
- stage: release
#before_install:
#- git clone "https://github.com/$TRAVIS_REPO_SLUG.git" "$TRAVIS_REPO_SLUG";
Expand All @@ -54,3 +58,5 @@ jobs:
api_key: ${NPM_AUTH_TOKEN}
on:
tags: false
after_deploy:
- sshpass -p $PROD_MACHINE_PASSWORD ssh -o StrictHostKeyChecking=no $PROD_MACHINE_USERNAME@$PROD_MACHINE_IP "iofog-controller stop; npm update -g iofogcontroller; iofog-controller start"
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iofogcontroller",
"version": "1.0.33",
"version": "1.0.34",
"description": "ioFog Controller project for Eclipse IoFog @ iofog.org \\nCopyright (c) 2018 Edgeworx, Inc.",
"main": "./src/main.js",
"author": "Saeid Baghbidi",
Expand Down Expand Up @@ -41,7 +41,9 @@
"postinstall": "node scripts/postinstall.js",
"lint": "./node_modules/.bin/eslint \"**/*.js\"",
"automatic-release": "automatic-release",
"test": "node scripts/test.js",
"test": "node scripts/test.js && node scripts/cli-tests.js",
"postman_test": "node scripts/postmantest.js",
"cli-tests": "node scripts/cli-tests.js",
"coverage": "node scripts/coverage.js"
},
"preferGlobal": true,
Expand Down Expand Up @@ -80,7 +82,9 @@
"qs": "^6.5.2",
"child_process": "^1.0.2",
"os": "^0.1.1",
"semver": "^5.6.0"
"semver": "^5.6.0",
"newman": "^4.3.1",
"@sentry/node": "^4.5.0"
},
"devDependencies": {
"automatic-release": "^1.1.1",
Expand All @@ -92,6 +96,7 @@
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"sinon": "^7.1.1",
"sinon-chai": "^3.2.0"
"sinon-chai": "^3.2.0",
"newman": "^4.3.1"
}
}
420 changes: 420 additions & 0 deletions scripts/cli-tests.js

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions scripts/postmantest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* *******************************************************************************
* * Copyright (c) 2018 Edgeworx, Inc.
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License v. 2.0 which is available at
* * http://www.eclipse.org/legal/epl-2.0
* *
* * SPDX-License-Identifier: EPL-2.0
* *******************************************************************************
*
*/

const newman = require('newman');

// call newman.run to pass `options` object and wait for callback
newman.run({
collection: require('../test/postman_collection.json'),
reporters: 'cli',
//abortOnError: true,
//abortOnFailure: true
}).on('start', function (err, args) { // on start of run, log to console
console.log('running a collection...');
}).on('done', function (err, summary) {
if (err || summary.error || summary.run.failures.length != 0) {
console.error('collection run encountered an error. tests did not pass.');
process.exitCode = 1;
}
else {
console.log('collection run completed.');
}
});
21 changes: 10 additions & 11 deletions src/cli/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const CatalogItemService = require('../services/catalog-service');
const fs = require('fs');
const AppHelper = require('../helpers/app-helper');
const AuthDecorator = require('../decorators/cli-decorator');
const Errors = require('../helpers/errors');
const ErrorMessages = require('../helpers/error-messages');

const JSON_SCHEMA = AppHelper.stringifyCliJsonSchema({
name: "string",
Expand Down Expand Up @@ -214,41 +216,38 @@ const _createCatalogItem = async function (obj, user) {
? JSON.parse(fs.readFileSync(obj.file, 'utf8'))
: _createCatalogItemObject(obj);

logger.info(JSON.stringify(item));

const result = await CatalogItemService.createCatalogItem(item, user);
logger.info(JSON.stringify(result));
logger.info('Catalog item has been created successfully.');
const catalogItemIdObject = await CatalogItemService.createCatalogItem(item, user);
logger.info(JSON.stringify({
id: catalogItemIdObject.id
}, null, 2));
};

const _updateCatalogItem = async function (obj) {
const item = obj.file
? JSON.parse(fs.readFileSync(obj.file, 'utf8'))
: _createCatalogItemObject(obj);

logger.info('Item id: ' + obj.itemId);
logger.info(JSON.stringify(item));
if (obj.itemId === undefined) {
throw new Errors.NotFoundError(ErrorMessages.CATALOG_UPDATE_REQUIRES_ID);
}

await CatalogItemService.updateCatalogItem(obj.itemId, item, {}, true);
logger.info('Catalog item has been updated successfully.');
};

const _deleteCatalogItem = async function (obj) {
logger.info(JSON.stringify(obj));
await CatalogItemService.deleteCatalogItem(obj.itemId, {}, true);
logger.info('Catalog item has been removed successfully');
};

const _listCatalogItems = async function () {
const result = await CatalogItemService.listCatalogItems({}, true);
logger.info(JSON.stringify(result, null, 2));
logger.info('Catalog items have been successfully retrieved.');
};

const _listCatalogItem = async function (obj) {
logger.info(JSON.stringify(obj));
const result = await CatalogItemService.getCatalogItem(obj.itemId, {}, true);
logger.info(JSON.stringify(result, null, 2));
logger.info('Catalog item has been successfully retrieved.');
};

const _createCatalogItemObject = function (catalogItem) {
Expand Down
7 changes: 1 addition & 6 deletions src/cli/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@ async function _executeCase(commands, commandName, f, isUserRequired) {

async function _createConnector(obj) {
const connector = _createConnectorObject(obj);
logger.info(JSON.stringify(connector));
try {
const result = await ConnectorService.createConnector(connector);
logger.info(JSON.stringify(result));
await ConnectorService.createConnector(connector);
logger.info('Connector has been created successfully.');
} catch (e) {
logger.info(e.message)
Expand All @@ -139,7 +137,6 @@ async function _createConnector(obj) {

async function _updateConnector(obj) {
const connector = _createConnectorObject(obj);
logger.info(JSON.stringify(connector));
try {
await ConnectorService.updateConnector(connector);
logger.info('Connector has been updated successfully.');
Expand All @@ -150,7 +147,6 @@ async function _updateConnector(obj) {

async function _deleteConnector(obj) {
const connector = _createConnectorObject(obj);
logger.info(JSON.stringify(connector));
try {
await ConnectorService.deleteConnector(connector);
logger.info('Connector has been removed successfully.');
Expand All @@ -162,7 +158,6 @@ async function _deleteConnector(obj) {
async function _getConnectorList() {
const list = await ConnectorService.getConnectorList();
logger.info(JSON.stringify(list, null, 2));
logger.info('Connector list has been gotten successfully');
}

function _createConnectorObject(cliData) {
Expand Down
12 changes: 1 addition & 11 deletions src/cli/diagnostics.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,13 @@ const _executeCase = async function (diagnosticCommand, commandName, f, isUserRe
};

const _changeMicroserviceStraceState = async function (obj) {
logger.info(JSON.stringify(obj));

const isEnable = AppHelper.validateBooleanCliOptions(obj.enable, obj.disable);
await DiagnosticService.changeMicroserviceStraceState(obj.microserviceUuid, {enable: isEnable}, {}, true);
const msg = isEnable ? 'Microservice strace has been enabled' : 'Microservice strace has been disabled';
logger.info(msg);
};

const _getMicroserviceStraceData = async function (obj) {
logger.info(JSON.stringify(obj));

const result = await DiagnosticService.getMicroserviceStraceData(obj.microserviceUuid, {format: obj.format}, {}, true);
logger.info('Strace data:');
logger.info('=============================');
Expand All @@ -145,22 +141,16 @@ const _getMicroserviceStraceData = async function (obj) {
};

const _postMicroserviceStraceDataToFtp = async function (obj) {
logger.info(JSON.stringify(obj));

await DiagnosticService.postMicroserviceStraceDatatoFtp(obj.microserviceUuid, obj, {}, true);
logger.info('Strace data has been posted to ftp successfully.');
logger.info('Strace data has been posted to FTP successfully.');
};

const _postMicroserviceImageSnapshotCreate = async function (obj) {
logger.info(JSON.stringify(obj));

await DiagnosticService.postMicroserviceImageSnapshotCreate(obj.microserviceUuid, {}, true);
logger.info('Microservice image snapshot has been created successfully.');
};

const _getMicroserviceImageSnapshot = async function (obj) {
logger.info(JSON.stringify(obj));

const filePath = await DiagnosticService.getMicroserviceImageSnapshot(obj.microserviceUuid, {}, true);
logger.info('Microservice images path = ' + filePath);
};
Expand Down
15 changes: 4 additions & 11 deletions src/cli/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,27 +146,24 @@ const _createFlow = async function (flowData, user) {
? JSON.parse(fs.readFileSync(flowData.file, 'utf8'))
: _createFlowObject(flowData);

logger.info(JSON.stringify(flow));

await FlowService.createFlow(flow, user, true);
logger.info('Flow created successfully.');
const createdFlow = await FlowService.createFlow(flow, user, true);
logger.info(JSON.stringify({
id: createdFlow.id
}, null, 2));
};

const _updateFlow = async function (flowData) {
const flow = flowData.file
? JSON.parse(fs.readFileSync(flowData.file, 'utf8'))
: _createFlowObject(flowData);

logger.info(JSON.stringify(flow));
const flowId = flowData.flowId;

await FlowService.updateFlow(flow, flowId, {}, true);
logger.info('Flow updated successfully.');
};

const _deleteFlow = async function (flowData) {
logger.info(JSON.stringify(flowData));

const flowId = flowData.flowId;

await FlowService.deleteFlow(flowId, {}, true);
Expand All @@ -176,17 +173,13 @@ const _deleteFlow = async function (flowData) {
const _getAllFlows = async function () {
const flows = await FlowService.getAllFlows(true);
logger.info(JSON.stringify(flows, null, 2));
logger.info('All flows have been retrieved successfully.');
};

const _getFlow = async function (flowData) {
logger.info(JSON.stringify(flowData));

const flowId = flowData.flowId;

const flow = await FlowService.getFlowWithTransaction(flowId, {}, true);
logger.info(JSON.stringify(flow, null, 2));
logger.info(`Flow with id ${flowId} has been retrieved successfully.`)
};

function _createFlowObject(data) {
Expand Down
7 changes: 7 additions & 0 deletions src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ const Microservice = require('./microservice');
const Registry = require('./registry');
const Controller = require('./controller');
const Diagnostics = require('./diagnostics');
const packageJson = require('./../../package');

const constants = require('../helpers/constants');

const Sentry = require('@sentry/node');
Sentry.init({ dsn: 'https://3213bc0b88db47ffb103075d7e1e254f@sentry.io/1378606' });
Sentry.configureScope(scope => {
scope.setExtra('version', packageJson.version);
});

class Cli extends BaseCLIHandler {
constructor() {
super();
Expand Down
Loading

0 comments on commit 43ff263

Please sign in to comment.