-
Notifications
You must be signed in to change notification settings - Fork 63
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
Running LoRaWAN Network Server decoupled from IoT Edge #1746
Conversation
* Adding EdgeDeviceGetter and tests * Formatting and changing accessibility * Locking on redis cache * Adding to DI * Introducing cancellation token * Logging an error if we were not able to update redis * Adding prefix * Missed one statement * Adding timeout logic
…dis NuGet Package (#1693) * Adding StackExchange.Redis NuGet package * Adding RedisConnectionString environment variable to configuration * Adding a configuration unit test * Redis subscriber implementation (#1699) * Fixing injection * Making analyzer happy about null reference exceptions * Fixing UTs * Additional UT fix * Update LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWan.NetworkServer/NetworkServerConfiguration.cs Co-authored-by: Bastian Burger <[email protected]> Co-authored-by: Bastian Burger <[email protected]>
Co-authored-by: danigian <[email protected]>
* Providing alternatives to IOTEDGE_* environment variables * Falling back without if else
Co-authored-by: Patrick Schuler <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bastian Burger <[email protected]>
TheoryDataFactory.From( | ||
(string.Empty, "Unable to parse Json when attempting to close"), | ||
("null", "Missing payload when attempting to close the"), | ||
(JsonSerializer.Serialize(new { DevEui = (string)null, Fport = 1 }), "DevEUI missing"), |
Check warning
Code scanning / CodeQL
Useless upcast
{ | ||
_ = loggingBuilder.ClearProviders(); | ||
var logLevel = int.TryParse(NetworkServerConfiguration.LogLevel, NumberStyles.Integer, CultureInfo.InvariantCulture, out var logLevelNum) | ||
? (LogLevel)logLevelNum is var level && Enum.IsDefined(typeof(LogLevel), level) ? level : throw new InvalidCastException() |
Check warning
Code scanning / CodeQL
Constant condition
{ | ||
_ = loggingBuilder.ClearProviders(); | ||
var logLevel = int.TryParse(NetworkServerConfiguration.LogLevel, NumberStyles.Integer, CultureInfo.InvariantCulture, out var logLevelNum) | ||
? (LogLevel)logLevelNum is var level && Enum.IsDefined(typeof(LogLevel), level) ? level : throw new InvalidCastException() |
Check warning
Code scanning / CodeQL
Constant condition
{ | ||
_ = loggingBuilder.ClearProviders(); | ||
var logLevel = int.TryParse(NetworkServerConfiguration.LogLevel, NumberStyles.Integer, CultureInfo.InvariantCulture, out var logLevelNum) | ||
? (LogLevel)logLevelNum is var level && Enum.IsDefined(typeof(LogLevel), level) ? level : throw new InvalidCastException() |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
LoRaEngine/LoraKeysManagerFacade/FunctionsBundler/DeduplicationExecutionItem.cs
Fixed
Show fixed
Hide fixed
if (isCloudDeployment && !shouldSetRedisString) | ||
{ | ||
_ = Assert.Throws<InvalidOperationException>(lnsConfigurationCreation); | ||
} | ||
else | ||
{ | ||
_ = lnsConfigurationCreation(); | ||
} |
Check notice
Code scanning / CodeQL
Missed ternary opportunity
Codecov Report
@@ Coverage Diff @@
## dev #1746 +/- ##
==========================================
+ Coverage 86.58% 86.75% +0.16%
==========================================
Files 236 243 +7
Lines 9279 9480 +201
==========================================
+ Hits 8034 8224 +190
- Misses 1245 1256 +11
Continue to review full report at Codecov.
|
PR for issue #1553
What is being addressed
This PR is bringing into dev branch all the work related to Decouple LNS from Edge milestone
Validation: