Sha256: bd4f250b2d09715636019a9812301a0e8f1f507ddaa17de6e6b301a93d76ab6b

Contents?: true

Size: 1.75 KB

Versions: 4

Compression:

Stored size: 1.75 KB

Contents

Feature: Delete

  As a client
  I want to delete files
  So that nobody can fetch them from the server

  Background:
    Given the test server is started

  Scenario: Delete a file
    Given a successful login
    And the server has file "foo"
    When the client successfully deletes "foo"
    Then the server should not have file "foo"

  Scenario: Delete a file in a subdirectory
    Given a successful login
    And the server has file "foo/bar"
    When the client successfully deletes "foo/bar"
    Then the server should not have file "foo/bar"

  Scenario: Change current directory
    Given a successful login
    And the server has file "foo/bar"
    And the client successfully cd's to "foo"
    When the client successfully deletes "bar"
    Then the server should not have file "foo/bar"

  Scenario: Missing path
    Given a successful login
    And the server has file "foo"
    When the client deletes with no path
    Then the server returns a path required error

  Scenario: not found
    Given a successful login
    When the client deletes "foo"
    Then the server returns a not found error

  Scenario: Access denied
    Given a successful login
    When the client deletes "forbidden"
    Then the server returns an access denied error

  Scenario: File system error
    Given a successful login
    When the client deletes "unable"
    Then the server returns an action not taken error

  Scenario: Not logged in
    Given a successful connection
    When the client deletes "foo"
    Then the server returns a not logged in error

  Scenario: Delete not enabled
    Given the test server is started without delete
    And a successful login
    And the server has file "foo"
    When the client deletes "foo"
    Then the server returns an unimplemented command error

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ftpd-0.3.2 features/ftp_server/delete.feature
ftpd-0.3.1 features/ftp_server/delete.feature
ftpd-0.2.2 features/ftp_server/delete.feature
ftpd-0.2.1 features/ftp_server/delete.feature