rustyrazorblade commented on code in PR #49:
URL: 
https://github.com/apache/cassandra-easy-stress/pull/49#discussion_r2255035831


##########
src/main/kotlin/com/rustyrazorblade/easycassstress/Plugin.kt:
##########
@@ -67,6 +67,31 @@ data class Plugin(
 
             return result
         }
+
+        /**
+         * Returns plugins suitable for testing, filtering out those requiring
+         * special environments unless corresponding environment variables are 
set.
+         */
+        fun getPluginsForTesting(envVars: Map<String, String> = 
System.getenv()): Map<String, Plugin> {
+            val allPlugins = getPlugins()
+            val testDSE = envVars["TEST_DSE"] != null
+            val testMVs = envVars["TEST_MVS"] != null
+            val testAccord = envVars["TEST_ACCORD"] == "1"

Review Comment:
   good catch, will fix



-- 
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: commits-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to