Manually camelCase solana program json (#14907) (#14936)

This commit is contained in:
Tyera Eulberg
2021-01-29 15:52:26 -07:00
committed by GitHub
parent 7ad9870071
commit af04a265dd
3 changed files with 38 additions and 39 deletions

View File

@ -63,7 +63,7 @@ fn test_cli_program_deploy_non_upgradeable() {
let program_id_str = json
.as_object()
.unwrap()
.get("ProgramId")
.get("programId")
.unwrap()
.as_str()
.unwrap();
@ -195,7 +195,7 @@ fn test_cli_program_deploy_no_authority() {
let program_id_str = json
.as_object()
.unwrap()
.get("ProgramId")
.get("programId")
.unwrap()
.as_str()
.unwrap();
@ -279,7 +279,7 @@ fn test_cli_program_deploy_with_authority() {
let program_pubkey_str = json
.as_object()
.unwrap()
.get("ProgramId")
.get("programId")
.unwrap()
.as_str()
.unwrap();
@ -325,7 +325,7 @@ fn test_cli_program_deploy_with_authority() {
let program_pubkey_str = json
.as_object()
.unwrap()
.get("ProgramId")
.get("programId")
.unwrap()
.as_str()
.unwrap();
@ -393,7 +393,7 @@ fn test_cli_program_deploy_with_authority() {
let new_upgrade_authority_str = json
.as_object()
.unwrap()
.get("Authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
@ -444,7 +444,7 @@ fn test_cli_program_deploy_with_authority() {
let authority_pubkey_str = json
.as_object()
.unwrap()
.get("Program upgrade authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
@ -465,11 +465,11 @@ fn test_cli_program_deploy_with_authority() {
let new_upgrade_authority_str = json
.as_object()
.unwrap()
.get("Authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
assert_eq!(new_upgrade_authority_str, "None");
assert_eq!(new_upgrade_authority_str, "none");
// Upgrade with no authority
config.signers = vec![&keypair, &new_upgrade_authority];
@ -504,7 +504,7 @@ fn test_cli_program_deploy_with_authority() {
let program_pubkey_str = json
.as_object()
.unwrap()
.get("ProgramId")
.get("programId")
.unwrap()
.as_str()
.unwrap();
@ -532,11 +532,11 @@ fn test_cli_program_deploy_with_authority() {
let authority_pubkey_str = json
.as_object()
.unwrap()
.get("Program upgrade authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
assert_eq!("None", authority_pubkey_str);
assert_eq!("none", authority_pubkey_str);
}
#[test]
@ -597,7 +597,7 @@ fn test_cli_program_write_buffer() {
let buffer_pubkey_str = json
.as_object()
.unwrap()
.get("Buffer")
.get("buffer")
.unwrap()
.as_str()
.unwrap();
@ -630,7 +630,7 @@ fn test_cli_program_write_buffer() {
let buffer_pubkey_str = json
.as_object()
.unwrap()
.get("Buffer")
.get("buffer")
.unwrap()
.as_str()
.unwrap();
@ -661,7 +661,7 @@ fn test_cli_program_write_buffer() {
let authority_pubkey_str = json
.as_object()
.unwrap()
.get("Buffer authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
@ -686,7 +686,7 @@ fn test_cli_program_write_buffer() {
let buffer_pubkey_str = json
.as_object()
.unwrap()
.get("Buffer")
.get("buffer")
.unwrap()
.as_str()
.unwrap();
@ -723,7 +723,7 @@ fn test_cli_program_write_buffer() {
let buffer_pubkey_str = json
.as_object()
.unwrap()
.get("Buffer")
.get("buffer")
.unwrap()
.as_str()
.unwrap();
@ -751,7 +751,7 @@ fn test_cli_program_write_buffer() {
let authority_pubkey_str = json
.as_object()
.unwrap()
.get("Buffer authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
@ -831,7 +831,7 @@ fn test_cli_program_set_buffer_authority() {
let new_buffer_authority_str = json
.as_object()
.unwrap()
.get("Authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();
@ -858,7 +858,7 @@ fn test_cli_program_set_buffer_authority() {
let buffer_authority_str = json
.as_object()
.unwrap()
.get("Authority")
.get("authority")
.unwrap()
.as_str()
.unwrap();