# 8. AN preparing the synchronization tests

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">These are the steps that will be taken before the tests: </span>

#### <span style="font-size: 12pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">8.1. Backup before testing </span>

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Perform a </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">dump backup</span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> of the Scorpio data so we can restore it afterwards and </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">delete the data </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">of your DB. Remember to put it out of your docker or it </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">will disappear</span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> if you restart your AN. </span>

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 8pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">How you could delete the data</span></span>

<table id="bkmrk-kubectl-get-pvc--n-%3C" style="border: none; border-collapse: collapse;"><colgroup></colgroup><tbody><tr style="height: 0pt;"><td style="vertical-align: top; background-color: #333333; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word;"><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #a2fca2; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">kubectl <span style="color: rgb(251, 238, 184);">get </span>pvc -n <span style="color: rgb(230, 126, 35);">&lt;namespace&gt;</span>  
kubectl <span style="color: rgb(251, 238, 184);">delete </span>pvc postgris-0  
kubectl <span style="color: rgb(251, 238, 184);">delete </span>pod postgis-0 -n <span style="color: rgb(230, 126, 35);">&lt;namespace&gt;</span> --grace-period=0 --force</span></span>

</td></tr></tbody></table>

If you change any of your settings, be careful with the PVC's; they could interfere negatively. It's advisable to remove them whenever there's a major change.

#### <span style="font-size: 12pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">8.2. Configuration for testing</span>

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Add the </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">externalAccessNodesUrls</span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> configuration </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">inside </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">the </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">APP block</span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> as shown on the image below, which should be adapted for these tests. (It will be reconfigured later to point to the correct location.)</span>

<div align="left" dir="ltr" id="bkmrk-externalaccessnodesu" style="margin-left: 0pt;"><table style="border: none; border-collapse: collapse;"><colgroup></colgroup><tbody><tr style="height: 0pt;"><td style="vertical-align: top; background-color: #333333; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word;"><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #a2fca2; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">externalAccessNodesUrls:</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">  
</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #a2fca2; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">enableCustomUrls:</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #fcc28c; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">  
</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #a2fca2; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">customUrls:</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #a2fca2; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">https:</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #888888; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">//desmos.dome-marketplace-lcl.org"</span>

</td></tr></tbody></table>

</div><span style="font-size: 8pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">How it should looks</span>

#### <span style="font-size: 12pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">8.3. Review the values configuration and Trusted Lists registry </span>

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Verify that you complete all the steps above and your machine is correctly registered in the Trusted lists </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">  
</span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">  
</span>[<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #0000ff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: underline; -webkit-text-decoration-skip: none; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;">Trusted Lists github</span>](https://github.com/DOME-Marketplace/trust-framework/tree/main/sbx)<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span>

#### <span style="font-size: 12pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">8.4. Install AN </span>

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">After doing the previous steps, be sure that you installed your AN correctly. I'm leaving these commands here in case they're helpful. Remember that you need to throw these commands inside your values.yaml directory.</span>

<div align="left" dir="ltr" id="bkmrk-helm-dependency-buil" style="margin-left: 0pt;"><table style="border: none; border-collapse: collapse;"><tbody><tr style="height: 0pt;"><td style="vertical-align: top; background-color: #333333; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word;"><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">helm dependency </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #fcc28c; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">build </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">  
</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">helm </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #fcc28c; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">install </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">myaccessnode </span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. -f values.yaml</span>

</td></tr></tbody></table>

</div>If you already have the current AN installed, uninstall it to prevent any mixing between the new and old configurations.

<span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">helm uninstall myaccessnode</span>

#### <span style="font-size: 12pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">8.5. Desmos running without errors</span>

<span style="font-size: 11pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Confirm that your desmos pod is working correctly. You could check it with </span>

<span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">kubectl logs desmos</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #d36363; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">-648</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">bdbc988-pl2ft -n &lt;your-</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #fcc28c; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">namespace</span><span style="font-size: 11pt; font-family: Consolas,sans-serif; color: #ffffff; background-color: #333333; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt; -c desmos </span>

#### <span style="font-size: 12pt; font-family: Arial,sans-serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">8.6. Send an email</span>

<span style="font-size: 11pt; font-family: Consolas, sans-serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Send an email to <span style="color: rgb(53, 152, 219);"><span style="font-size: 11pt; font-family: Consolas, sans-serif; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[d](mailto:domesupport@in2.es)</span><span style="font-size: 11pt; font-family: Consolas, sans-serif; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[omesupport@in2.es](mailto:domesupport@in2.es)</span></span> informing them that everything is ready to perform the integration tests.</span>