lamp

Validate the LAMP stack which is a group of open source software that is typically installed together to enable a server to host dynamic websites and web applications.

What It Tests

  • apache2-test-page: validate the apache2 test page is accessable by curl

  • mysql-show-databases: validate the mysql command could show the information of the database

  • phpinfo: validate the PHP info page is accessable by curl

  • php-connect-db: validate connection to MySQL by PHP

  • php-create-db: validate creation of a MySQL database by PHP

  • php-create-table: validate creation of a MySQL table by PHP

  • php-add-record: validate add a record to MySQL table by PHP

  • php-select-record: validate select a record from MySQL table by PHP

  • php-delete-record: validate delete a record from MySQL table by PHP

Preconditions

  • For ostree enabled image, it shall be unlocked via ostree admin unlock --hotfix

Test Parameters

Parameter

Default

Description

SKIP_INSTALL

"False"

skip the install

Test Steps

cd ./automated/linux/lamp/
./lamp.sh -s "${SKIP_INSTALL}"

Refer to lamp.yaml for complete test definition and execution details.

Expected Results

  • apache2-test-page: the apache2 test page is accessable by curl

  • mysql-show-databases: mysql command could show the information of the database

  • phpinfo: the PHP info page is accessable by curl

  • php-connect-db: connection to MySQL by PHP is successful

  • php-create-db: creation of a MySQL database by PHP is successful

  • php-create-table: creation of a MySQL table by PHP is successful

  • php-add-record: add a record to MySQL table by PHP is successful

  • php-select-record: select a record from MySQL table by PHP is successful

  • php-delete-record: delete a record from MySQL table by PHP is successful

References