Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
Chaoyi Yuan 98c906bb62
Fix error when start simulator with setup option (#418)
* Fix error when start simulator with --setup option

* Bump version to 2.1.1

* Install fixed version of Azure CLI IoT extension

* Do not support 3.8 due to Azure CLI IoT extension incompatible
2019-12-16 13:25:19 +08:00
Chaoyi Yuan d43febbc90
fix #414 and dependency error (#416) 2019-12-03 16:55:27 +08:00
Chaoyi Yuan 8f5c92048b
Validate deployment template/manifest (#406)
* Validate deployment template/manifest in genconfig task
2019-10-18 13:55:19 +08:00
Chaoyi Yuan 68fba174e0
Add progress info (#404)
* Add progress info
2019-08-20 14:09:33 +08:00
Chaoyi Yuan dc86e2816d
allow non module project (#400)
* Allow non-module project in modules folder

* Fix py27 unicode issue 

* Remove language property for module
2019-07-11 15:15:27 +08:00
Chaoyi Yuan b7742a1925
Support relative path for module placeholder (#391)
Support relative path
Build images when user filled the actual url in module image setting
2019-05-30 11:41:03 +08:00
Chaoyi Yuan 140bcb3c18
Support iotedgehubdev new setup parameter (#384)
* Support iotedgehubdev setup -i parameter

* update azure-cli-core version to resolve cloud module load error

* fix incompatibal pyyaml version
2019-04-23 15:45:39 +08:00
Ray Fang 81e7655cd0
Fix #371 (#372) 2019-02-15 15:37:42 +08:00
Neil Ye 58d66de0f9
add more new test cases (#369)
* add more new test cases

* update by comment

* update by comment

* update

* update
2018-12-20 20:22:43 +08:00
Neil Ye (Pactera Technologies Inc) a4e067a224 enable e2e test case for iotedgedev 2018-12-07 20:34:10 +08:00
Ray Fang 5dde149674
Support multi-platform deployment manifest template (#358) 2018-11-22 13:13:54 +08:00
Ray Fang b453d3aa11
Support scaffolding and parsing createOptions as a dict (#357) 2018-11-09 17:26:39 +08:00
Ray Fang 4c879b50c6
Add registryCredentials to deployment manifest template (#351) 2018-10-31 14:40:07 +08:00
Ray Fang 67c63047b5
Fix #340 (#348) 2018-10-30 11:00:54 +08:00
Ray Fang f71356fb34
Collect IoT Hub hostname hash and suffix when deploying (#328)
* Collect IoT Hub hostname hash and suffix when deploying

* Handle empty hostname

* Move hash connection method to connection string class

* Calculate hostname hash when init connection string

* Refactor ConnectionString class
2018-10-17 09:48:03 +08:00
Ray Fang bb41514009
Support adding Java modules (#326)
* Refactor add module options

* Support adding Java modules
2018-09-29 10:05:06 +08:00
Ray Fang 9be2404775
Support adding C modules (#325) 2018-09-27 11:41:29 +08:00
Ray Fang e3cb4046bd
Update templates (#322) 2018-09-20 19:48:07 +08:00
Ray Fang 43d52144f5
Update gen-help-markdown.bat (#310)
* Update gen-help-markdown.bat

* Remove unused files

* Update cmd list
2018-08-28 11:32:19 +08:00
Paymaun e31d588692 Change stream handling to background threads to avoid blocking (#306)
* Change stream handling to background threads to avoid blocking.

* reset proc termination flag
2018-08-27 15:19:40 +08:00
Yuxiang Gan 2cbbc37ee4 Add tests for hash256_result, refine tests for suppress_all_exceptions (#309)
* add tests for hash256_result, refine tests for suppress_all_exceptions

* update

* use six for string type
2018-08-25 12:47:21 +08:00
Paymaun 0d55cd8751 Reworked monitor events integration (#301)
* Redone subprocess and timeout pattern

* comment out a test assertion
2018-08-22 22:36:06 -07:00
Ray Fang 4c70a207bb Add support for contextPath (#275)
* Add support for contextPath

* Add test solution for shared lib
2018-08-21 06:56:23 -07:00
Jon Gallant 7f82e91d8e
Remove DOTNET_VERBOSITY from env. Update requirements.txt. Fix push. (#272)
* Remove DOTNET_VERBOSITY from env. Update requirements.txt. Fix push.

* Remove click from travis, b/c now in root rqmts file.
2018-08-20 18:17:02 -07:00
Ray Fang 18979b4aa3 Add an underscore after additional registry environment key prefixes (#270)
* Add an underscore after additional registry environment keys

* Fix typos

* Fix parsing issue
2018-08-20 07:25:29 -07:00
Ray Fang 949c534136 Rename `iotedgedev create` to `iotedgedev new` (#267)
* Rename create solution command to new solution

* Add a missing replacement
2018-08-20 07:09:05 -07:00
Yuxiang Gan 3b26b64952 Support build options (#255)
* add parser for build options

* add buildoption class, add entry in modules.py

* add invalid test

* add bool parse,add test cases

* add comment

* update

* update
2018-08-17 07:21:09 -07:00
Ray Fang da0d642b09 Add telemetry (#258)
* Add iotedgehubdev class

* Build solution before start iotedgehubdev

* Update templates to fix route error

* Fail fast if device connection string is not set before setup

* Allow start iotedgehubdev in verbose mode

* Add modulecred command

* Add gateway_host option to setup command

* Add start command

* Remove references to runtime

* Remove runtime.template.json from template.zip

* Only start local registry when pushing images so config/deployment.json
only generated after build

* Check if the solution is built before starting simulator

* Instruct users to setup for starting

* Add tests

* Enlarge monitor timeout when testing simulator

* Fix a issue with spaces in paths

* Prevent deploy command overwriting configs

* Promote setup, start and stop commands to root

* Update unit of monitor timeout to seconds

* Add telemetry modules

* Update config folder to home dir

* Add with_telemetry decorator to commands

* Add tests

* Defer exception handling to with_telemetry decorator

* Fix test failure

* Fix unfinished conflict resolve

* Added support for windows containers via nanoserver (#158)

* added initial support for windows containers

* initial support for nanoserver

* corrected az cli path

* only az not working

* all dependencies correctly working

* added required pip packages

* removed unneeded file

* removed external dependencies

* completed support for nanoserver

* fixed all issued mentioned in PR comments

* installing both python2 and python3 on nanoserver

* set path to point to python3, since python2 is not working yet

* added missing parenthesis

* set python3 as default python

* mapped folder set automatically

* improved build script

* added setuptools install

* set to use latest tag

* added support for powershell script

* automatically map folder

* added sock mapping

* removed pip from requirements since it may generate errors

* ignored .backup files

* fixed spacings

* install modules locally

* fixed bug the prevented arguments to be handled correctly

* fixed bug the prevented arguments to be handled correctly

* added build script alpha version

* comments cleanup

* build will now also push docker images

* Bump version: 0.86.0 → 0.87.0

* version set back to 0.81.0

* fixed some bugs, added parameter for pipy login

* modularized build script

* fixed syntax

* removed renaming of python3 executables

* switch to docker folder if needed

* exit on error

* correctly handled directory switching

* switched to ubuntu 18.04 for python 3.6 default support

* using double slash to make script work

* improved docker image build performances

* file system cleanup

* added platform parameter

* Container docker compose support (#243)

Adding docker compose to container

* Support for multiple registries  (#193)

* envvar parsing of multiple container registries

* rename value, support for pushing modules based on module.json

* string comparison code clean up

* modify envvars with better values & refactor dockercls and .env.tmp

* modified variable names, minor fixes, added envvar testing specific to container registry

* add tests for additional cr, comments to explain code, fix merge conflict

* add additional testing for mutliple registries, fix logic around given/expected env vars

* fix env load in tests

* Tell travis to use DOTENV_FILE

* Mod process timeout for new monitor-events  (#253)

* Merge upstream changes

* Rename config to telemetryconfig

* Defer telemetry decorator to handle errors

* Fix CI failure
2018-08-17 07:20:45 -07:00
Ray Fang d2038291a5 Update launch.json when adding modules (#262)
* Scaffold solution from files instead of zip

* Update launch.js when adding modules

* Fix stuck on POSIX when adding node.js modules

* Adding template files to manifest.
2018-08-16 10:43:39 -07:00
Ray Fang a61e91a7a2 Clean up public preview stuff in .env (#259)
* Remove references to public preview stuff

* Fix dotnet new failure during tox
2018-08-15 23:04:05 -07:00
Jon Gallant 485495422d
Add support for DOTENV_FILE in tests (#257) 2018-08-15 14:50:44 -07:00
Ray Fang 9e91d44f69 Add iotedgehubdev integration (#233)
* Add iotedgehubdev class

* Build solution before start iotedgehubdev

* Update templates to fix route error

* Fail fast if device connection string is not set before setup

* Allow start iotedgehubdev in verbose mode

* Add modulecred command

* Add gateway_host option to setup command

* Add start command

* Remove references to runtime

* Remove runtime.template.json from template.zip

* Only start local registry when pushing images so config/deployment.json
only generated after build

* Check if the solution is built before starting simulator

* Instruct users to setup for starting

* Add tests

* Enlarge monitor timeout when testing simulator

* Fix a issue with spaces in paths

* Prevent deploy command overwriting configs

* Promote setup, start and stop commands to root

* Update unit of monitor timeout to seconds

* Fix unfinished conflict resolve
2018-08-15 12:17:29 -07:00
Jon Gallant fbeec1313d
Mod process timeout for new monitor-events (#253) 2018-08-14 23:01:24 -07:00
Kat Ngov 271e28ebe1 Support for multiple registries (#193)
* envvar parsing of multiple container registries

* rename value, support for pushing modules based on module.json

* string comparison code clean up

* modify envvars with better values & refactor dockercls and .env.tmp

* modified variable names, minor fixes, added envvar testing specific to container registry

* add tests for additional cr, comments to explain code, fix merge conflict

* add additional testing for mutliple registries, fix logic around given/expected env vars

* fix env load in tests

* Tell travis to use DOTENV_FILE
2018-08-11 09:59:53 -07:00
Jon Gallant 875bf1c2a1
Implement the new monitor-events CLI for Py35+ users (#236) 2018-08-06 18:35:37 -07:00
Ray Fang 4d6b3bc135 Fix #231 (#232)
* Fix #231

* Fix bugs

* More test cases

* Add more commands to bypass env
2018-08-06 09:58:58 -07:00
Jon Gallant 79bcd51b6a
Add envvars.clean to work around the py2 unicode in envvars issue. (#230)
* Add quickstart video

Add quickstart video

* Search for subscriptions with a lowercased token; fixes #154

* Handle ambiguous or empty subscription results; related #154

* Add prompt to supply more characters when multiple subs are found

* add log level as envvar and testing (#178)

* add contributing.md and modify readme to point to wiki (#181)

* add contributing.md and modify readme to point to wiki

* update readme.md

* remove overview section and move resources to bottom

* add overview section with link to wiki at top

* add Contributing.md content and fix link (#182)

* Add test_azurecli and initial token casing tests

* Fix IoT Hub SKU prompt, changing duplicate S3 to S2

* Update subscription search to support contains for name matches

* Add RUNTIME_LOG_LEVEL to .env.tmp (#186)

* Add envvars clean to work around the py2 unicode in envvar issue
2018-08-03 12:18:24 -07:00
Jon Gallant 87f0e6223a
Fixtests (#229)
* Add quickstart video

Add quickstart video

* Search for subscriptions with a lowercased token; fixes #154

* Handle ambiguous or empty subscription results; related #154

* Add prompt to supply more characters when multiple subs are found

* add log level as envvar and testing (#178)

* add contributing.md and modify readme to point to wiki (#181)

* add contributing.md and modify readme to point to wiki

* update readme.md

* remove overview section and move resources to bottom

* add overview section with link to wiki at top

* add Contributing.md content and fix link (#182)

* Add test_azurecli and initial token casing tests

* Fix IoT Hub SKU prompt, changing duplicate S3 to S2

* Update subscription search to support contains for name matches

* Add RUNTIME_LOG_LEVEL to .env.tmp (#186)

* Fix Tests
2018-08-03 10:25:23 -07:00
Ray Fang bc695307b7 Support new schema of deployment.json with backward compatibility (#222)
* Support modulesContent

* Extract get_desired_property method

* Add test cases for get_desired_property method
2018-08-03 09:03:21 -07:00
Ray Fang 7b148eb3ac Better naming, and deprecate dotnet build and tests/node_solution folder (#205)
* Rename expand_env to expandvars

* Remove node_solution folder as it is now replaced by Node.js template

* Remove dotnet build related files as it's deprecated by container build
2018-07-27 10:47:33 -07:00
Ray Fang cbe4a76ff7 Fix #210 (#211)
* Fix #210

* Add in_asterisk_list utility function
2018-07-27 07:46:27 -07:00
Ray Fang 797ae7894e Add --template param to solution creation (#194)
* Use  env key instead of value when adding modules

* Add CLI entrypoint

* Call iotedgedev addmodule when create solution

* Add default routes when adding modules

* Update template

* Update test

* Revert changes to monitor timeout

* Add temp sensor route when adding module

* Add copy_template function

* Add default ToIoTHub route when creating solution

* Update system module images to GA version

* Fix incorrect string escape

* Replace image placeholder with real image URL when building images

* Enable Node.js module creation

* Refind the logic to parse image placeholder

* Won't add tempsensor route when adding modules

* Minor refinement

* Add nested_set utility method

* Add default route from temp sensor when solution creation

* Rename var_dict to replacement

* Use name in env as default when new solution

* WIP support for BYPASS_MODULES

* WIP support for BYPASS_MODULES

* WIP support for BYPASS_MODULES

* Update utility methods

* Update image_tag_map key type to tuple

* Update Docker SDK version and remove iotedgeruntime from requirements.txt

* Disable outdated test cases temporarily

* Add unit test for deploymentmanifest.py

* Add unit test for utility.py

* Fix error on Py27

* Compare lists order-insensitively

* Fix PyTest failure on Python 3
2018-07-19 10:51:47 -07:00
David Ruttka 29ebe1d806 Configure travis for unit tests (#195)
* Mark tests and add travis configuration files

* Make sure the tests dir has an __init__

* Just test for now, lint is in a bad state

* Add click dependency for travis

* Move tests for the user's .env into the e2e tests

* Bring back all the py versions

* Try removing tests/__init__.py

* Include setuptools for virtualenvs that need the update

* Revert "Try removing tests/__init__.py"

This reverts commit 83265feb83.

* Remove 3.3 and 2.6 from the python test envs

* Add Travis badge to README
2018-06-29 11:12:00 -07:00
Ray Fang 4ff937cb2a
Add commands to add module to solution (#180) 2018-06-15 20:22:56 +08:00
David Ruttka 8795b4af84 Update subscription search to support contains for name matches 2018-06-11 08:53:20 -07:00
David Ruttka 37ec6419e1 Add test_azurecli and initial token casing tests 2018-06-08 16:35:44 -07:00
Kat Ngov a6350fadfb add log level as envvar and testing (#178) 2018-05-28 21:04:55 -07:00
Kat Ngov 8db8f83e1a AZ IOT HUB apply-configuration needs hubname (#173)
* add hubname to apply-config

* pr revisions, update connection string and naming

* adding unit tests for connectionstring.py
2018-05-20 22:08:04 -07:00
Jon Gallant 12b682cf86
Monitor test fix (#176)
* Add quickstart video

Add quickstart video

* Change monitor test assertion
2018-05-20 21:52:12 -07:00
Yaron Schneider 724963fa69 check if dir is empty on init and prompt accordingly (#162)
* check if dir is empty on init and prompt accordingly

* moved empty dir check to solution create, reverted init

* moved empty dir check to utility

* added tests for empty/non-empty dir solution create scenarios

* added current dir tests, fixed variable name and output message

* moved name check outside of utility to calling method
2018-05-11 06:01:55 -07:00