Copilot commented on code in PR #6002: URL: https://github.com/apache/hive/pull/6002#discussion_r2249390617
########## standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/properties/HMSTestBase.java: ########## @@ -145,6 +156,78 @@ public synchronized void tearDown() throws Exception { } } + /** + * This is how we created a self-signed certificate for localhost needed for https (ssl) configuration + * The keystore and truststore were generated using the following commands: + * % keytool -genkeypair -alias Hive -keyalg RSA -keysize 2048 -validity 3650 -storetype PKCS12 -keystore hive_keystore.p12 -storepass apache -keypass apache + * % keytool -export -alias Hive -file hive.crt -keystore hive_keystore.p12 -storepass apache + * % keytool -import -alias Hive -file hive.crt -keystore hive_trusstore.p012 -storepass apache -noprompt -storetype PKCS12 + */ + private static final String LOCALHOST_KEY_STORE_NAME = "hive_keystore.p12"; + private static final String KEY_STORE_TRUST_STORE_PASSWORD = "apache"; + private static final String TRUST_STORE_NAME = "hive_truststore.p12"; + private static final String STORES_DIR = "src/test/resources"; + + /** + * Sets the metastore configuration to use SSL. + Review Comment: The documentation comment lacks a closing */ and should be properly formatted as a complete JavaDoc comment block. ```suggestion * ``` ########## standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/properties/HMSTestBase.java: ########## @@ -145,6 +156,78 @@ public synchronized void tearDown() throws Exception { } } + /** + * This is how we created a self-signed certificate for localhost needed for https (ssl) configuration + * The keystore and truststore were generated using the following commands: + * % keytool -genkeypair -alias Hive -keyalg RSA -keysize 2048 -validity 3650 -storetype PKCS12 -keystore hive_keystore.p12 -storepass apache -keypass apache + * % keytool -export -alias Hive -file hive.crt -keystore hive_keystore.p12 -storepass apache + * % keytool -import -alias Hive -file hive.crt -keystore hive_trusstore.p012 -storepass apache -noprompt -storetype PKCS12 Review Comment: There's a typo in the filename 'hive_trusstore.p012'. It should be 'hive_truststore.p12' to match the constant TRUST_STORE_NAME defined below. ```suggestion * % keytool -import -alias Hive -file hive.crt -keystore hive_truststore.p12 -storepass apache -noprompt -storetype PKCS12 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org