File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ def deploy(self, release):
134134 self .save ()
135135 self .scale ()
136136
137+ def destroy (self , * args , ** kwargs ):
138+ return self .delete (* args , ** kwargs )
139+
137140 def scale (self , ** kwargs ):
138141 """Scale containers up or down to match requested."""
139142 requested_containers = self .structure .copy ()
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ def test_cluster(self):
4545 response = self .client .get ('/api/clusters' )
4646 self .assertEqual (response .status_code , 200 )
4747 self .assertEqual (len (response .data ['results' ]), 1 )
48+ # ensure we can delete the cluster with an app
49+ # see https://github.com/deis/deis/issues/927
50+ url = '/api/apps'
51+ body = {'cluster' : 'autotest' }
52+ response = self .client .post (url , json .dumps (body ), content_type = 'application/json' )
53+ self .assertEqual (response .status_code , 201 )
4854 url = '/api/clusters/{cluster_id}' .format (** locals ())
4955 response = self .client .get (url )
5056 self .assertEqual (response .status_code , 200 )
You can’t perform that action at this time.
0 commit comments