You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Andy Kurth (JIRA)" <ji...@apache.org> on 2015/07/27 20:16:07 UTC
[jira] [Created] (VCL-891) Create very long text file using the OS
module
Andy Kurth created VCL-891:
------------------------------
Summary: Create very long text file using the OS module
Key: VCL-891
URL: https://issues.apache.org/jira/browse/VCL-891
Project: VCL
Issue Type: Test
Components: vcld (backend)
Reporter: Andy Kurth
h2. Overview
Find all {{create_text_file}} subroutines in the management node code. There are currently subroutines in _OS.pm_ and _ManagementNode.pm_. A {{create_text_file}} subroutine may have been added to another module. All {{create_text_file}} subroutines must be tested.
h2. Procedure
The following code must be executed for all of the cases described below:
{code}
$self->os->create_text_file($file_path, $file_contents);
$self->mn_os->create_text_file($file_path, $file_contents);
$self->vmhost_os->create_text_file($file_path, $file_contents);
{code}
After executing this code, check the following:
* Was the text file created?
* Does the text file contain the exact same contents as specified by the arguments?
h2. Operating Systems
* Windows 7
* Windows 8
* CentOS 6.x
* CentOS 7.x
* VMware ESXi 4.1
* VMware ESXi 5.5
* VMware ESXi 6.0
h2. Cases
* Create text files with different content sizes
** $file_contents is an empty string, an empty file should be created (make sure it is 0 bytes and does not contain something such as a newline character
** $file_contents is a random string larger than 1 MB
* Create a text file with special characters
** Test $file_contents includes a single single-quote character
** Test $file_contents includes multiple single-quote characters
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)