-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor: SSHNPParams unit tests preparation #539
Conversation
import 'package:noports_core/src/common/default_args.dart'; | ||
import 'package:noports_core/src/sshnp/sshnp_params/sshnp_params.dart'; | ||
|
||
class ConfigKeyRepository { | ||
static const String _keyPrefix = 'profile_'; | ||
static const String _configNamespace = 'profiles.${DefaultArgs.namespace}'; | ||
@visibleForTesting |
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.
Made visible for testing in the unit tests
@@ -325,7 +325,7 @@ class SSHNPArg { | |||
allowed: SupportedSshClient.values.map((c) => c.toString()).toList(), | |||
parseWhen: ParseWhen.commandLine, | |||
); | |||
static final ssHAlgorithmArg = SSHNPArg( | |||
static final sshAlgorithmArg = SSHNPArg( |
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.
Renamed ssH -> ssh
@@ -0,0 +1 @@ | |||
void main() {} |
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.
These are to be written in a later PR
run: dart analyze | ||
- name: dart test | ||
working-directory: packages/noports_core | ||
run: dart test |
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.
setup dart, dart analyze, dart test noports_core
I just have to call it out... I was prepared to rip my hair out over a billion merge conflicts with 4ca6441. The git renames have saved this PR! |
@@ -192,172 +192,6 @@ jobs: | |||
docker compose down | |||
|
|||
# Test suite 2 | |||
# Installer tests (local vs installer) | |||
e2e_installer_test: | |||
# Don't run on forks (cause no secrets), don't run if dependebot (cause no secrets) |
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.
Removing these tests, since we don't need them for the next release
d580e1a
to
6f068b0
Compare
@gkc the trunk tests are not building (as expected) but local-local is now building, so I think it is safe for us to review. |
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.
Looks good @XavierChanth ... I think there's an opportunity to refactor some duplicated code in the various SshnpCore subclasses but that can come in a follow-up PR
- What I did
Other changes:
- How I did it
- How to verify it
- Description for the changelog
refactor: SSHNPParams unit tests preparation