mlsorensen commented on PR #6776:
URL: https://github.com/apache/cloudstack/pull/6776#issuecomment-1262736272

   > @mlsorensen you can for example write a simple marvin test to (1) create 
an offering with encryption enabled, (2) deploy VM using that, (3) stop the VM 
if necessary and try changing its offering to one of the available default 
offerings that don't have an encryption enabled. Since this test is checking 
only the business logic, it may even run as a simulator test (and therefore 
also on Travis), and very easy to run smoketests against simulator 
(https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#simulator-based-development).
   > 
   > To run a local (kvm/vmware/xen) env, you can deploy them as VMs on your 
workstations (or remote server with your workstation joined over VPN), or use 
something like https://github.com/shapeblue/mbx to tests using built pkgs.
   
   Cool, thanks @rohityadavcloud. I'm aware of these (we use simulator quite a 
bit w/containers) but the gaps are elsewhere, maybe we can meet and discuss. 
   
   One is really around environment overload. I already have several 
environments I maintain for development that represent real configurations. 
It's a bit cumbersome to then set up yet another VM instance as a blank slate 
for each dev cycle of smoke testing (or automate it), I'm not aware of how to 
run Marvin tests against an existing dev environment since many of the tests 
make assumptions about the environment.  Likewise I don't really understand the 
environment that is under test by Trillian and how to reproduce it in a way 
that I can develop tests which will work there.
   
   The other is understanding of which tests actually will be run in the 
community on every PR vs tests that aren't and which tests are run when. It 
looked like maybe there are some decorators that manage this.
   
   I'd love to just be able to run `mvn test -Dfunctests` or similar and 
everything that would normally run during PR gets tested, even if that includes 
starting up a java instance and some containers.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to