Skip to content

Yaml File; Input Data is written with "\n" instead of new line #9

@pallavitr75

Description

@pallavitr75
  1. In exported Yaml files, Input Data is written with "\n" to cover data in few lines instead of following actual Input ASN Data structure.
  2. Exported Yaml file is having "output_file_name_keyword: output" which need to be removed manually otherwise it will create another output yaml file.

Input Data Info:

                remarks='ASN1 to DER_64',
                input_data='''NotificationEvent ::= BIT STRING { 
                                                        notificationInstall(0), 
                                                        notificationLocalEnable(1), 
                                                       notificationLocalDisable(2), 
                                                       notificationLocalDelete(3), 
                                                       notificationRpmEnable(4), -- #SupportedForRpmV3.0.0# 
                                                       notificationRpmDisable(5), -- #SupportedForRpmV3.0.0# 
                                                       notificationRpmDelete(6), -- #SupportedForRpmV3.0.0# 
                                                       loadRpmPackageResult(7) -- #SupportedForRpmV3.0.0# 
                                        }''',
                asn1_element=Asn1(Asn1Versions.GSMA_SGP_22_v3_1, 'PendingNotification'),
                input_format=Formats.ASN1,
                output_format=Formats.DER_64,
                output_file_name_keyword=KeyWords.EXPORT_FILE_NAME_KEYWORD

Output Yaml File Data:

input:
        input_data: "NotificationEvent ::= BIT STRING { \n    notificationInstall(0), \n    notificationLocalEnable(1), \n    
        notificationLocalDisable(2), \n    notificationLocalDelete(3), \n    notificationRpmEnable(4), -- 
        #SupportedForRpmV3.0.0# \n    notificationRpmDisable(5), -- #SupportedForRpmV3.0.0# \n    
         notificationRpmDelete(6), -- #SupportedForRpmV3.0.0# \n    loadRpmPackageResult(7) -- 
        #SupportedForRpmV3.0.0# \n} "
        print_input: true
        print_output: true
        print_info: true
        remarks:
          - ASN1 to DER_64
        input_format: asn1
        output_format: der_as_base64
        asn1_element: SGP_22.RSPDefinitions.PendingNotification
        output_file_name_keyword: output

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions