test/yao/resources/test_compute_services.rb in yao-0.19.0 vs test/yao/resources/test_compute_services.rb in yao-0.20.0

- old
+ new

@@ -1,6 +1,7 @@ class TestComputeServices < TestYaoResource + include RestfullyAccessibleStub def test_compute_services # https://docs.openstack.org/api-ref/compute/?expanded=update-forced-down-detail,update-compute-service-detail,list-compute-services-detail#compute-services-os-services params = { @@ -124,7 +125,14 @@ assert_equal("nova-compute", compute_service.binary) assert_equal("disabled", compute_service.status) assert_equal("test2", compute_service.disabled_reason) assert_requested stub + end + + def test_delete + stub = stub_delete_request("https://example.com:12345/os-services/test-id") + compute_service = Yao::ComputeServices.new({"id" => "test-id"}) + assert_equal({}, compute_service.delete) + assert_requested(stub) end end