diff options
author | Daniel Schwarz <bartfastiel@users.noreply.github.com> | 2017-01-23 16:08:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 16:08:49 +0100 |
commit | 0832a517c9b7cb70d51ba6557094a605a8a9efdc (patch) | |
tree | 2fa021674a42d7e7a0291cced2301d52e69d8489 /sonar-db/src/test/resources | |
parent | 0584dc8d5d5d82a2035763c34afba0e12cf6e8d0 (diff) | |
download | sonarqube-0832a517c9b7cb70d51ba6557094a605a8a9efdc.tar.gz sonarqube-0832a517c9b7cb70d51ba6557094a605a8a9efdc.zip |
SONAR-8238 when updating a project, clear ALL components from index
Diffstat (limited to 'sonar-db/src/test/resources')
-rw-r--r-- | sonar-db/src/test/resources/org/sonar/db/component/ComponentDaoTest/selectForIndexing.xml | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/sonar-db/src/test/resources/org/sonar/db/component/ComponentDaoTest/selectForIndexing.xml b/sonar-db/src/test/resources/org/sonar/db/component/ComponentDaoTest/selectForIndexing.xml new file mode 100644 index 00000000000..7c4f24eda93 --- /dev/null +++ b/sonar-db/src/test/resources/org/sonar/db/component/ComponentDaoTest/selectForIndexing.xml @@ -0,0 +1,185 @@ +<dataset> + + <organizations uuid="org1" + kee="org1_key" + name="org1_name" + created_at="1000" + updated_at="1000"/> + + <!-- root project --> + <projects organization_uuid="org1" + id="1" + scope="PRJ" + qualifier="TRK" + kee="org.struts:struts" + deprecated_kee="org.struts:struts" + name="Struts" + uuid="U1" + uuid_path="uuid_path_of_U1" + root_uuid="U1" + project_uuid="U1" + module_uuid="module_uuid_of_U1" + module_uuid_path="module_uuid_path_of_U1" + description="the description" + long_name="Apache Struts" + enabled="[true]" + language="java" + copy_component_uuid="[null]" + developer_uuid="[null]" + path="path_of_U1" + authorization_updated_at="123456789"/> + + <!-- module --> + <projects organization_uuid="org1" + id="2" + kee="org.struts:struts-core" + name="Struts Core" + uuid="U2" + uuid_path="uuid_path_of_U2" + project_uuid="U1" + root_uuid="U1" + module_uuid="[null]" + module_uuid_path="module_uuid_path_of_U2" + scope="PRJ" + qualifier="BRC" + long_name="Struts Core" + description="[null]" + enabled="[true]" + language="[null]" + copy_component_uuid="[null]" + developer_uuid="[null]" + authorization_updated_at="[null]"/> + + <!-- directory --> + <projects organization_uuid="org1" + long_name="org.struts" + id="3" + scope="DIR" + qualifier="DIR" + kee="org.struts:struts-core:src/org/struts" + uuid="U3" + uuid_path="uuid_path_of_U3" + project_uuid="U1" + root_uuid="U1" + module_uuid="module_uuid_of_U3" + module_uuid_path="module_uuid_path_of_U3" + name="src/org/struts" + description="[null]" + enabled="[true]" + language="[null]" + copy_component_uuid="[null]" + developer_uuid="[null]" + path="src/org/struts" + authorization_updated_at="[null]"/> + + <!-- file --> + <projects organization_uuid="org1" + long_name="org.struts.RequestContext" + id="4" + scope="FIL" + qualifier="FIL" + kee="org.struts:struts-core:src/org/struts/RequestContext.java" + uuid="U4" + uuid_path="uuid_path_of_U4" + project_uuid="U1" + root_uuid="U1" + module_uuid="module_uuid_of_U4" + module_uuid_path="module_uuid_path_of_U4" + name="RequestContext.java" + description="[null]" + enabled="[true]" + language="java" + copy_component_uuid="[null]" + developer_uuid="[null]" + path="path_of_U4" + authorization_updated_at="[null]"/> + + <!-- root project --> + <projects organization_uuid="org1" + id="5" + scope="PRJ" + qualifier="TRK" + kee="org.paper:paper" + deprecated_kee="org.paper:paper" + name="Paper" + uuid="U5" + uuid_path="uuid_path_of_U5" + root_uuid="U5" + project_uuid="U5" + module_uuid="module_uuid_of_U5" + module_uuid_path="module_uuid_path_of_U5" + description="the description" + long_name="Some Paper" + enabled="[true]" + language="java" + copy_component_uuid="[null]" + developer_uuid="[null]" + path="path_of_U5" + authorization_updated_at="123456789"/> + + <!-- module --> + <projects organization_uuid="org1" + id="6" + kee="org.paper:paper-core" + name="Paper Core" + uuid="U6" + uuid_path="uuid_path_of_U6" + project_uuid="U5" + root_uuid="U5" + module_uuid="[null]" + module_uuid_path="module_uuid_path_of_U6" + scope="PRJ" + qualifier="BRC" + long_name="Paper Core" + description="[null]" + enabled="[true]" + language="[null]" + copy_component_uuid="[null]" + developer_uuid="[null]" + authorization_updated_at="[null]"/> + + <!-- Disabled projects --> + <projects organization_uuid="org1" + id="7" + scope="PRJ" + qualifier="TRK" + kee="org.disabled.project" + name="Disabled Project" + uuid="DIS7" + uuid_path="uuid_path_of_DIS7" + project_uuid="project_uuid_of_DIS7" + root_uuid="root_uuid_of_DIS7" + module_uuid="[null]" + module_uuid_path="module_uuid_path_of_DIS7" + description="the description" + long_name="Disabled project" + enabled="[false]" + language="[null]" + copy_component_uuid="[null]" + developer_uuid="[null]" + path="[null]" + authorization_updated_at="[null]"/> + + <!-- copy component projects --> + <projects organization_uuid="org1" + id="8" + scope="PRJ" + qualifier="TRK" + kee="org.copy.project" + name="Copy Project" + uuid="COPY8" + uuid_path="uuid_path_of_COPY8" + project_uuid="project_uuid_of_COPY8" + root_uuid="root_uuid_of_COPY8" + module_uuid="[null]" + module_uuid_path="module_uuid_path_of_COPY8" + description="the description" + long_name="Copy project" + enabled="[true]" + language="[null]" + copy_component_uuid="U1" + developer_uuid="[null]" + path="[null]" + authorization_updated_at="[null]"/> + +</dataset> |