Sha256: 8157425e00f68aabbc930b7918e77a0c08db653f6b54afc2fbf5ed6bba1d3b72

Contents?: true

Size: 1.59 KB

Versions: 28

Compression:

Stored size: 1.59 KB

Contents

@orbit
Feature: Segmented Upload Command
  In order to upload streams in chunks
  As a command line user
  I want a tool that can do segmented uploads

  Background:
    Given a directory named "/tmp/uricp"
    And the default aruba timeout is 15 seconds
    And a container called "temp_dlo"

  Scenario: Direct curl for smaller file
    Given a 102400 byte file named "/tmp/uricp/srv-testy"
    When I upload "img-testy" with segment size "100kib" into container "temp_dlo" from "/tmp/uricp/srv-testy"
    Then a 102400 byte entry should exist in container "temp_dlo" called "img-testy"

  Scenario: Create DLO with segmented file
    Given a 102400 byte file named "/tmp/uricp/srv-testy"
    When I upload "img-check" with segment size "10kib" into container "temp_dlo" from "/tmp/uricp/srv-testy"
    Then a 102400 byte entry should exist in container "temp_dlo" called "img-check"
    And the container "temp_dlo" should contain 11 entries

  Scenario: Create DLO from stream
    Given a 102400 byte file named "/tmp/uricp/srv-testb"
    When I upload "img-testb" with segment size "10kib" into container "temp_dlo" from "/tmp/uricp/srv-testb" as a stream
    Then a 102400 byte entry should exist in container "temp_dlo" called "img-testb"
    And the container "temp_dlo" should contain 11 entries

  Scenario: Create DLO with bad token and fail
    Given a 102400 byte file named "/tmp/uricp/srv-testc"
    When I upload "img-testc" with segment size "10kib" into container "temp_dlo" from "/tmp/uricp/srv-testc" with token "abcdef"
    Then the exit status should not be 0
    And the stderr should contain "failed"

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
uricp-0.0.15 features/segmented_upload.feature
uricp-0.0.14 features/segmented_upload.feature
uricp-0.0.13 features/segmented_upload.feature
uricp-0.0.12 features/segmented_upload.feature
uricp-0.0.11 features/segmented_upload.feature
uricp-0.0.10 features/segmented_upload.feature
uricp-0.0.9 features/segmented_upload.feature
uricp-0.0.8 features/segmented_upload.feature