Code

store::memory: Add a plugin providing an in-memory store.
[sysdb.git] / t / integration / ssl.sh
index c68494afbe7617e3da7d742e2803544aee9b28f3..0c7177dc27a334beffae60407a1ae2e20e88cafb 100755 (executable)
@@ -41,6 +41,8 @@ cat <<EOF > "$SYSDBD_CONF"
        SSLCertificateKey "$SERVER_KEY"
        SSLCACertificates "$CA_CERT"
 </Listen>
+PluginDir "$PLUGIN_DIR"
+LoadPlugin "store::memory"
 EOF
 run_sysdbd -D -C "$SYSDBD_CONF"
 wait_for_sysdbd_tcp localhost 12345
@@ -48,6 +50,9 @@ wait_for_sysdbd_tcp localhost 12345
 run_sysdb -H "localhost:12345" -c 'LIST hosts' -U "$SYSDB_USER-invalid" \
        -A "$CA_CERT" -C "$CLIENT_CERT" -K "$CLIENT_KEY" && exit 1
 
+run_sysdb -H "localhost:12345" -c 'LIST hosts' -U "$SYSDB_USER-invalid" \
+       -A "$CA_CERT" -C "${CLIENT_CERT}.doesnotexist" -K "$CLIENT_KEY" && exit 1
+
 run_sysdb -H "localhost:12345" -c 'LIST hosts' -U "$SYSDB_USER" \
        -A "$CA_CERT" -C "$CLIENT_CERT" -K "$CLIENT_KEY"