mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	remove annotated notes, data now in tracker
This commit is contained in:
		
							parent
							
								
									4969b0ba24
								
							
						
					
					
						commit
						4836ad7c68
					
				
					 10 changed files with 0 additions and 44 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,6 @@ module Fog
 | 
			
		|||
 | 
			
		||||
      class Mock
 | 
			
		||||
 | 
			
		||||
        # TODO: handle the GroupName/Source/Source case
 | 
			
		||||
        def revoke_security_group_ingress(options = {})
 | 
			
		||||
          if options['GroupName'] && options['SourceSecurityGroupName'] && options['SourceSecurityGroupOwnerId']
 | 
			
		||||
            raise MockNotImplemented.new("Contributions welcome!")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -92,8 +92,6 @@ module Fog
 | 
			
		|||
 | 
			
		||||
      class Mock
 | 
			
		||||
 | 
			
		||||
        # TODO: allow for block device mapping in mocks
 | 
			
		||||
        # TODO: allow for rootDeviceType specification
 | 
			
		||||
        def run_instances(image_id, min_count, max_count, options = {})
 | 
			
		||||
          response = Excon::Response.new
 | 
			
		||||
          response.status = 200
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,7 +44,6 @@ module Fog
 | 
			
		|||
            for id in instance_id
 | 
			
		||||
              instance = @data[:instances][id]
 | 
			
		||||
              @data[:deleted_at][id] = Time.now
 | 
			
		||||
              # TODO: the codes are mostly educated guessing, not certainty
 | 
			
		||||
              code = case instance['instanceState']['name']
 | 
			
		||||
              when 'pending'
 | 
			
		||||
                0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,6 @@ module Fog
 | 
			
		|||
        #     * 'ETag'<~String> - etag of new object
 | 
			
		||||
        #     * 'LastModified'<~Time> - date object was last modified
 | 
			
		||||
        #
 | 
			
		||||
        # TODO: allow specifying new metadata (support all/some of put_object?)
 | 
			
		||||
        def copy_object(source_bucket_name, source_object_name, target_bucket_name, target_object_name, options = {})
 | 
			
		||||
          headers = { 'x-amz-copy-source' => "/#{source_bucket_name}/#{source_object_name}" }.merge!(options)
 | 
			
		||||
          request({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,7 +57,6 @@ module Fog
 | 
			
		|||
 | 
			
		||||
      class Mock
 | 
			
		||||
 | 
			
		||||
        # FIXME: implement delimiter
 | 
			
		||||
        def get_bucket(bucket_name, options = {})
 | 
			
		||||
          unless bucket_name
 | 
			
		||||
            raise ArgumentError.new('bucket_name is required')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,18 +8,6 @@ module Fog
 | 
			
		|||
        # ==== Parameters
 | 
			
		||||
        # * internet_service_id<~Integer> - Id of service to destroy
 | 
			
		||||
        #
 | 
			
		||||
        # ==== Returns
 | 
			
		||||
        # * response<~Excon::Response>:
 | 
			
		||||
        #   * body<~Hash>:
 | 
			
		||||
 | 
			
		||||
        # FIXME
 | 
			
		||||
 | 
			
		||||
        #     * 'CatalogItems'<~Array>
 | 
			
		||||
        #       * 'href'<~String> - linke to item
 | 
			
		||||
        #       * 'name'<~String> - name of item
 | 
			
		||||
        #       * 'type'<~String> - type of item
 | 
			
		||||
        #     * 'description'<~String> - Description of catalog
 | 
			
		||||
        #     * 'name'<~String> - Name of catalog
 | 
			
		||||
        def delete_internet_service(internet_service_id)
 | 
			
		||||
          request(
 | 
			
		||||
            :expects  => 200,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,18 +8,6 @@ module Fog
 | 
			
		|||
        # ==== Parameters
 | 
			
		||||
        # * node_service_id<~Integer> - Id of node to destroy
 | 
			
		||||
        #
 | 
			
		||||
        # ==== Returns
 | 
			
		||||
        # * response<~Excon::Response>:
 | 
			
		||||
        #   * body<~Hash>:
 | 
			
		||||
 | 
			
		||||
        # FIXME
 | 
			
		||||
 | 
			
		||||
        #     * 'CatalogItems'<~Array>
 | 
			
		||||
        #       * 'href'<~String> - linke to item
 | 
			
		||||
        #       * 'name'<~String> - name of item
 | 
			
		||||
        #       * 'type'<~String> - type of item
 | 
			
		||||
        #     * 'description'<~String> - Description of catalog
 | 
			
		||||
        #     * 'name'<~String> - Name of catalog
 | 
			
		||||
        def delete_node_service(node_service_id)
 | 
			
		||||
          request(
 | 
			
		||||
            :expects  => 200,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,18 +8,6 @@ module Fog
 | 
			
		|||
        # ==== Parameters
 | 
			
		||||
        # * vapp_id<~Integer> - Id of vapp to destroy
 | 
			
		||||
        #
 | 
			
		||||
        # ==== Returns
 | 
			
		||||
        # * response<~Excon::Response>:
 | 
			
		||||
        #   * body<~Hash>:
 | 
			
		||||
 | 
			
		||||
        # FIXME
 | 
			
		||||
 | 
			
		||||
        #     * 'CatalogItems'<~Array>
 | 
			
		||||
        #       * 'href'<~String> - linke to item
 | 
			
		||||
        #       * 'name'<~String> - name of item
 | 
			
		||||
        #       * 'type'<~String> - type of item
 | 
			
		||||
        #     * 'description'<~String> - Description of catalog
 | 
			
		||||
        #     * 'name'<~String> - Name of catalog
 | 
			
		||||
        def delete_vapp(vapp_id)
 | 
			
		||||
          request(
 | 
			
		||||
            :expects  => 202,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,6 @@ module Fog
 | 
			
		|||
      # Commond methods shared by Real and Mock
 | 
			
		||||
      module Common
 | 
			
		||||
 | 
			
		||||
        # TODO: bust cache on organization creation?
 | 
			
		||||
        def default_organization_id
 | 
			
		||||
          @default_organization_id ||= begin
 | 
			
		||||
            org_list = get_organizations.body['OrgList']
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,6 @@ Shindo.tests('Slicehost#get_backups', 'slicehost') do
 | 
			
		|||
      @data = Slicehost[:slices].get_backups.body
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # TODO: ensure this still works with a non-empty list
 | 
			
		||||
    test('has proper output format') do
 | 
			
		||||
      has_format(@data, { 'backups' => [Slicehost::Formats::BACKUP] })
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue