From 3f90ddbfc7d20b631ca17f72e2d72d5e7ca00629 Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Wed, 3 Oct 2007 12:49:23 -0500 Subject: Interpreting "hidden" class from spec drafts as a REST Controller. This name, functionality, and/or location in the tree is subject to change, but it's down now somewhere so we can move forward on it. --- lib/puppet/network/rest_controller.rb | 2 ++ spec/unit/network/rest_controller.rb | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 lib/puppet/network/rest_controller.rb create mode 100644 spec/unit/network/rest_controller.rb diff --git a/lib/puppet/network/rest_controller.rb b/lib/puppet/network/rest_controller.rb new file mode 100644 index 000000000..76a9830ea --- /dev/null +++ b/lib/puppet/network/rest_controller.rb @@ -0,0 +1,2 @@ +class Puppet::Network::RESTController # :nodoc: +end diff --git a/spec/unit/network/rest_controller.rb b/spec/unit/network/rest_controller.rb new file mode 100644 index 000000000..86bdd8b58 --- /dev/null +++ b/spec/unit/network/rest_controller.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby +# +# Created by Rick Bradley on 2007-10-03. +# Copyright (c) 2007. All rights reserved. + +require File.dirname(__FILE__) + '/../../spec_helper' + +require 'puppet/network/rest_controller' + +describe Puppet::Network::RESTController, "in general" do + it "should take arguments from server, call the appropriate method with correct arguments (parameter passing)" + it "should serialize result data when methods are handled" + it "should serialize an error condition when indirection method call generates an exception" +end -- cgit