To provide Aggregation Service testers tools to create debug aggregatable reports that can be used for Local Testing and AWS Aggregation Service testing.
- Clone the privacy-sandbox-demos repository.
- Go to <repository>/tools/aggregatable_report_converter
- Options for usage:
- Use the jar file available in <repository>/tools/aggregatable_report_converter/out/artifacts/aggregatable_report_converter_jar.
- Build jar file for the project
aggregatable_report_converter
using Eclipse or Intellij.
- Open Project in Intellij
- Go to
Build
>Build Project
. - Go to
File
>Project Structure
. SelectArtifacts
underProject Settings
. - Click
+
>JAR
>From modules with dependencies...
. - Ensure
module
selected isaggregatable_report_converter
. - In Main Class, select
Main
. ClickOK
>Apply
.
Once the jar file is created, you can get options available for this tool using the command java -jar aggregatable_report_converter.jar --help
.
To convert json reports to debug aggregatable reports, you can use the below command:
java -jar aggregatable_report_converter.jar \
--request_type convertToAvro \
--input_file [filename] \
--debug
To create output domain avro file, you can use the below command:
java -jar aggregatable_report_converter.jar \
--request_type createDomainAvro \
--bucket_key [bucket key]
--request_type [request type]
Type of request. Options available:
- convertToAvro: converts a json report to an avro aggregatable report
- convertToJson: converts the avro summary report to a json report
- createDomainAvro: creates an output_domain.avro file from provided bucket key
--input_file [file name]
This will be the file that will be encoded.
--debug
This will signify that the request is for debug.
If the type of request is convertToAvro, this will create a debug avro report for local testing.
--bucket_key [bucket key]
Provide your bucket key here.
--output_file [file name]
Output filename the report will be written to.