Improve tests
This commit is contained in:
		
							parent
							
								
									e11e093020
								
							
						
					
					
						commit
						6acf16ef4e
					
				| @ -2938,6 +2938,7 @@ | ||||
| { | ||||
|   "name":"org.whispersystems.signalservice.internal.storage.protos.AccountRecord", | ||||
|   "allDeclaredFields":true, | ||||
|   "fields":[{"name":"avatarUrlPath"}, {"name":"backupSubscriberData"}, {"name":"backupTier"}, {"name":"displayBadgesOnProfile"}, {"name":"e164"}, {"name":"familyName"}, {"name":"givenName"}, {"name":"hasBackup"}, {"name":"hasCompletedUsernameOnboarding"}, {"name":"hasSeenGroupStoryEducationSheet"}, {"name":"hasSetMyStoriesPrivacy"}, {"name":"hasViewedOnboardingStory"}, {"name":"keepMutedChatsArchived"}, {"name":"linkPreviews"}, {"name":"noteToSelfArchived"}, {"name":"noteToSelfMarkedUnread"}, {"name":"payments"}, {"name":"phoneNumberSharingMode"}, {"name":"pinnedConversations"}, {"name":"preferContactAvatars"}, {"name":"preferredReactionEmoji"}, {"name":"primarySendsSms"}, {"name":"profileKey"}, {"name":"readReceipts"}, {"name":"sealedSenderIndicators"}, {"name":"storiesDisabled"}, {"name":"storyViewReceiptsEnabled"}, {"name":"subscriberCurrencyCode"}, {"name":"subscriberId"}, {"name":"subscriptionManuallyCancelled"}, {"name":"typingIndicators"}, {"name":"universalExpireTimer"}, {"name":"unlistedPhoneNumber"}, {"name":"username"}, {"name":"usernameLink"}], | ||||
|   "methods":[{"name":"adapter","parameterTypes":[] }, {"name":"unknownFields","parameterTypes":[] }] | ||||
| }, | ||||
| { | ||||
| @ -2967,6 +2968,7 @@ | ||||
| { | ||||
|   "name":"org.whispersystems.signalservice.internal.storage.protos.ContactRecord", | ||||
|   "allDeclaredFields":true, | ||||
|   "fields":[{"name":"aci"}, {"name":"archived"}, {"name":"blocked"}, {"name":"e164"}, {"name":"familyName"}, {"name":"givenName"}, {"name":"hidden"}, {"name":"hideStory"}, {"name":"identityKey"}, {"name":"identityState"}, {"name":"markedUnread"}, {"name":"mutedUntilTimestamp"}, {"name":"nickname"}, {"name":"note"}, {"name":"pni"}, {"name":"pniSignatureVerified"}, {"name":"profileKey"}, {"name":"systemFamilyName"}, {"name":"systemGivenName"}, {"name":"systemNickname"}, {"name":"unregisteredAtTimestamp"}, {"name":"username"}, {"name":"whitelisted"}], | ||||
|   "methods":[{"name":"adapter","parameterTypes":[] }, {"name":"unknownFields","parameterTypes":[] }] | ||||
| }, | ||||
| { | ||||
| @ -2997,6 +2999,7 @@ | ||||
| { | ||||
|   "name":"org.whispersystems.signalservice.internal.storage.protos.GroupV2Record", | ||||
|   "allDeclaredFields":true, | ||||
|   "fields":[{"name":"archived"}, {"name":"blocked"}, {"name":"dontNotifyForMentionsIfMuted"}, {"name":"hideStory"}, {"name":"markedUnread"}, {"name":"masterKey"}, {"name":"mutedUntilTimestamp"}, {"name":"storySendMode"}, {"name":"whitelisted"}], | ||||
|   "methods":[{"name":"adapter","parameterTypes":[] }, {"name":"unknownFields","parameterTypes":[] }] | ||||
| }, | ||||
| { | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #!/bin/sh | ||||
| #!/bin/bash | ||||
| if [ $# -ne 2 ]; then | ||||
|   echo "Usage: $0 NUMBER_1 NUMBER_2" | ||||
|   exit 1 | ||||
| @ -133,7 +133,7 @@ mkfifo "$FIFO_FILE" | ||||
| run_main -a "$NUMBER_1" send "$NUMBER_2" -m hi | ||||
| run_main -a "$NUMBER_2" jsonRpc < "$FIFO_FILE" & | ||||
| 
 | ||||
| exec 3<> "$FIFO_FILE" | ||||
| exec 3> "$FIFO_FILE" | ||||
|   echo '{"jsonrpc":"2.0","id":"id","method":"updateContact","params":{"recipient":"'"$NUMBER_1"'","name":"NUMBER_1","expiration":10}}' >&3 | ||||
|   echo '{"jsonrpc":"2.0","id":5,"method":"block","params":{"recipient":"'"$NUMBER_1"'"}}' >&3 | ||||
|   echo '{"jsonrpc":"2.0","id":null,"method":"unblock","params":{"recipient":"'"$NUMBER_1"'"}}' >&3 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 AsamK
						AsamK