Skip to content

[POC] Add UT for installer command.#6399

Closed
liuh-80 wants to merge 7 commits intosonic-net:masterfrom
liuh-80:dev/liuh/add_show_and_installer_ut
Closed

[POC] Add UT for installer command.#6399
liuh-80 wants to merge 7 commits intosonic-net:masterfrom
liuh-80:dev/liuh/add_show_and_installer_ut

Conversation

@liuh-80
Copy link
Copy Markdown
Contributor

@liuh-80 liuh-80 commented Sep 23, 2022

Description of PR

Add new E2E test cases to test sonic-installer not depends on database docker.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

Approach

What is the motivation for this PR?

Add new E2E test cases to test sonic-installer not depends on database docker.

How did you do it?

Add new E2E test case to cover user scenarios.

How did you verify/test it?

Run new UT make sure they are all pass.
Make sure all current UT not break during merge validation.

Any platform specific information?

N/A

Supported testbed topology if it's a new test case?.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

Approach

What is the motivation for this PR?

Add E2E test case coverage for SSH login session limit.

How did you do it?

Add new E2E test case to cover user scenarios.

How did you verify/test it?

Run new UT make sure they are all pass.
Make sure all current UT not break during merge validation.

Any platform specific information?

N/A

Supported testbed topology if it's a new test case?

@liuh-80 liuh-80 changed the title [POC] Add UT for show and installer command. [POC] Add UT for installer command. Sep 23, 2022
@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Sep 23, 2022

“show” command now depends on database, beacuse need check if "gearbox" feature enabled:

Add greabox commands only if GEARBOX is configured

if is_gearbox_configured():
cli.add_command(gearbox.gearbox)

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Sep 23, 2022

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Sep 26, 2022

Close this PR because shutdown database PR and reload config will break E2E test.
Create UT for here : sonic-net/sonic-utilities#2401

@liuh-80 liuh-80 closed this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant