Decouple the E2E tests from the demo. E2E tests create all data on network servers before the tests run.
Activate all devices on network servers via ABP before E2E tests run.
Fix bug in pulling integrations for apps that have no integrations setup
Fix bugs in transfering device activation properties between networks.
Update Loriot's createDevice logic
Partially implement TTN's rest client
Setup TTN to create network entities from tests.
Do you have any concerns with this PR?
The issue is for sending data to devices in tests, but I discovered that LPWAN Server doesn't yet support that. I will need to implement that feature and then resume this issue.
TTN is giving authentication errors if the app is retrieved soon after creating it. TTN is setup to create the network's test entities from within the test; however, I had to leave static entities on the TTN network to avoid that 403. The 403 also occurs when syncing networks in the test, so TTN is disabled for now. I will revisit later.
Loriot doesn't support updating any device keys or activation properties. I was also unable to create a device with an appkey. Creating a device with ABP works.
How can the reviewer verify this PR?
View, use app
Any background context you want to provide?
I updated the methods used for creating a device in Loriot. There were two API calls that I thought were for updating device keys and activation props, but they're alternate APIs for creating a device with OTAA/ABP info. My attempts to create a device with an appkey (OTAA) failed with a "missing parameters" error, but the payload was equal to or included additional properties to those in the docs. Need more time or better docs to resolve.
Moving the test data into the tests will protect against data loss and enable tests to run on any account.
Screenshots or logs (if appropriate)
Questions:
Have you connected this PR to the issue it resolves? partial #277
Does the documentation need an update? No
Does this add new dependencies? No
Have you added unit or functional tests for this PR? No
What does this PR do?
Do you have any concerns with this PR?
The issue is for sending data to devices in tests, but I discovered that LPWAN Server doesn't yet support that. I will need to implement that feature and then resume this issue.
TTN is giving authentication errors if the app is retrieved soon after creating it. TTN is setup to create the network's test entities from within the test; however, I had to leave static entities on the TTN network to avoid that 403. The 403 also occurs when syncing networks in the test, so TTN is disabled for now. I will revisit later.
Loriot doesn't support updating any device keys or activation properties. I was also unable to create a device with an appkey. Creating a device with ABP works.
How can the reviewer verify this PR?
View, use app
Any background context you want to provide?
I updated the methods used for creating a device in Loriot. There were two API calls that I thought were for updating device keys and activation props, but they're alternate APIs for creating a device with OTAA/ABP info. My attempts to create a device with an appkey (OTAA) failed with a "missing parameters" error, but the payload was equal to or included additional properties to those in the docs. Need more time or better docs to resolve.
Moving the test data into the tests will protect against data loss and enable tests to run on any account.
Screenshots or logs (if appropriate)
Questions: