You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RSpec.describe"ssh key with passphrase var"doinclude_context"ops e2e"before(:all)doDir.chdir(__dir__)remove_untracked_files@output,@output_file,@exit_status=run_ops("../../../../bin/ops up")end# actual tests goes hereend
Things that could be improved:
doing a chdir: must be done in every spec, correctly, or the tests will run with a) no ops.yml or b) worse: the wrong ops.yml
removing untracked files: must be done in every spec (so far; maybe someday a spec won't need it)
setting local variables: I'm not sure how legit this is to do in an rspec spec; maybe there's a better way
knowing the path back to the ops installation: maybe a method in "ops e2e" context could handle this, if you pass an array like ["up", "my_action", "down"]
Basically, having to copy and paste this block to every spec and tweaking the path to bin/ops is not ideal.
The text was updated successfully, but these errors were encountered:
There are a few things that make implementing an e2e spec more work and less DRY than it should be.
This is an example:
Things that could be improved:
chdir
: must be done in every spec, correctly, or the tests will run with a) noops.yml
or b) worse: the wrongops.yml
rspec
spec; maybe there's a better way["up", "my_action", "down"]
Basically, having to copy and paste this block to every spec and tweaking the path to
bin/ops
is not ideal.The text was updated successfully, but these errors were encountered: