Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil <akhil.moogi@gmail.com>
  • Loading branch information
akhilmoogi committed Jan 29, 2025
1 parent 251988f commit 7bb5c43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions performance-test/syncdata-and-regproc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ Pre-requisite to install the plugins:
*For generating the packets, packet utility is required.
Step 1 - Packet utility setup.
Step 2 - We need device partner and device dsk partner certificate to be present in the auth certs.
Step 3 - For packet generation, need to create context for it. Will require api-internal.qa-platform1.mosip.net.12117.reg.key provided by the team or we can generate it from the dsl setup.
Step 3 - For packet generation, need to create context for it. Will require api-internal.cellbox1.mosip.net.12117.reg.key provided by the team or we can generate it from the dsl setup.
Step 4 - Update the secret keys for all the client's, user id, machine id and center id in create context. Also, update the mountPath and authCertsPath path variable.
Step 5 - Create packet.

*Once the packet utility is up and running pls check this swagger link
*Once the packet utility is up and running please check this swagger link
Swagger link - http://localhost:8080/v1/packetcreator/swagger-ui.html#/packet-controller

*To run packet utility use following command as reference:
Expand All @@ -59,19 +59,19 @@ java -jar -Dfile.encoding=UTF-8 -Xdebug -Xrunjdwp:server=y,transport=dt_socket,a

### Setup for packet creation
1. The centers, machines and users should be onboarded in the system before using as part of context_details.csv
2. Add the document path of (document.pdf) prsent in the support-files folder to the file document_path.txt
2. Add the document path of (document.pdf) present in the support-files folder to the file document_path.txt
3. The mosip-packet-creator and mount volume folders need to be present with the latest jar.
4. From the terminal run the command to start mosip-packet-creator as mentioned in above steps.
5. Open the [Packet_Creator_Script.jmx] script and run the Auth Token Generation (Setup) thread group.
6. Excute Packet Generation (Setup) thread group by spcifying the no of packets it need to generate.
6. Execute Packet Generation (Setup) thread group by specifying the no of packets it need to generate.
7. Sync the packets to reg client using Sync Registration Packet (Setup) thread group.
8. Finally Sync And Upload Registration Packet (Preparation) thread group for uploading the packets.

### Script execution steps:

* Auth Token Generation (Setup) - In this thread group we are creating the authorization token values of Syncdata, Regpoc, Resident and Regproc - Using User Id which will be saved to a file in the Run Time Files in bin folder of JMeter.

* Packet Generation (Setup) - In this thread group we will basically create the context with the help of existing center id's, machine id's & user id's present in our current environment & we will read them through a file named contextDetails.csv. Once the contexts are created we will use the same in the execution thread group where basically the packet generation happens & then the packet path gets stored in a file naming as Run Time Files in bin folder of JMeter.
* Packet Generation (Setup) - In this thread group we will basically create the context with the help of existing center id's, machine id's & user id's present in our current environment & we will read them through a file named context_details.csv. Once the contexts are created we will use the same in the execution thread group where basically the packet generation happens & then the packet path gets stored in a file naming as Run Time Files in bin folder of JMeter.

* Sync Registration Packet (Setup) - To create encrypted data for generated packets(test data to registration processor sync API). Which will basically create a file with the encrypted data's for all the packets created.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ String utcTime = dateFormat.format(cal.getTime());
vars.put(&quot;utcTime&quot;, utcTime);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Authentication Syncdata Endpoint " enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Generate Auth Token Syncdata Endpoint " enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
Expand Down Expand Up @@ -411,7 +411,7 @@ vars.put(&quot;utcTime&quot;, utcTime);</stringProp>
</BeanShellPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Authentication Regproc Endpoint " enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Generate Auth Token Regproc Endpoint " enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
Expand Down Expand Up @@ -493,7 +493,7 @@ vars.put(&quot;utcTime&quot;, utcTime);</stringProp>
</BeanShellPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Authentication Resident Endpoint " enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Generate Auth Token Resident Endpoint " enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
Expand Down Expand Up @@ -575,7 +575,7 @@ vars.put(&quot;utcTime&quot;, utcTime);</stringProp>
</BeanShellPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Authentication Regproc Using User Id Endpoint " enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Generate Auth Token Using User Id Endpoint " enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
Expand Down Expand Up @@ -759,7 +759,7 @@ vars.put(&quot;utcTime&quot;, utcTime);</stringProp>
&quot;dialect&quot;: &quot;org.hibernate.dialect.PostgreSQLDialect&quot;,&#xd;
&quot;partner_username&quot;: &quot;${partnerUsername}&quot;,&#xd;
&quot;DB_PORT&quot;: &quot;&quot;,&#xd;
&quot;audit_url&quot;: &quot;jdbc:postgresql://api-internal.dev2.mosip.net:30090/mosip_audit&quot;,&#xd;
&quot;audit_url&quot;: &quot;jdbc:postgresql://api-internal.cellbx1.mosip.net:30090/mosip_audit&quot;,&#xd;
&quot;s3-account&quot;: &quot;dslreports&quot;,&#xd;
&quot;mosip.test.persona.templatesdatapath&quot;: &quot;/profile_resource/templates_data&quot;,&#xd;
&quot;mosip.test.persona.largedocumentpath&quot;: &quot;/profile_resource/documents_data/&quot;,&#xd;
Expand Down Expand Up @@ -878,7 +878,7 @@ vars.put(&quot;utcTime&quot;, utcTime);</stringProp>
&quot;ida_db_schema&quot;: &quot;ida&quot;,&#xd;
&quot;user0&quot;: &quot;${user0}&quot;,&#xd;
&quot;appendedkey&quot;: &quot;1&quot;,&#xd;
&quot;partner_url&quot;: &quot;jdbc:postgresql://api-internal.dev2.mosip.net:30090/mosip_ida&quot;,&#xd;
&quot;partner_url&quot;: &quot;jdbc:postgresql://api-internal.cellbox1.mosip.net:30090/mosip_ida&quot;,&#xd;
&quot;licKeyGenerator&quot;: &quot;/v1/keymanager/license/generate&quot;,&#xd;
&quot;FetchGenderType_URI&quot;: &quot;/v1/masterdata/gendertypes&quot;,&#xd;
&quot;installation-domain&quot;: &quot;&quot;,&#xd;
Expand Down

0 comments on commit 7bb5c43

Please sign in to comment.