Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added suite connector integration test #45

Merged
merged 41 commits into from
Nov 25, 2022

Conversation

nzhechev-bosch
Copy link
Contributor

@nzhechev-bosch nzhechev-bosch commented Aug 29, 2022

[#44] Add suite connector integration test

Signed-off-by: Nikola Zhechev [email protected]

@konstantina-gramatova konstantina-gramatova linked an issue Sep 10, 2022 that may be closed by this pull request
@e-grigorov e-grigorov changed the title [#44] Added suite connector integration test Added suite connector integration test Sep 14, 2022
@dimiter-todorov-georgiev dimiter-todorov-georgiev force-pushed the int_test branch 2 times, most recently from 939f20d to 67a4cbd Compare October 28, 2022 12:11
New Eclipse Kanto license header used
Renamed featureName to featureID
StatusOK used for command response
readyUntil now expected to be "9999-12-31T23:59:59Z"

Signed-off-by: Nikola Zhechev <[email protected]>
Dimiter Georgiev added 27 commits November 25, 2022 15:17
…back

- Rename Hono environment variables to DeviceRegistryApi
- Rename Ditto environment variables to DigitalTwinApi
Signed-off-by: Dimiter Georgiev <[email protected]>
- Renamed mqtt package import to MQTT
- Removed unneeded call to .Fail()
- Properly failing the test when responses are unable to be sent to the backend
- Refactored getPortOrDefault()
Signed-off-by: Dimiter Georgiev <[email protected]>
- Fix error handling when receiving an unknown command. This can happen for reasons which are unrelated to this test, so instead of failign the test, log the unrecognized command and continue the test.
Signed-off-by: Dimiter Georgiev <[email protected]>
- Use the Ditto library where appropriate, removing custom structs
- Use constructors where required
- Use proper error messages with require.NoError() where they were missing
Signed-off-by: Dimiter Georgiev <[email protected]>
- Use 0 as default offset when comparing connection status' readySince to now
- Added a sleep time between attempts to read connection status, defaulting to 2 seconds
- Changed command test code to properly use the Message struct from the ditto library
Signed-off-by: Dimiter Georgiev <[email protected]>
… integration test code

Signed-off-by: Dimiter Georgiev <[email protected]>
…64-bit math to avoid overflow

Signed-off-by: Dimiter Georgiev <[email protected]>
- Switch to using the Digital Twin REST API for sending a command to the feature
- Minor fixes
Signed-off-by: Dimiter Georgiev <[email protected]>
- Removed unneeded lines
- Use the DITTO API for checking of the expected topic
Signed-off-by: Dimiter Georgiev <[email protected]>
…test logic

- Removed variables which come from the common code
- Use the new API functions provided by the common logic
Signed-off-by: Dimiter Georgiev <[email protected]>
- Update NOTICE.md with the updated version of the uuid library.
- Remove the extra check (and relevant code) for sending an answer to an operation message.
- Use the util function ExecuteOperation.
- Compare time.Time using time.Equal.
- Fix the initialization of the variable now.
- Move the initialization of a variable closer to where it's used, reducing its scope.
- Stop using GetFeatureOutboxMessagePath to obtain the inbox.
Signed-off-by: Dimiter Georgiev <[email protected]>
…lue and GetFeatureInboxMessagePath.

Signed-off-by: Dimiter Georgiev <[email protected]>
@e-grigorov e-grigorov merged commit 8379f6b into eclipse-kanto:main Nov 25, 2022
@e-grigorov e-grigorov deleted the int_test branch November 25, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add suite connector integration test
5 participants