2 ============LICENSE_START=======================================================
3 Copyright (C) 2021 Nordix Foundation.
4 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
21 INSERT INTO DATASPACE (ID, NAME) VALUES
22 (1001, 'dataspace-1'), (1002, 'dataspace-2');
24 INSERT INTO SCHEMA_SET (ID, NAME, DATASPACE_ID) VALUES
25 (2001, 'schema-set-1', 1001),
26 (2002, 'schema-set-2', 1001),
27 (2003, 'schema-set-3', 1001),
28 (2004, 'schema-set-4', 1002);
30 INSERT INTO YANG_RESOURCE (ID, NAME, CONTENT, CHECKSUM, MODULE_NAME, REVISION) VALUES
31 (3001, 'module1@revA.yang', 'some-content', 'checksum1','module-name-1','revA'),
32 (3002, 'module2@revA.yang', 'some-content', 'checksum2','module-name-2','revA'),
33 (3003, 'module2@revB.yang', 'some-content', 'checksum3','module-name-2','revB'),
34 (3004, 'module3@revA.yang', 'some-content', 'checksum4','module-name-3','revA');
36 INSERT INTO SCHEMA_SET_YANG_RESOURCES (SCHEMA_SET_ID, YANG_RESOURCE_ID) VALUES
37 (2001, 3001), --schema-set-1(anchor-1) has modules module1@revA, module2@revA
39 (2002, 3001), --schema-set-2(anchor-2) has modules module1@revA, module2@revB
41 (2003, 3002), --schema-set-3(anchor-3) has modules module2@revA, module2@revB
43 (2004, 3001); --schema-set-4(anchor-4) has module module1@revA but in other dataspace
45 INSERT INTO ANCHOR (ID, NAME, DATASPACE_ID, SCHEMA_SET_ID) VALUES
46 (6001, 'anchor-1', 1001, 2001),
47 (6002, 'anchor-2', 1001, 2002),
48 (6003, 'anchor-3', 1001, 2003),
49 (6005, 'anchor-4', 1002, 2004);