mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	test: add non-admin test for simulate (#1893)
This commit is contained in:
		@@ -105,7 +105,15 @@ generateTestValuesForParametersTest()
 | 
			
		||||
         .called = 1,
 | 
			
		||||
         .isAdmin = !isAdmin,
 | 
			
		||||
         .expected = shouldForward},
 | 
			
		||||
        {.testName = "ShouldForwardReturnsTrueSimulate",
 | 
			
		||||
        {.testName = "ShouldForwardReturnsTrueIsNotAdminSimulate",
 | 
			
		||||
         .apiVersion = 1u,
 | 
			
		||||
         .method = "simulate",
 | 
			
		||||
         .testJson = "{}",
 | 
			
		||||
         .mockedIsClioOnly = !isClioOnly,
 | 
			
		||||
         .called = 1,
 | 
			
		||||
         .isAdmin = !isAdmin,
 | 
			
		||||
         .expected = shouldForward},
 | 
			
		||||
        {.testName = "ShouldForwardReturnsTrueIsAdminSimulate",
 | 
			
		||||
         .apiVersion = 1u,
 | 
			
		||||
         .method = "simulate",
 | 
			
		||||
         .testJson = "{}",
 | 
			
		||||
@@ -113,7 +121,15 @@ generateTestValuesForParametersTest()
 | 
			
		||||
         .called = 1,
 | 
			
		||||
         .isAdmin = isAdmin,
 | 
			
		||||
         .expected = shouldForward},
 | 
			
		||||
        {.testName = "ShouldForwardReturnsTrueRipplePathFind",
 | 
			
		||||
        {.testName = "ShouldForwardReturnsTrueIsNotAdminRipplePathFind",
 | 
			
		||||
         .apiVersion = 2u,
 | 
			
		||||
         .method = "ripple_path_find",
 | 
			
		||||
         .testJson = R"({"force_forward": true})",
 | 
			
		||||
         .mockedIsClioOnly = !isClioOnly,
 | 
			
		||||
         .called = 1,
 | 
			
		||||
         .isAdmin = !isAdmin,
 | 
			
		||||
         .expected = shouldForward},
 | 
			
		||||
        {.testName = "ShouldForwardReturnsTrueIsAdminRipplePathFind",
 | 
			
		||||
         .apiVersion = 2u,
 | 
			
		||||
         .method = "ripple_path_find",
 | 
			
		||||
         .testJson = R"({"force_forward": true})",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user