-
Notifications
You must be signed in to change notification settings - Fork 274
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
Fixing Test related to SRL 23.10 #1709
Conversation
fix tests
nodes/srl/srl.go
Outdated
if len(n.sshPubKeys) > 0 && (semver.Compare(n.swVersion.String(), "v23.10") >= 0 || n.swVersion.major == "0") { | ||
tplData.SSHPubKeys = catenateKeys(n.sshPubKeys) | ||
} else { | ||
// prior to 23.10.1 only rsa keys are supported | ||
// this function filters out non-rsa keys from the | ||
// list of ssh public keys found on the system/agent | ||
n.filterSSHPubKeys() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@steiler I brought back the filtering function since it is required for SRL < 23.10.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am dumb. Filtering is not needed as now we support all types of keys in the config in 23.10, and older releases use mounted files, where, again, all keys can be put.
This reverts commit 603c32d.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1709 +/- ##
==========================================
+ Coverage 51.60% 51.72% +0.11%
==========================================
Files 141 141
Lines 13759 13762 +3
==========================================
+ Hits 7100 7118 +18
+ Misses 5870 5858 -12
+ Partials 789 786 -3
|
fix tests