Skip to content

Instantly share code, notes, and snippets.

@cjcjameson
Created April 18, 2017 16:43
Show Gist options
  • Save cjcjameson/e0e7fc208174cbd2f995686d965ed920 to your computer and use it in GitHub Desktop.
Save cjcjameson/e0e7fc208174cbd2f995686d965ed920 to your computer and use it in GitHub Desktop.
Successful Behave Run
@gpperfmon
Feature: gpperfmon
@gpperfmon_install
Scenario: install gpperfmon
Given the database "gpperfmon" does not exist
When the user runs "gpperfmon_install --port 15432 --enable --password foo"
Then gpperfmon_install should return a return code of 0
Then verify that the last line of the master postgres configuration file contains the string "gpperfmon_log_alert_level=warning"
And verify that there is a "heap" table "database_history" in "gpperfmon"
@gpperfmon_run
Scenario: run gpperfmon
Given the database "gpperfmon" does not exist
When the user runs "gpperfmon_install --port 15432 --enable --password foo"
Then gpperfmon_install should return a return code of 0
When the user runs command "pkill postgres"
And waiting "5" seconds
And the user runs "gpstart -a"
Then gpstart should return a return code of 0
Then verify that a role "gpmon" exists in database "gpperfmon"
Then verify that the last line of the master postgres configuration file contains the string "gpperfmon_log_alert_level=warning"
And verify that there is a "heap" table "database_history" in "gpperfmon"
When the user runs command "pgrep gpmmon"
Then pgrep should return a return code of 0
When waiting "5" seconds
When the user runs command "pgrep gpsmon"
Then pgrep should return a return code of 0
1 feature passed, 0 failed, 25 skipped
2 scenarios passed, 0 failed, 820 skipped
20 steps passed, 0 failed, 8496 skipped, 0 undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment