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

[cli] rewrite of che-ip utility #3952

Merged
merged 2 commits into from
Jan 31, 2017
Merged

[cli] rewrite of che-ip utility #3952

merged 2 commits into from
Jan 31, 2017

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Jan 30, 2017

What does this PR do?

Rewrite of che-ip utility

  • Rewrite che-ip with more helper functions
  • introduce bats unit tests for each function
  • For each “supported OS”, we have an output of “ip a show” command and then run against each of this file the tool to check if it performs as expected

./build.sh : build image + run tests (option to skip tests = —skip-tests)
./run.sh : run image
./test.sh : run the unit tests (no need to build the image first)

note: you may try new utility with command

$ docker run --rm --net host florentbenoit/cheip

it requires #3951 for running all bats asserts commands

What issues does this PR fix or reference?

#3941

Changelog and Release Note Information

Changelog

Rewrite che-ip utility and add unit tests for all known use cases (OS/Docker install).

Release Notes: N/A bugfix

Docs Pull Request

none : same behavior than before

Change-Id: Ic92825d2b427139d52db69f0131bee21d16d3c0f
Signed-off-by: Florent BENOIT fbenoit@codenvy.com

@benoitf benoitf self-assigned this Jan 30, 2017
@benoitf benoitf requested review from TylerJewell, riuvshin, tolusha and a user January 30, 2017 17:39
 - Rewrite che-ip with more helper functions
 - introduce bats unit tests for each function
 - For each “supported OS”, we have an output of “ip a show” command and then run against each of this file the tool to check if it performs as expected

./build.sh : build image + run tests (option to skip tests = —skip-tests)
./run.sh   : run image
./test.sh   : run the unit tests (no need to build the image first)

Change-Id: Ic92825d2b427139d52db69f0131bee21d16d3c0f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@benoitf benoitf added kind/bug Outline of a bug - must adhere to the bug report template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. severity/P1 Has a major impact to usage or development of the system. labels Jan 30, 2017
@riuvshin
Copy link
Contributor

@benoitf does those changes means that ip now depends on bats?

@codenvy-ci
Copy link

@benoitf
Copy link
Contributor Author

benoitf commented Jan 30, 2017

@riuvshin for build time yes

@benoitf benoitf added status/pending-merge and removed status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Jan 31, 2017
@benoitf benoitf added this to the 5.2.0 milestone Jan 31, 2017
…re helper functions - introduce bats unit tests for each function - For each “supported OS”, we have an output of “ip a show” command and then run against each of this file the tool to check if it performs as expected

Change-Id: I05d1c84d3a13f5be6ccad9af56c5a1bb72c67443
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@benoitf benoitf merged commit 61894e5 into master Jan 31, 2017
@benoitf benoitf deleted the che#3941 branch January 31, 2017 17:56
@codenvy-ci
Copy link

@JamesDrummond JamesDrummond mentioned this pull request Feb 6, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* Fix eclipse-che#3941 by rewriting che-ip utility
 - Rewrite che-ip with more helper functions
 - introduce bats unit tests for each function
 - For each “supported OS”, we have an output of “ip a show” command and then run against each of this file the tool to check if it performs as expected

./build.sh : build image + run tests (option to skip tests = —skip-tests)
./run.sh   : run image
./test.sh   : run the unit tests (no need to build the image first)

Change-Id: Ic92825d2b427139d52db69f0131bee21d16d3c0f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants