mirror of
https://github.com/emqx/neuron.git
synced 2026-10-26 11:56:10 +08:00
Merge pull request #2592 from ZhouBox/v2.13
[v2.13]1.update cert schema 2.add datatag when sub app frist sending
This commit is contained in:
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS client_certificates (
|
||||
valid_from DATETIME,
|
||||
valid_to DATETIME,
|
||||
serial_number TEXT,
|
||||
fingerprint TEXT UNIQUE,
|
||||
fingerprint TEXT,
|
||||
certificate_data BLOB NOT NULL,
|
||||
is_ca INTEGER DEFAULT 0,
|
||||
trust_status INTEGER DEFAULT 0,
|
||||
@@ -75,6 +75,7 @@ CREATE TABLE IF NOT EXISTS client_certificates (
|
||||
CREATE INDEX IF NOT EXISTS idx_client_certificates_app_name ON client_certificates(app_name);
|
||||
CREATE INDEX IF NOT EXISTS idx_client_certificates_common_name ON client_certificates(common_name);
|
||||
CREATE INDEX IF NOT EXISTS idx_client_certificates_fingerprint ON client_certificates(fingerprint);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_client_certificates_app_name_fingerprint ON client_certificates(app_name, fingerprint);
|
||||
|
||||
-- Create security policies table for northbound app security management
|
||||
CREATE TABLE IF NOT EXISTS security_policies (
|
||||
|
||||
@@ -2690,6 +2690,7 @@ static void read_group(int64_t timestamp, int64_t timeout,
|
||||
neu_driver_cache_value_t value = { 0 };
|
||||
|
||||
strcpy(tag_value.tag, tag->name);
|
||||
tag_value.datatag = *tag;
|
||||
|
||||
tag_value.datatag.bias = tag->bias;
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ class TestPlugin:
|
||||
assert 200 == response.status_code
|
||||
for plugin in response.json().get("plugins"):
|
||||
if plugin['name'] == 'c1':
|
||||
assert plugin['version'] == '2.12.99'
|
||||
assert plugin['version'] == '2.13.99'
|
||||
|
||||
@description(given="incorrect configuration", when="update plugin", then="fail")
|
||||
def test_10_update_plugin_fail3(self):
|
||||
|
||||
Reference in New Issue
Block a user