1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-05 12:05:58 +01:00

Normalize constant naming format

This commit is contained in:
Heiko Schaefer 2023-07-16 19:40:23 +02:00
parent 90a915cedf
commit b8bf7872a6
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D
11 changed files with 97 additions and 97 deletions

View file

@ -33,7 +33,7 @@ class BestViaRoot : TestCase(BestViaRootVectors()) {
val keyRing = tempKeyRingFile.absolutePath
val v = vectors as BestViaRootVectors
val p = Runtime.getRuntime().exec(
"$executable --keyring=$keyRing -r ${v.alice_fpr} --full authenticate ${v.target_fpr} ${v.target_uid}",
"$executable --keyring=$keyRing -r ${v.aliceFpr} --full authenticate ${v.targetFpr} ${v.targetUid}",
env)
val output = p.inputStream.let {
val bOut = ByteArrayOutputStream()

View file

@ -26,28 +26,28 @@ import org.pgpainless.wot.network.Fingerprint
*/
class BestViaRootVectors: ArtifactVectors {
val alice_fpr = Fingerprint("B95FF5B1D055D26F758FD4E3BF12C4D1D28FDFFB")
val alice_uid = "<alice@example.org>"
val aliceFpr = Fingerprint("B95FF5B1D055D26F758FD4E3BF12C4D1D28FDFFB")
val aliceUid = "<alice@example.org>"
val bob_fpr = Fingerprint("6A8B9EC7D0A1B297B5D4A7A1C048DFF96601D9BD")
val bob_uid = "<bob@example.org>"
val bobFpr = Fingerprint("6A8B9EC7D0A1B297B5D4A7A1C048DFF96601D9BD")
val bobUid = "<bob@example.org>"
// Certified by: B95FF5B1D055D26F758FD4E3BF12C4D1D28FDFFB
val carol_fpr = Fingerprint("77A6F7D4BEE0369F70B249579D2987669F792B35")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("77A6F7D4BEE0369F70B249579D2987669F792B35")
val carolUid = "<carol@example.org>"
// Certified by: 6A8B9EC7D0A1B297B5D4A7A1C048DFF96601D9BD
val target_fpr = Fingerprint("2AB08C06FC795AC26673B23CAD561ABDCBEBFDF0")
val target_uid = "<target@example.org>"
val targetFpr = Fingerprint("2AB08C06FC795AC26673B23CAD561ABDCBEBFDF0")
val targetUid = "<target@example.org>"
// Certified by: 77A6F7D4BEE0369F70B249579D2987669F792B35
// Certified by: 56D44411F982758169E4681B402E8D5D9D7D6567
val yellow_fpr = Fingerprint("86CB4639D1FE096BA941D05822B8AF50198C49DD")
val yellow_uid = "<yellow@example.org>"
val yellowFpr = Fingerprint("86CB4639D1FE096BA941D05822B8AF50198C49DD")
val yellowUid = "<yellow@example.org>"
// Certified by: B95FF5B1D055D26F758FD4E3BF12C4D1D28FDFFB
val zebra_fpr = Fingerprint("56D44411F982758169E4681B402E8D5D9D7D6567")
val zebra_uid = "<zebra@example.org>"
val zebraFpr = Fingerprint("56D44411F982758169E4681B402E8D5D9D7D6567")
val zebraUid = "<zebra@example.org>"
// Certified by: 86CB4639D1FE096BA941D05822B8AF50198C49DD
/**

View file

@ -16,7 +16,7 @@ class IsolatedRootVectors: ArtifactVectors {
val aliceFpr = Fingerprint("DCF3020AAB76ECC7F0E5AC0D375DCE1BEE264B87")
val aliceUid = "<alice@example.org>"
val aliceOtherOrguid = "<alice@other.org>"
val aliceOtherOrgUid = "<alice@other.org>"
/**
* A is created.

View file

@ -26,21 +26,21 @@ import org.pgpainless.wot.network.Fingerprint
*/
class MultipleCertifications1Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("9219941467AA737C6EC1207959A2CEFC112C359A")
val alice_uid = "<alice@example.org>"
val aliceFpr = Fingerprint("9219941467AA737C6EC1207959A2CEFC112C359A")
val aliceUid = "<alice@example.org>"
val bob_fpr = Fingerprint("72CAA0F0A4A020F5FA20CD8CB5CC04473AA88123")
val bob_uid = "<bob@example.org>"
val bobFpr = Fingerprint("72CAA0F0A4A020F5FA20CD8CB5CC04473AA88123")
val bobUid = "<bob@example.org>"
// Certified by: 9219941467AA737C6EC1207959A2CEFC112C359A
// Certified by: 9219941467AA737C6EC1207959A2CEFC112C359A
// Certified by: 9219941467AA737C6EC1207959A2CEFC112C359A
val carol_fpr = Fingerprint("853304031E7B0B116BBD0B398734F11945313904")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("853304031E7B0B116BBD0B398734F11945313904")
val carolUid = "<carol@example.org>"
// Certified by: 72CAA0F0A4A020F5FA20CD8CB5CC04473AA88123
val dave_fpr = Fingerprint("4C77ABDBE4F855E0C3C7A7D549F6B2BFDA83E424")
val dave_uid = "<dave@example.org>"
val daveFpr = Fingerprint("4C77ABDBE4F855E0C3C7A7D549F6B2BFDA83E424")
val daveUid = "<dave@example.org>"
// Certified by: 853304031E7B0B116BBD0B398734F11945313904
/**

View file

@ -38,21 +38,21 @@ import org.pgpainless.wot.network.Fingerprint
*/
class MultipleUserIds1Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("2A2A4A23A7EEC119BC0B46642B3825DC02A05FEA")
val alice_uid = "<alice@example.org>"
val aliceFpr = Fingerprint("2A2A4A23A7EEC119BC0B46642B3825DC02A05FEA")
val aliceUid = "<alice@example.org>"
val bob_fpr = Fingerprint("03182611B91B1E7E20B848E83DFC151ABFAD85D5")
val bob_uid = "<bob@other.org>"
val bobFpr = Fingerprint("03182611B91B1E7E20B848E83DFC151ABFAD85D5")
val bobUid = "<bob@other.org>"
// Certified by: 2A2A4A23A7EEC119BC0B46642B3825DC02A05FEA
val bob_some_org_uid = "<bob@some.org>"
val bob_some_orgUid = "<bob@some.org>"
// Certified by: 2A2A4A23A7EEC119BC0B46642B3825DC02A05FEA
val carol_fpr = Fingerprint("9CA36907B46FE7B6B9EE9601E78064C12B6D7902")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("9CA36907B46FE7B6B9EE9601E78064C12B6D7902")
val carolUid = "<carol@example.org>"
// Certified by: 03182611B91B1E7E20B848E83DFC151ABFAD85D5
val dave_fpr = Fingerprint("C1BC6794A6C6281B968A6A41ACE2055D610CEA03")
val dave_uid = "<dave@other.org>"
val daveFpr = Fingerprint("C1BC6794A6C6281B968A6A41ACE2055D610CEA03")
val daveUid = "<dave@other.org>"
// Certified by: 9CA36907B46FE7B6B9EE9601E78064C12B6D7902
override fun getResourceName(): String {

View file

@ -29,29 +29,29 @@ import org.pgpainless.wot.network.Fingerprint
*/
class MultipleUserIds2Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("F1C99C4019837703DD17C45440F8A0141DF278EA")
val alice_uid = "<alice@example.org>"
val aliceFpr = Fingerprint("F1C99C4019837703DD17C45440F8A0141DF278EA")
val aliceUid = "<alice@example.org>"
val bob_fpr = Fingerprint("5528B9E5DAFC519ED2E37F0377B332E4111456CB")
val bob_uid = "<bob@other.org>"
val bobFpr = Fingerprint("5528B9E5DAFC519ED2E37F0377B332E4111456CB")
val bobUid = "<bob@other.org>"
// Certified by: F1C99C4019837703DD17C45440F8A0141DF278EA
val bob_some_org_uid = "<bob@some.org>"
val bobSomeOrgUid = "<bob@some.org>"
// Certified by: F1C99C4019837703DD17C45440F8A0141DF278EA
val carol_fpr = Fingerprint("6F8291428420AB53576BAB4BEFF6477D3E348D71")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("6F8291428420AB53576BAB4BEFF6477D3E348D71")
val carolUid = "<carol@example.org>"
// Certified by: 5528B9E5DAFC519ED2E37F0377B332E4111456CB
val dave_fpr = Fingerprint("62C57D90DAD253DEA01D5A86C7382FD6285C18F0")
val dave_uid = "<dave@other.org>"
val daveFpr = Fingerprint("62C57D90DAD253DEA01D5A86C7382FD6285C18F0")
val daveUid = "<dave@other.org>"
// Certified by: 6F8291428420AB53576BAB4BEFF6477D3E348D71
val ed_fpr = Fingerprint("0E974D0ACBA0C4D8F51D7CF68F048FF83B173504")
val ed_uid = "<ed@example.org>"
val edFpr = Fingerprint("0E974D0ACBA0C4D8F51D7CF68F048FF83B173504")
val edUid = "<ed@example.org>"
// Certified by: 6F8291428420AB53576BAB4BEFF6477D3E348D71
val frank_fpr = Fingerprint("5BEE3D41F85B2FCBC300DE4E18CB2BDA65465F03")
val frank_uid = "<frank@other.org>"
val frankFpr = Fingerprint("5BEE3D41F85B2FCBC300DE4E18CB2BDA65465F03")
val frankUid = "<frank@other.org>"
// Certified by: 5528B9E5DAFC519ED2E37F0377B332E4111456CB
override fun getResourceName(): String {

View file

@ -28,30 +28,30 @@ import org.pgpainless.wot.network.Fingerprint
*/
class MultipleUserIds3Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("DA3CFC60BD4B8835702A66782C7A431946C12DF7")
val alice_uid = "<alice@example.org>"
val aliceFpr = Fingerprint("DA3CFC60BD4B8835702A66782C7A431946C12DF7")
val aliceUid = "<alice@example.org>"
val bob_fpr = Fingerprint("28C108707090FCDFF630D1E141FB02F0E397D55E")
val bob_uid = "<bob@other.org>"
val bobFpr = Fingerprint("28C108707090FCDFF630D1E141FB02F0E397D55E")
val bobUid = "<bob@other.org>"
// Certified by: DA3CFC60BD4B8835702A66782C7A431946C12DF7
val bob_some_org_uid = "<bob@some.org>"
val bobSomeOrgUid = "<bob@some.org>"
// Certified by: DA3CFC60BD4B8835702A66782C7A431946C12DF7
val bob_third_org_uid = "<bob@third.org>"
val bobThirdOrgUid = "<bob@third.org>"
val carol_fpr = Fingerprint("9FB1D2F41AB5C478378E728C8DD5A5A434EEAAB8")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("9FB1D2F41AB5C478378E728C8DD5A5A434EEAAB8")
val carolUid = "<carol@example.org>"
// Certified by: 28C108707090FCDFF630D1E141FB02F0E397D55E
val dave_fpr = Fingerprint("0C131F8959F45D08B6136FDAAD2E16A26F73D48E")
val dave_uid = "<dave@example.org>"
val daveFpr = Fingerprint("0C131F8959F45D08B6136FDAAD2E16A26F73D48E")
val daveUid = "<dave@example.org>"
// Certified by: 28C108707090FCDFF630D1E141FB02F0E397D55E
val ed_fpr = Fingerprint("296935FAE420CCCF3AEDCEC9232BFF0AE9A7E5DB")
val ed_uid = "<ed@example.org>"
val edFpr = Fingerprint("296935FAE420CCCF3AEDCEC9232BFF0AE9A7E5DB")
val edUid = "<ed@example.org>"
// Certified by: 0C131F8959F45D08B6136FDAAD2E16A26F73D48E
val frank_fpr = Fingerprint("A72AA1B7D9D8CB04D988F1520A404E37A7766608")
val frank_uid = "<frank@example.org>"
val frankFpr = Fingerprint("A72AA1B7D9D8CB04D988F1520A404E37A7766608")
val frankUid = "<frank@example.org>"
// Certified by: 9FB1D2F41AB5C478378E728C8DD5A5A434EEAAB8
// Certified by: 296935FAE420CCCF3AEDCEC9232BFF0AE9A7E5DB

View file

@ -27,27 +27,27 @@ import org.pgpainless.wot.network.Fingerprint
*/
class Regex1Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("3AD1F297E4B150F75DBFC43476FB81BFE0665C3A")
val alice_uid = "<alice@some.org>"
val aliceFpr = Fingerprint("3AD1F297E4B150F75DBFC43476FB81BFE0665C3A")
val aliceUid = "<alice@some.org>"
val bob_fpr = Fingerprint("20C812117FB2A3940EAE9160FEE6B4E47A096FD1")
val bob_uid = "<bob@example.org>"
val bobFpr = Fingerprint("20C812117FB2A3940EAE9160FEE6B4E47A096FD1")
val bobUid = "<bob@example.org>"
// Certified by: 3AD1F297E4B150F75DBFC43476FB81BFE0665C3A
val carol_fpr = Fingerprint("BC30978345D789CADECDE492F54B42E1625E1A1D")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("BC30978345D789CADECDE492F54B42E1625E1A1D")
val carolUid = "<carol@example.org>"
// Certified by: 20C812117FB2A3940EAE9160FEE6B4E47A096FD1
val dave_fpr = Fingerprint("319810FAD46CBE96DAD7F1F5B014902592999B21")
val dave_uid = "<dave@other.org>"
val daveFpr = Fingerprint("319810FAD46CBE96DAD7F1F5B014902592999B21")
val daveUid = "<dave@other.org>"
// Certified by: 20C812117FB2A3940EAE9160FEE6B4E47A096FD1
val ed_fpr = Fingerprint("23D7418EA0C6A42A54C32DBE8D4FE4911ED08467")
val ed_uid = "<ed@example.org>"
val edFpr = Fingerprint("23D7418EA0C6A42A54C32DBE8D4FE4911ED08467")
val edUid = "<ed@example.org>"
// Certified by: 319810FAD46CBE96DAD7F1F5B014902592999B21
val frank_fpr = Fingerprint("7FAE20D68EE87F74368AF275A0C40E741FC1C50F")
val frank_uid = "<frank@other.org>"
val frankFpr = Fingerprint("7FAE20D68EE87F74368AF275A0C40E741FC1C50F")
val frankUid = "<frank@other.org>"
// Certified by: 319810FAD46CBE96DAD7F1F5B014902592999B21
override fun getResourceName(): String {

View file

@ -23,23 +23,23 @@ import org.pgpainless.wot.network.Fingerprint
*/
class Regex2Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("5C396C920399898461F17CB747FDBF3EB3453919")
val alice_uid = "<alice@some.org>"
val aliceFpr = Fingerprint("5C396C920399898461F17CB747FDBF3EB3453919")
val aliceUid = "<alice@some.org>"
val bob_fpr = Fingerprint("584D195AD89CE0354D2CCBAEBCDD9EBC09692780")
val bob_uid = "<bob@some.org>"
val bobFpr = Fingerprint("584D195AD89CE0354D2CCBAEBCDD9EBC09692780")
val bobUid = "<bob@some.org>"
// Certified by: 5C396C920399898461F17CB747FDBF3EB3453919
val carol_fpr = Fingerprint("FC7A96D4810D0CF477031956AED58C644370C183")
val carol_uid = "<carol@other.org>"
val carolFpr = Fingerprint("FC7A96D4810D0CF477031956AED58C644370C183")
val carolUid = "<carol@other.org>"
// Certified by: 584D195AD89CE0354D2CCBAEBCDD9EBC09692780
val dave_fpr = Fingerprint("58077E659732526C1B8BF9837EFC0EDE07B506A8")
val dave_uid = "<dave@their.org>"
val daveFpr = Fingerprint("58077E659732526C1B8BF9837EFC0EDE07B506A8")
val daveUid = "<dave@their.org>"
// Certified by: FC7A96D4810D0CF477031956AED58C644370C183
val ed_fpr = Fingerprint("36089C49F18BF6FC6BCA35E3BB85877766C009E4")
val ed_uid = "<ed@example.org>"
val edFpr = Fingerprint("36089C49F18BF6FC6BCA35E3BB85877766C009E4")
val edUid = "<ed@example.org>"
// Certified by: 58077E659732526C1B8BF9837EFC0EDE07B506A8
override fun getResourceName(): String {

View file

@ -22,35 +22,35 @@ import org.pgpainless.wot.network.Fingerprint
*/
class Regex3Vectors: ArtifactVectors {
val alice_fpr = Fingerprint("D8CFEBBA006E2ED57CF45CC413F0BAE09D94FE4E")
val alice_uid = "<alice@some.org>"
val aliceFpr = Fingerprint("D8CFEBBA006E2ED57CF45CC413F0BAE09D94FE4E")
val aliceUid = "<alice@some.org>"
val bob_fpr = Fingerprint("A75DC1A1EDA5282F3A7381B51824E46BBCC801F0")
val bob_uid = "<bob@example.org>"
val bobFpr = Fingerprint("A75DC1A1EDA5282F3A7381B51824E46BBCC801F0")
val bobUid = "<bob@example.org>"
// Certified by: D8CFEBBA006E2ED57CF45CC413F0BAE09D94FE4E
val carol_fpr = Fingerprint("4BCD4325BDACA452F0301227A30CB4BCC329E769")
val carol_uid = "<carol@example.org>"
val carolFpr = Fingerprint("4BCD4325BDACA452F0301227A30CB4BCC329E769")
val carolUid = "<carol@example.org>"
// Certified by: A75DC1A1EDA5282F3A7381B51824E46BBCC801F0
val dave_fpr = Fingerprint("2E1AAA8D9A22C94ACCA362A22B34031CD5CB9380")
val dave_uid = "<dave@other.org>"
val daveFpr = Fingerprint("2E1AAA8D9A22C94ACCA362A22B34031CD5CB9380")
val daveUid = "<dave@other.org>"
// Certified by: A75DC1A1EDA5282F3A7381B51824E46BBCC801F0
val ed_fpr = Fingerprint("F645D081F480BE26C7D2C84D941B3E2CE53FAF16")
val ed_uid = "<ed@example.org>"
val edFpr = Fingerprint("F645D081F480BE26C7D2C84D941B3E2CE53FAF16")
val edUid = "<ed@example.org>"
// Certified by: 2E1AAA8D9A22C94ACCA362A22B34031CD5CB9380
val frank_fpr = Fingerprint("AFAB11F1A37FD20C85CF8093F4941D1A0EC5749F")
val frank_uid = "<frank@other.org>"
val frankFpr = Fingerprint("AFAB11F1A37FD20C85CF8093F4941D1A0EC5749F")
val frankUid = "<frank@other.org>"
// Certified by: 2E1AAA8D9A22C94ACCA362A22B34031CD5CB9380
val george_fpr = Fingerprint("D01C8752D9BA9F3F5F06B21F394E911938D6DB0A")
val george_uid = "<george@their.org>"
val georgeFpr = Fingerprint("D01C8752D9BA9F3F5F06B21F394E911938D6DB0A")
val georgeUid = "<george@their.org>"
// Certified by: 2E1AAA8D9A22C94ACCA362A22B34031CD5CB9380
val henry_fpr = Fingerprint("B99A8696FD820192CEEE285D3A253E49F1D97109")
val henry_uid = "<henry@their.org>"
val henryFpr = Fingerprint("B99A8696FD820192CEEE285D3A253E49F1D97109")
val henryUid = "<henry@their.org>"
// Certified by: A75DC1A1EDA5282F3A7381B51824E46BBCC801F0
override fun getResourceName(): String {

View file

@ -34,7 +34,7 @@ class SelfSignedVectors: ArtifactVectors {
val carolFpr = Fingerprint("830230061426EE99A0455E6ADA869CF879A5630D")
val carolUid = "<carol@example.org>"
// Certified by: 7A7B5DE6C8F464CAB78BEFB9CE14BEE51D4DEC01
val carol_other_orgUid = "<carol@other.org>"
val carolOtherOrgUid = "<carol@other.org>"
val daveFpr = Fingerprint("51A5E15F87AC6ECAFBEA930FA5F30AF6EB6EF14A")
val daveUid = "<dave@example.org>"