diff options
author | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-05-06 09:58:06 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2008-05-15 15:42:08 -0400 |
commit | 882ba5be7f4e9f41bf34aff7e85049f30c4d23a5 (patch) | |
tree | 897e4a9e484d89ded64349bb84a7b0e426eba985 /tests | |
parent | 9c4703b25e43a3102ac79d6c5d15ea24f8e034d6 (diff) | |
download | puppet-mysql-882ba5be7f4e9f41bf34aff7e85049f30c4d23a5.tar.gz puppet-mysql-882ba5be7f4e9f41bf34aff7e85049f30c4d23a5.tar.xz puppet-mysql-882ba5be7f4e9f41bf34aff7e85049f30c4d23a5.zip |
Removing the mysql plugin
Diffstat (limited to 'tests')
-rw-r--r-- | tests/001_create_database.pp | 4 | ||||
-rw-r--r-- | tests/010_create_user.pp | 7 | ||||
-rw-r--r-- | tests/012_change_password.pp | 6 | ||||
-rw-r--r-- | tests/100_create_user_grant.pp | 9 | ||||
-rw-r--r-- | tests/101_remove_user_privilege.pp | 8 | ||||
-rw-r--r-- | tests/102_add_user_privilege.pp | 8 | ||||
-rw-r--r-- | tests/103_change_user_grant.pp | 8 | ||||
-rw-r--r-- | tests/104_mix_user_grants.pp | 8 | ||||
-rw-r--r-- | tests/150_create_db_grant.pp | 9 | ||||
-rw-r--r-- | tests/151_remove_db_privilege.pp | 8 | ||||
-rw-r--r-- | tests/152_add_db_privilege.pp | 8 | ||||
-rw-r--r-- | tests/153_change_db_priv.pp | 8 | ||||
-rw-r--r-- | tests/154_mix_db_grants.pp | 8 | ||||
-rw-r--r-- | tests/200_give_all_user_privs.pp | 8 | ||||
-rw-r--r-- | tests/201_give_all_db_privs.pp | 8 | ||||
-rw-r--r-- | tests/996_remove_db_grant.pp | 5 | ||||
-rw-r--r-- | tests/997_remove_user_grant.pp | 5 | ||||
-rw-r--r-- | tests/998_remove_user.pp | 3 | ||||
-rw-r--r-- | tests/999_remove_database.pp | 3 | ||||
-rw-r--r-- | tests/README | 6 | ||||
-rwxr-xr-x | tests/run_tests | 13 |
21 files changed, 0 insertions, 150 deletions
diff --git a/tests/001_create_database.pp b/tests/001_create_database.pp deleted file mode 100644 index 4e489cc..0000000 --- a/tests/001_create_database.pp +++ /dev/null @@ -1,4 +0,0 @@ - -err("Will create 'test_db'") -mysql_database { "test_db": ensure => present } - diff --git a/tests/010_create_user.pp b/tests/010_create_user.pp deleted file mode 100644 index a45ed5b..0000000 --- a/tests/010_create_user.pp +++ /dev/null @@ -1,7 +0,0 @@ - -err("Will create user 'test_user@%' with password 'blah'") - -mysql_user{ "test_user@%": - password_hash => mysql_password("blah"), - ensure => present -} diff --git a/tests/012_change_password.pp b/tests/012_change_password.pp deleted file mode 100644 index 7bf7f02..0000000 --- a/tests/012_change_password.pp +++ /dev/null @@ -1,6 +0,0 @@ - -err("Changing password for user 'test_user@%'") -mysql_user{ "test_user@%": - password_hash => mysql_password("foo"), - ensure => present -} diff --git a/tests/100_create_user_grant.pp b/tests/100_create_user_grant.pp deleted file mode 100644 index 1d3dca8..0000000 --- a/tests/100_create_user_grant.pp +++ /dev/null @@ -1,9 +0,0 @@ -err("Grant SELECT, INSERT and UPDATE to test_user@%") - -mysql_grant { - "test_user@%": - privileges => [ "select_priv", 'insert_priv', 'update_priv' ], - tag => test; -} - - diff --git a/tests/101_remove_user_privilege.pp b/tests/101_remove_user_privilege.pp deleted file mode 100644 index 6b7029e..0000000 --- a/tests/101_remove_user_privilege.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Revoke UPDATE from test_user@%") - -mysql_grant { - "test_user@%": - privileges => [ "select_priv", 'insert_priv' ], -} - - diff --git a/tests/102_add_user_privilege.pp b/tests/102_add_user_privilege.pp deleted file mode 100644 index 849cd3a..0000000 --- a/tests/102_add_user_privilege.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Grant DELETE to test_user@%") - -mysql_grant { - "test_user@%": - privileges => [ "select_priv", 'insert_priv', 'delete_priv' ], -} - - diff --git a/tests/103_change_user_grant.pp b/tests/103_change_user_grant.pp deleted file mode 100644 index fa860a3..0000000 --- a/tests/103_change_user_grant.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Replace DELETE with UPDATE grant for test_user@%") - -mysql_grant { - "test_user@%": - privileges => [ "select_priv", 'insert_priv', 'update_priv' ], -} - - diff --git a/tests/104_mix_user_grants.pp b/tests/104_mix_user_grants.pp deleted file mode 100644 index d0dc512..0000000 --- a/tests/104_mix_user_grants.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Change the order of the defined privileges") - -mysql_grant { - "test_user@%": - privileges => [ "update_priv", 'insert_priv', 'select_priv' ], -} - - diff --git a/tests/150_create_db_grant.pp b/tests/150_create_db_grant.pp deleted file mode 100644 index 597993d..0000000 --- a/tests/150_create_db_grant.pp +++ /dev/null @@ -1,9 +0,0 @@ -err("Create a db grant") - -mysql_grant { - "test_user@%test_db": - privileges => [ "select_priv", 'insert_priv', 'update_priv' ], - tag => test; -} - - diff --git a/tests/151_remove_db_privilege.pp b/tests/151_remove_db_privilege.pp deleted file mode 100644 index da3246f..0000000 --- a/tests/151_remove_db_privilege.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Revoke UPDATE from test_user@%test_db") - -mysql_grant { - "test_user@%test_db": - privileges => [ "select_priv", 'insert_priv'], -} - - diff --git a/tests/152_add_db_privilege.pp b/tests/152_add_db_privilege.pp deleted file mode 100644 index 6dd00d1..0000000 --- a/tests/152_add_db_privilege.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Grant DELETE to test_user@%test_db") - -mysql_grant { - "test_user@%test_db": - privileges => [ "select_priv", 'insert_priv', 'delete_priv'], -} - - diff --git a/tests/153_change_db_priv.pp b/tests/153_change_db_priv.pp deleted file mode 100644 index f72dab8..0000000 --- a/tests/153_change_db_priv.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Change DELETE to UPDATE privilege for test_user@%test_db") - -mysql_grant { - "test_user@%test_db": - privileges => [ "select_priv", 'insert_priv', 'update_priv'], -} - - diff --git a/tests/154_mix_db_grants.pp b/tests/154_mix_db_grants.pp deleted file mode 100644 index 408308f..0000000 --- a/tests/154_mix_db_grants.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Change privilege order") - -mysql_grant { - "test_user@%test_db": - privileges => [ "update_priv", 'insert_priv', 'select_priv'], -} - - diff --git a/tests/200_give_all_user_privs.pp b/tests/200_give_all_user_privs.pp deleted file mode 100644 index cb59c8d..0000000 --- a/tests/200_give_all_user_privs.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Grant ALL to test_user@%") - -mysql_grant { - "test_user@%": - privileges => all -} - - diff --git a/tests/201_give_all_db_privs.pp b/tests/201_give_all_db_privs.pp deleted file mode 100644 index 745048f..0000000 --- a/tests/201_give_all_db_privs.pp +++ /dev/null @@ -1,8 +0,0 @@ -err("Grant ALL to test_user@%/test_db") - -mysql_grant { - "test_user@%/test_db": - privileges => all -} - - diff --git a/tests/996_remove_db_grant.pp b/tests/996_remove_db_grant.pp deleted file mode 100644 index a93c2a3..0000000 --- a/tests/996_remove_db_grant.pp +++ /dev/null @@ -1,5 +0,0 @@ -err("Remove the db grant") - -mysql_grant { "test_user@%test_db": privileges => [ ] } - - diff --git a/tests/997_remove_user_grant.pp b/tests/997_remove_user_grant.pp deleted file mode 100644 index fcdc490..0000000 --- a/tests/997_remove_user_grant.pp +++ /dev/null @@ -1,5 +0,0 @@ -err("Removing the user grant") - -mysql_grant { "test_user@%": privileges => [] } - - diff --git a/tests/998_remove_user.pp b/tests/998_remove_user.pp deleted file mode 100644 index 649e739..0000000 --- a/tests/998_remove_user.pp +++ /dev/null @@ -1,3 +0,0 @@ - -err("Removing user 'test_user@%'") -mysql_user{ "test_user@%": ensure => absent } diff --git a/tests/999_remove_database.pp b/tests/999_remove_database.pp deleted file mode 100644 index 8a5df3e..0000000 --- a/tests/999_remove_database.pp +++ /dev/null @@ -1,3 +0,0 @@ -err("Will remove 'test_db'") -mysql_database { "test_db": ensure => absent } - diff --git a/tests/README b/tests/README deleted file mode 100644 index 7ef1421..0000000 --- a/tests/README +++ /dev/null @@ -1,6 +0,0 @@ -Execute these testfile in asciibetical order to check the functioning of the -types and providers. - -They try to create databases, users, grants, check for their existance, change -attributes, and remove them again. - diff --git a/tests/run_tests b/tests/run_tests deleted file mode 100755 index 1ae6c42..0000000 --- a/tests/run_tests +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -export RUBYLIB=${RUBYLIB:-../plugins} -OPTIONS="$*" -OPTIONS="${OPTIONS:---trace}" - -find -iname \*.pp | sort | while read current; do - echo "Running $current" - puppet $OPTIONS $current - echo "Running $current again" - puppet $OPTIONS $current - echo -done |