Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Add tests for snap config options #53

Merged
merged 25 commits into from
Apr 27, 2022
Merged

Add tests for snap config options #53

merged 25 commits into from
Apr 27, 2022

Conversation

MonicaisHer and others added 7 commits April 21, 2022 14:50
* Add `TestAppConfig()` test

* Separate tests

* Remove redundant subtest, move unset to cleanup

- remove redundant subtest
- move unset to cleanup
- add comment for existing issue
- improve words

* Update device-rest's config_test

* Do `snap set`, then `snap start`
#49)

* Add `TestAppConfig()` test

* Separate tests

* Remove redundant subtest, move unset to cleanup

- remove redundant subtest
- move unset to cleanup
- add comment for existing issue
- improve words

* Update device-rest's config_test

* Do `snap set`, then `snap start`

* Setting FULL_CONFIG_TEST make skipping of config subtests optional

* Move config testing into util functions

* Use boolean for `FullConfigTest`, add message for `t.Skip()`

* Update `if else` and README format

* Add `config-enabled` for new version hooks

new version hooks: canonical/edgex-snap-hooks#41
@farshidtz farshidtz marked this pull request as draft April 25, 2022 10:26
farshidtz and others added 2 commits April 26, 2022 10:38
* Add config testing for device-snmp

* Add dev channel to ci workflow
* Update edgex-go's config test

* Restart device-virtual

* Trigger GitHub action with branch config

* start/stop service instead of snap

* start/stop platformSnap outside of utils

* pass Github action channel to PLATFORM_CHANNEL

* start platformSnap

* change github action branch back to main

* only start/stop affected service, rename `snapAppName` to `deviceVirtualService`

* use branch config for github action testing

* Revert trigger to main
.github/workflows/snap-testing.yml Outdated Show resolved Hide resolved
test/action.yml Outdated Show resolved Hide resolved
test/suites/device-mqtt/config_test.go Outdated Show resolved Hide resolved
test/utils/config.go Outdated Show resolved Hide resolved
test/utils/config.go Outdated Show resolved Hide resolved
test/utils/config.go Outdated Show resolved Hide resolved
test/utils/config.go Outdated Show resolved Hide resolved
@farshidtz farshidtz marked this pull request as ready for review April 27, 2022 11:00
@farshidtz
Copy link
Member Author

@MonicaisHer great job on adding these tests in time. Everything is now passing and this looks ready to merge.

@farshidtz farshidtz merged commit 9747683 into main Apr 27, 2022
@farshidtz farshidtz deleted the config branch April 27, 2022 11:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants