diff --git a/RAMP/module_metadata.py b/RAMP/module_metadata.py index d5adbe8..6623366 100644 --- a/RAMP/module_metadata.py +++ b/RAMP/module_metadata.py @@ -28,7 +28,7 @@ RUN_COMMAND_LINE_ARGS = None MIN_REDIS_VERSION = "4.0" MIN_REDIS_PACK_VERSION = "5.2" -COMPATIBLE_REDIS_VERSION = "7.6" +COMPATIBLE_REDIS_VERSION = "7.4" RAMP_FORMAT_VERSION = 1 CONFIG_COMMAND = "" OVERIDE_COMMAND = [] # type: List[Dict[str, str]] diff --git a/RAMP/ramp.py b/RAMP/ramp.py index 847f194..eca1c70 100755 --- a/RAMP/ramp.py +++ b/RAMP/ramp.py @@ -98,7 +98,7 @@ def unpack(bundle): @click.option('--runcmdargs', 'run_command_line_args', default=None, help='if set, use those args when running the redis server') @click.option('--redis-min-version', '-r', 'min_redis_version', default=None, help='redis minimum version') @click.option('--redis-pack-min-version', '-R', 'min_redis_pack_version', default=None, help='redis pack minimum version') -@click.option('--compatible_redis_version', '-R', 'compatible_redis_version', default=None, help='redis compatible version') +@click.option('--compatible_redis_version', '-cr', 'compatible_redis_version', default=None, help='redis compatible version') @click.option('--config-command', '-cc', default=None, help='command used to configure module args at runtime') @click.option('--os', '-O', default=None, help='build target OS (Darwin/Linux)') @click.option('--capabilities', '-C', callback=comma_seperated_to_list, help='comma separated list of module capabilities') diff --git a/test.py b/test.py index 9e0f24f..f8190f5 100644 --- a/test.py +++ b/test.py @@ -114,6 +114,7 @@ def test_bundle_from_cmd(): command_line_args = "\\\"-output f --level debug\\\"" min_redis_version = "4.6" min_redis_pack_version = "5.0" + compatible_redis_version = "7.2" display_name = "test_module" capability_name = "Test & Module" module_name = "module_test" @@ -121,7 +122,7 @@ def test_bundle_from_cmd(): argv = [MODULE_FILE_PATH, '-a', author, '-e', email, '-D', description, '-d', display_name, '-b', capability_name, '-n', module_name, '-h', homepage, '-l', _license, '-c', command_line_args, - '-r', min_redis_version, '-R', min_redis_pack_version, + '-r', min_redis_version, '-R', min_redis_pack_version, '-cr', compatible_redis_version, '-C', ','.join([cap['name'] for cap in MODULE_CAPABILITIES]), '-o', BUNDLE_ZIP_FILE, '-cc', CONFIG_COMMAND, '-E', 'graph.bulk', '-E', 'graph.BULK', @@ -150,6 +151,7 @@ def test_bundle_from_cmd(): assert metadata["command_line_args"] == command_line_args assert metadata["min_redis_version"] == min_redis_version assert metadata["min_redis_pack_version"] == min_redis_pack_version + assert metadata["compatible_redis_version"] == compatible_redis_version assert metadata["config_command"] == CONFIG_COMMAND assert metadata["sha256"] == sha256_checksum(MODULE_FILE_PATH) assert len(metadata["capabilities"]) == len(MODULE_CAPABILITIES)