File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 subject ( :app ) { Machete . deploy_app ( app_name ) }
66 let ( :browser ) { Machete ::Browser . new ( app ) }
77
8+ describe 'switching stacks' do
9+ subject ( :app ) { Machete . deploy_app ( app_name , stack : 'lucid64' ) }
10+ let ( :app_name ) { 'flask_web_app_not_vendored' }
11+
12+ specify do
13+ expect ( app ) . to be_running
14+
15+ browser . visit_path ( '/' )
16+ expect ( browser ) . to have_body ( 'Hello, World!' )
17+
18+ replacement_app = Machete ::App . new ( app_name , Machete ::Host . create , stack : 'cflinuxfs2' )
19+
20+ app_push_command = Machete ::CF ::PushApp . new
21+ app_push_command . execute ( replacement_app )
22+
23+ expect ( replacement_app ) . to be_running
24+
25+ browser . visit_path ( '/' )
26+ expect ( browser ) . to have_body ( 'Hello, World!' )
27+
28+ end
29+ end
30+
831 context 'with cached buildpack dependencies' do
932 context 'in an offline environment' , if : Machete ::BuildpackMode . offline? do
1033 context 'app has dependencies' do
You can’t perform that action at this time.
0 commit comments