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

725 Коммитов

Автор SHA1 Сообщение Дата
MariusNi 1d754f12ca
Using local environment http proxy options for connecting to the IoT Hub (#81) 2022-02-03 09:24:14 -08:00
Ioana A 96e46de064
Create MIM file for new PackageManagerConfiguration module (#79)
Co-authored-by: Alexander G <agassman@microsoft.com>
Co-authored-by: Magdalena Baran <mbaran@microsoft.com>
2022-02-02 11:46:03 -08:00
MariusNi 4cf8d03165
Use local proxy environment variable to connect to IoT Hub (#78) 2022-01-31 14:39:58 -08:00
Ahmed Messaoud 7cb2f9d7c3
Rev'ed OSConfig to 1.0.1.x (#77) 2022-01-25 13:23:14 -08:00
Robert Schaedler III 05c50edbb0
Fix JSON strings in MpiGetReported (#76)
* use payloadSizeBytes to create payload strings

* fix MpiGetReported JSON strings
2022-01-24 10:57:26 -08:00
Robert Schaedler III d710a98007
MPI clean up and test mocking (#74)
* rename MMI function types

* rename MmiGet/Set to CallMmiGet/Set

* only load modules in via MPI if not building tests

* remove ModulesManager::SetMaxPayloadSize()

* clean up ManagementModule for mocking

* clean up, harden, and remove unncessary globals

* create mock classes for testing

* move and update test modules

* update test config and constants

* update tests to use mocks

* address comments

* remove trailing newlines

* harden MpiGet/Set against invalid componentName

* add test wrappers for full mmi

* remove trailing newlines

* remove unused definition

* fix spacing

* fix parameterized tests

* build tests separately to discover all parameterized tests

* refactor parameterized tests

* remove TEST_P
2022-01-24 07:02:29 -08:00
Ahmed Messaoud c39cd9a853
Added source pkg to pkg build pipelines (#75)
* Added source package to pkg builds

* Refactored dist into build folder, removing SPECS

* Added architecture to test runs

* Addressed comments
2022-01-20 16:26:38 -08:00
MariusNi 0e66d07e3f
Update the unit tests for commonutils!ExecuteCommand to fix failure on Arm (#73) 2022-01-19 12:56:09 -08:00
MariusNi abd579d8bd
CommandRunner.CommandArguments.Timeout and SingleLineTextResult are all optional (#72) 2022-01-19 12:42:22 -08:00
MariusNi 1e012576e6
Consistent lowercase names of JSON array, map, object in documentation and samples (#71) 2022-01-19 10:54:39 -08:00
Ahmed Messaoud 2d720366fc
Removed failing tests temporarily (#70) 2022-01-18 18:19:27 -08:00
MariusNi 4a27000bd0
Making commonutils!ExecuteCommand capture as text output both stdout and stderr (#68) 2022-01-18 11:47:38 -08:00
Simon Jäger 154780c4d7
Fix HostName logging for invalid object names during MmiSet (#64)
* fix: set log property name
* fix: reverse conditional statements
Co-authored-by: MariusNi <mariusni@microsoft.com>
2022-01-14 13:20:33 -08:00
MariusNi 367a485563
One realistic example of a component MIM JSON to assist module developers (#67) 2022-01-14 09:05:47 -08:00
Robert Schaedler III 7f3b08adba
Fix MPI desired configuration validation (#65)
* fix mpi rc/dc validation

* only log error if full logging is enabled

* add payloads to mpisetdesired tests
2022-01-12 18:30:47 -05:00
MariusNi 975668f037
Documentation clarification on the DC/RC MIM payload JSON format (#66) 2022-01-12 15:19:33 -08:00
MariusNi 95af26e222
IsValidMimObjectPayload moved to CommonUtils library for Agent and Platform to use (#63)
IsValidMimObjectPayload moved to CommonUtils library for Agent and Platform to use
Co-authored-by: Robert Schaedler rschaedler@microsoft.com
2022-01-11 16:19:16 -08:00
Robert Schaedler III 04eadb8b69
Add MMI payload schema (#61)
* add mmi payload schema

* validate mmi payloads for mmiget and mmiset

* remove extra whitespace

* update logging for invalid payload

* fix invalid JSON in tests
2022-01-11 12:08:08 -08:00
Robert Schaedler III d6f8c6ed4c
Add sample module MIM JSON (#60)
* add sample MIM JSON

* update sample module to match MIM

* update comments and naming

* add mim with all possible object/setting types
2022-01-10 13:37:57 -08:00
MariusNi 6ff458fed0
Documentation: all modules must have MIM (#62)
Documentation: all modules must have MIM
2022-01-10 09:47:30 -08:00
Robert Schaedler III bd544b228e
Fix cached status after executing reboot or shutdown (#59)
* fix cached status after executing reboot or shutdown

* update return values

* always refresh last completed command

* fix return values using MMI_OK

Co-authored-by: OSConfig Core <osconfigcore@microsoft.com>
Co-authored-by: MariusNi <mariusni@microsoft.com>
2022-01-06 12:46:29 -08:00
MariusNi 3a498e0bf4
Move two functions in the ZTSI module and others (FileExists and IsValidClientName) to CommonUtils (#58)
Moving couple of commonly used functions from modules to commonutils library
2022-01-06 09:26:17 -08:00
MariusNi 7eb48d9446
Adding information on submitting a PR to CONTRIBUTING.md (#56)
* Adding information on submitting a PR to CONTRIBUTING.md

* Adding information on submitting a PR to CONTRIBUTING.md
2022-01-05 13:35:05 -08:00
Robert Schaedler III 78ad6f0df6
fix module loading in mpi tests (#57) 2022-01-05 09:26:02 -08:00
Robert Schaedler III a96b2d05fc
Update ZTSI module (#55)
* update ztsi module

* add tests for invalid Get/Set data

* cleanup and formatting
2022-01-04 12:18:36 -08:00
Robert Schaedler III 028522a201
Bump version to 1.0.0 (#54)
* bump version to 1.0.0

* update version description strings

* update osconfig project name
2021-12-17 12:33:12 -08:00
MariusNi aa7c99b881
The log files may lose root access-only protection after being trimmed and manually deleted before osconfig starts (#53)
This commit fixes both these situations
2021-12-17 08:42:54 -08:00
MariusNi 32638ba6ab Further optimization for logging 2021-12-16 18:18:41 -08:00
MariusNi ff230e2b62
Resetting the internal trim log counter (#51)
* Resetting the internal trim log counter

* Fix incrementing the log trim counter

* Removing back stat in favor of ftell for consistency with the rest of code and the SDK
2021-12-16 17:10:17 -08:00
Robert Schaedler III 85803cf24d
Add support for arrays and maps to the MIM JSON schema (#49)
* add support for arrays and maps to mim schema

* update array schema

* update mim schema
2021-12-16 16:32:04 -08:00
MariusNi fb7767866e
Fix log file trimming to rely on stat primarily instead of ftell to get log file size (#50) 2021-12-16 14:34:31 -08:00
Harrison Chotzen 4a80db08c3
Extend support for TPM 2.0 using system calls (#43) 2021-12-16 11:04:32 -08:00
Harrison Chotzen 07e845bedd
Update Networking to capture global DnsServers (#42)
* Bring global DNS servers to Networking reported values

* Partial unit test implementation, need to address the issue of duplicates in global and interface specific DNS servers

* Finished unit tests and added new methods for DnsServers and InterfaceTypes data collection to improve modularity

* Minor code cleanup
2021-12-16 10:12:57 -08:00
MariusNi d4b30695e6
OSConfig documentation diagrams updated to large sizes with transparent backgrounds and scaled down by percentage in MD (#48) 2021-12-15 11:21:27 -08:00
Robert Schaedler III f4b7e7c602
Create sample C++ module (#44)
* create cpp sample module

* update sample module

* update Sample interface
2021-12-14 15:00:50 -08:00
jinghanm b2486f65e5
Add ztsi e2e tests (#32)
* Add ztsi e2e tests

* Fix failed e2e test

* Address comments

* Address comments

* Add tests for set get service url and enabled in different orders

* Add more tests cases

* Add more tests

* Fix teardown log

* remove extended timeout

* Fix test cases

* Address comments

* Address comments

Co-authored-by: MariusNi <mariusni@microsoft.com>
2021-12-13 11:37:07 -08:00
Robert Schaedler III 9b2f04c3ae
update ubuntu image version to latest (#45) 2021-12-10 10:31:03 -08:00
Robert Schaedler III 91762d4142
Update return values for cached enabled state (#41)
* update return values for cached enabled state

* use MMI_OK for success

* use MMI_OK for success
2021-12-06 17:26:59 -08:00
Robert Schaedler III d92c0781fd
cache enabled state (#40) 2021-12-06 13:29:58 -08:00
Robert Schaedler III d9f3dd9281
Add file locking to ztsi module agent configuration (#39)
* add file locking to ztsi module agent configuration

* add file locking to ztsi module agent configuration

* add file locking to ztsi module agent configuration
2021-12-03 12:04:47 -08:00
jinghanm 352888943d
Add networking e2e tests (#31)
* Add networking e2e tests

* Address comments

* Address comments

* Remove IsSameByJson

* Add SettingsTests.cs
2021-12-01 15:55:06 -08:00
jinghanm bed5fa39ac
Revert "Jinmen/settings (#34)" (#37)
This reverts commit 6834565851.

Co-authored-by: MariusNi <mariusni@microsoft.com>
2021-12-01 14:10:28 -08:00
MariusNi 92de92f986
Documentation upddates for MIM arrays and maps (#36) 2021-12-01 11:12:05 -08:00
MariusNi bc0135c674
Adding to arrays and maps to documentation (#35)
* Adding arrays and maps to MIM documentation

* Adding arrays and maps to MIM documentation

* Adding arrays and maps to MIM documentation

* Adding arrays and maps to MIM documentation
2021-12-01 09:49:04 -08:00
jinghanm 6834565851
Jinmen/settings (#34)
* Add settings e2e test

* Delete get test

* Address comments

* Address comments

* Remove Test setup add test againt expected values

* Remove IsSameByJson
2021-11-30 15:30:29 -08:00
hachotze a47d7dbfd7
Added an azcli output suppression flag to remove device identity secrets from pipeline logs (#33) 2021-11-29 15:24:08 -08:00
Ahmed Messaoud 21ed5b1ce3
Clean up pipelines (#30)
* Clean up pipelines

* Fixed e2e destroy, ignore some tests

* fixed syntax

* addressed pipeline failure

* addressed pipeline failure

* Fixed condition

* Changed test run title
2021-11-22 20:46:58 -08:00
jinghanm 341580117f
Add tpm e2e tests (#29)
* Add tpm e2e tests

* Address comments
2021-11-22 10:55:37 -08:00
hachotze ca037b0b82
Restored the Networking module to request and process data in standard non-json format (#24) 2021-11-19 13:42:26 -08:00
jinghanm d50e0391ae
Add hostname e2e tests (#21)
* Add hostname e2e tests

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments
2021-11-19 11:55:47 -08:00