Open blag opened 3 years ago
On a first glance, it seems to be safe to remove it. I'll take another look over the long weekend and see if I find anything.
What would be the things to verify and test, if we remove if and want to be sure that it didn't harm? I am not sure if I got the whole picture already.
To test it, we would just:
~/st2cd
)setup_e2e_tests.sh
)st2 pack install file://$(pwd)
chatops=true
so that the ChatOps end-to-end tests are also runIf everything passes, then we don't need that code, we merge the st2cd branch on GitHub, and install the st2cd pack from master
.
If things break, we will have to investigate why and fix them (or just put the virtualenv back).
The pip installation and virtualenv creation in
setup_e2e_tests.sh
might now be superfluous, see here for context (also copied down below).Wayyy back in the day we used RobotFramework to test ChatOps, but I ripped those out and replaced them with BATS tests, see:
And our current code runs the ChatOps tests using the virtualenv for the
chatops_tests
pack:So I think this entire pip+virtualenv is now superfluous and can be removed.
If I remember correctly, we don't use RobotFramework anywhere anymore, so this looks like some cruft that needs cleaning up.
setup_e2e_tests.sh
:We need to investigate whether or not we can simply remove that.