snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
This commit is contained in:
48
server/tests/dal/testdata/generic/_.sql
vendored
Normal file
48
server/tests/dal/testdata/generic/_.sql
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
DROP TABLE IF EXISTS compose_record;
|
||||
CREATE TABLE `compose_record` (
|
||||
`id` bigint unsigned NOT NULL,
|
||||
`rel_namespace` bigint unsigned NOT NULL,
|
||||
`module_id` bigint unsigned NOT NULL,
|
||||
|
||||
`values` json DEFAULT NULL,
|
||||
|
||||
`owned_by` bigint unsigned NOT NULL,
|
||||
`created_at` datetime NOT NULL,
|
||||
`updated_at` datetime DEFAULT NULL,
|
||||
`deleted_at` datetime DEFAULT NULL,
|
||||
`created_by` bigint unsigned NOT NULL,
|
||||
`updated_by` bigint unsigned NOT NULL DEFAULT '0',
|
||||
`deleted_by` bigint unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `compose_record_owner` (`owned_by`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
|
||||
|
||||
DROP TABLE IF EXISTS compose_record_partitioned;
|
||||
CREATE TABLE `compose_record_partitioned` (
|
||||
`id` bigint unsigned NOT NULL,
|
||||
|
||||
`vID` BIGINT UNSIGNED,
|
||||
`vRef` BIGINT UNSIGNED,
|
||||
`vTimestamp` DATETIME,
|
||||
`vTime` TIME,
|
||||
`vDate` DATE,
|
||||
`vNumber` NUMERIC,
|
||||
`vText` TEXT,
|
||||
`vBoolean_T` BOOLEAN,
|
||||
`vBoolean_F` BOOLEAN,
|
||||
`vEnum` TEXT,
|
||||
`vGeometry` TEXT,
|
||||
`vJSON` TEXT,
|
||||
`vBlob` BLOB,
|
||||
`vUUID` VARCHAR(36),
|
||||
|
||||
`owned_by` bigint unsigned NOT NULL,
|
||||
`created_at` datetime NOT NULL,
|
||||
`updated_at` datetime DEFAULT NULL,
|
||||
`deleted_at` datetime DEFAULT NULL,
|
||||
`created_by` bigint unsigned NOT NULL,
|
||||
`updated_by` bigint unsigned NOT NULL DEFAULT '0',
|
||||
`deleted_by` bigint unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `compose_record_owner` (`owned_by`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
|
||||
32
server/tests/dal/testdata/generic/nok_connection_connectivity.json
vendored
Normal file
32
server/tests/dal/testdata/generic/nok_connection_connectivity.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"handle": "test_connection",
|
||||
"type": "corteza::system:dal-connection",
|
||||
|
||||
"meta": {
|
||||
"name": "Test Connection",
|
||||
"location": {
|
||||
"geometry": {
|
||||
"type": "",
|
||||
"coordinates": null
|
||||
},
|
||||
"properties": {
|
||||
"name": ""
|
||||
}
|
||||
},
|
||||
"ownership": ""
|
||||
},
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"modelIdent": "compose_record",
|
||||
|
||||
"type": "corteza::dal:connection:dsn",
|
||||
"params": {
|
||||
"dsn": "NO"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
32
server/tests/dal/testdata/generic/nok_connection_invalid_type.json
vendored
Normal file
32
server/tests/dal/testdata/generic/nok_connection_invalid_type.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"handle": "test_connection",
|
||||
"type": "corteza::system:primary-dal-connection",
|
||||
|
||||
"meta": {
|
||||
"name": "Test Connection",
|
||||
"location": {
|
||||
"geometry": {
|
||||
"type": "",
|
||||
"coordinates": null
|
||||
},
|
||||
"properties": {
|
||||
"name": ""
|
||||
}
|
||||
},
|
||||
"ownership": ""
|
||||
},
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"modelIdent": "compose_record",
|
||||
|
||||
"type": "corteza::dal:connection:dsn",
|
||||
"params": {
|
||||
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
32
server/tests/dal/testdata/generic/nok_connection_sensitivity.json
vendored
Normal file
32
server/tests/dal/testdata/generic/nok_connection_sensitivity.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"handle": "test_connection",
|
||||
"type": "corteza::system:dal-connection",
|
||||
|
||||
"meta": {
|
||||
"name": "Test Connection",
|
||||
"location": {
|
||||
"geometry": {
|
||||
"type": "",
|
||||
"coordinates": null
|
||||
},
|
||||
"properties": {
|
||||
"name": ""
|
||||
}
|
||||
},
|
||||
"ownership": ""
|
||||
},
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"modelIdent": "compose_record",
|
||||
|
||||
"type": "corteza::dal:connection:dsn",
|
||||
"params": {
|
||||
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "42"
|
||||
}
|
||||
}
|
||||
}
|
||||
38
server/tests/dal/testdata/generic/nok_module_missing_field_sensitivity_level.json
vendored
Normal file
38
server/tests/dal/testdata/generic/nok_module_missing_field_sensitivity_level.json
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "internal_non_partitioned",
|
||||
"handle": "internal_non_partitioned",
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"connectionID": "0",
|
||||
"operations": [],
|
||||
"partitioned": false
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
},
|
||||
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"kind": "String",
|
||||
|
||||
"config": {
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "42",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"kind": "Email"
|
||||
},
|
||||
{
|
||||
"name": "a_number",
|
||||
"kind": "Number"
|
||||
}
|
||||
]
|
||||
}
|
||||
36
server/tests/dal/testdata/generic/nok_module_missing_sensitivity_level.json
vendored
Normal file
36
server/tests/dal/testdata/generic/nok_module_missing_sensitivity_level.json
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "internal_non_partitioned",
|
||||
"handle": "internal_non_partitioned",
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"connectionID": "0",
|
||||
"operations": [],
|
||||
"partitioned": false
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "42",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
},
|
||||
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"kind": "String",
|
||||
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"kind": "Email"
|
||||
},
|
||||
{
|
||||
"name": "a_number",
|
||||
"kind": "Number"
|
||||
}
|
||||
]
|
||||
}
|
||||
37
server/tests/dal/testdata/generic/nok_module_sensitivity_level.json
vendored
Normal file
37
server/tests/dal/testdata/generic/nok_module_sensitivity_level.json
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "internal_non_partitioned",
|
||||
"handle": "internal_non_partitioned",
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"connectionID": "0",
|
||||
"operations": [],
|
||||
"partitioned": false
|
||||
},
|
||||
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "42",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
},
|
||||
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"kind": "String",
|
||||
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"kind": "Email"
|
||||
},
|
||||
{
|
||||
"name": "a_number",
|
||||
"kind": "Number"
|
||||
}
|
||||
]
|
||||
}
|
||||
32
server/tests/dal/testdata/generic/ok_connection.json
vendored
Normal file
32
server/tests/dal/testdata/generic/ok_connection.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"handle": "test_connection",
|
||||
"type": "corteza::system:dal-connection",
|
||||
|
||||
"meta": {
|
||||
"name": "Test Connection",
|
||||
"location": {
|
||||
"geometry": {
|
||||
"type": "",
|
||||
"coordinates": null
|
||||
},
|
||||
"properties": {
|
||||
"name": ""
|
||||
}
|
||||
},
|
||||
"ownership": ""
|
||||
},
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"modelIdent": "compose_record",
|
||||
|
||||
"type": "corteza::dal:connection:dsn",
|
||||
"params": {
|
||||
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
32
server/tests/dal/testdata/generic/ok_connection_update.json
vendored
Normal file
32
server/tests/dal/testdata/generic/ok_connection_update.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"handle": "test_connection_edited",
|
||||
"type": "corteza::system:dal-connection",
|
||||
|
||||
"meta": {
|
||||
"name": "Test Connection EDITED",
|
||||
"location": {
|
||||
"geometry": {
|
||||
"type": "",
|
||||
"coordinates": null
|
||||
},
|
||||
"properties": {
|
||||
"name": ""
|
||||
}
|
||||
},
|
||||
"ownership": ""
|
||||
},
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"modelIdent": "compose_record",
|
||||
|
||||
"type": "corteza::dal:connection:dsn",
|
||||
"params": {
|
||||
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
31
server/tests/dal/testdata/generic/ok_module.json
vendored
Normal file
31
server/tests/dal/testdata/generic/ok_module.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "internal_non_partitioned",
|
||||
"handle": "internal_non_partitioned",
|
||||
|
||||
"config": {
|
||||
"dal": {
|
||||
"connectionID": "0",
|
||||
"operations": [],
|
||||
"partitioned": false
|
||||
},
|
||||
"privacy": {
|
||||
"sensitivityLevelID": "0",
|
||||
"usageDisclosure": "A"
|
||||
}
|
||||
},
|
||||
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"kind": "String"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"kind": "Email"
|
||||
},
|
||||
{
|
||||
"name": "a_number",
|
||||
"kind": "Number"
|
||||
}
|
||||
]
|
||||
}
|
||||
16
server/tests/dal/testdata/generic/ok_record.json
vendored
Normal file
16
server/tests/dal/testdata/generic/ok_record.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"values": [
|
||||
{
|
||||
"name": "name",
|
||||
"value": "Me"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"value": "me@test.tld"
|
||||
},
|
||||
{
|
||||
"name": "a_number",
|
||||
"value": "42"
|
||||
}
|
||||
]
|
||||
}
|
||||
16
server/tests/dal/testdata/generic/ok_record_update.json
vendored
Normal file
16
server/tests/dal/testdata/generic/ok_record_update.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"values": [
|
||||
{
|
||||
"name": "name",
|
||||
"value": "Me updated"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"value": "me+updated@test.tld"
|
||||
},
|
||||
{
|
||||
"name": "a_number",
|
||||
"value": "43"
|
||||
}
|
||||
]
|
||||
}
|
||||
8
server/tests/dal/testdata/generic/ok_sensitivity_level.json
vendored
Normal file
8
server/tests/dal/testdata/generic/ok_sensitivity_level.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"handle": "private",
|
||||
"level": 1,
|
||||
"meta": {
|
||||
"name": "private sensitivity",
|
||||
"description": "data is private to the owner"
|
||||
}
|
||||
}
|
||||
8
server/tests/dal/testdata/generic/ok_sensitivity_level_update.json
vendored
Normal file
8
server/tests/dal/testdata/generic/ok_sensitivity_level_update.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"handle": "private_edited",
|
||||
"level": 1,
|
||||
"meta": {
|
||||
"name": "private sensitivity",
|
||||
"description": "data is private to the owner"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user