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

GL-2753 : CS Wizard updated node version select values #1767

Merged
merged 5 commits into from
Jul 11, 2024

Conversation

PrakharJainS3
Copy link
Contributor

Motivation

The current values provided in NODE_VERSION need to be update as for better onboarding flow to user on Node Project. Also the default value for the select needed to be changed.

Testing steps

Following steps can be taken to verify the changes:

  • Run the following command acli cs:wizard.
  • Please enter Cloud Key and Secret to login
  • Select Node_project in project type.
  • In next select, the updated values will be visible for NODE version selection

Copy link

Try the dev build for this PR: https://acquia-cli.s3.amazonaws.com/build/pr/1767/acli.phar

curl -OL https://acquia-cli.s3.amazonaws.com/build/pr/1767/acli.phar
chmod +x acli.phar

Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.99%. Comparing base (285ba09) to head (9780a66).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1767      +/-   ##
============================================
+ Coverage     91.92%   91.99%   +0.07%     
  Complexity     1818     1818              
============================================
  Files           121      121              
  Lines          6834     6834              
============================================
+ Hits           6282     6287       +5     
+ Misses          552      547       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -65,6 +65,8 @@ public function providerTestCommand(): array
[$this->getMockedGitLabProject($this->gitLabProjectId)],
// Inputs.
[
0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test cases are all providing invalid input, and since there are practically no assertions they were overlooked.

This fixes the inputs to at least be valid, but I'm not sure if the test cases are actually testing what they're supposed to...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is what I failed to understand, even when the inputs were wrong the output should not have contained the success messages which was asserted in the last.
I will probably keep this one to be worked upon in future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this method only returns one line. Ideally you'd be checking the entire output:

        $output_strings = $this->getOutputStrings();

@danepowell danepowell merged commit fded214 into acquia:main Jul 11, 2024
13 of 14 checks passed
@shriacquia
Copy link
Contributor

@danepowell - would you be able to release this change? GL-2653 depends on this update.

@danepowell
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants