Sha256: 053d21d51c881c5fba887584a759415656161ce4fbfee45e33426c550500a290

Contents?: true

Size: 1.76 KB

Versions: 1

Compression:

Stored size: 1.76 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: No such file
    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

1 entries across 1 versions & 1 rubygems

Version Path
ftpd-0.2.0 features/ftp_server/delete.feature