tests: disable stringifyNumbers in tests

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6338
GitOrigin-RevId: d3819dfda342af2b70df00d49edfc05dfa9582f5
This commit is contained in:
Daniel Harvey 2022-10-13 13:18:06 +01:00 committed by hasura-bot
parent b2f89f6685
commit 4e23afed8d
33 changed files with 34 additions and 195 deletions

View File

@ -52,12 +52,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
@ -92,12 +87,7 @@ spec = do
[ (Fixture.fixture $ Fixture.Backend Fixture.Cockroach) [ (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -41,12 +41,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -40,12 +40,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -41,12 +41,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -41,12 +41,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -40,12 +40,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -40,12 +40,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -41,12 +41,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -41,12 +41,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -38,12 +38,7 @@ spec =
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -54,12 +54,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->

View File

@ -65,12 +65,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -68,12 +68,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -68,12 +68,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -65,12 +65,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -67,12 +67,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -66,12 +66,7 @@ spec = do
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv, [ Cockroach.setupTablesAction schema testEnv,
setupRelationships Fixture.Cockroach testEnv setupRelationships Fixture.Cockroach testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -67,12 +67,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -67,12 +67,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -67,12 +67,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -47,12 +47,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction tables testEnv [ Cockroach.setupTablesAction tables testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -49,12 +49,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -46,12 +46,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->

View File

@ -41,12 +41,7 @@ spec =
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -67,12 +67,7 @@ spec = do
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv [ Cockroach.setupTablesAction schema testEnv
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -42,8 +42,7 @@ spec =
Just $ Just $
Fixture.defaultOptions Fixture.defaultOptions
{ Fixture.skipTests = { Fixture.skipTests =
Just "Disabled until we can dynamically change server settings per test. To test, add EFHideUpdateManyFields to soSubscriptions in Harness.Constants -> serveOptions", Just "Disabled until we can dynamically change server settings per test. To test, add EFHideUpdateManyFields to soSubscriptions in Harness.Constants -> serveOptions"
Fixture.stringifyNumbers = True
} }
} }
] ]

View File

@ -45,12 +45,7 @@ spec = do
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv, [ Cockroach.setupTablesAction schema testEnv,
setupTeardown testEnv Fixture.Cockroach setupTeardown testEnv Fixture.Cockroach
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->

View File

@ -52,12 +52,7 @@ spec = do
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[ Cockroach.setupTablesAction schema testEnv, [ Cockroach.setupTablesAction schema testEnv,
setupTeardown testEnv Fixture.Cockroach setupTeardown testEnv Fixture.Cockroach
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->

View File

@ -46,12 +46,7 @@ spec =
Cockroach.run_ teardown Cockroach.run_ teardown
}, },
Cockroach.setupTablesAction schema testEnvironment Cockroach.setupTablesAction schema testEnvironment
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.Citus) (Fixture.fixture $ Fixture.Backend Fixture.Citus)
{ Fixture.setupTeardown = \(testEnvironment, _) -> { Fixture.setupTeardown = \(testEnvironment, _) ->

View File

@ -39,12 +39,7 @@ spec = do
}, },
(Fixture.fixture $ Fixture.Backend Fixture.Cockroach) (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[Cockroach.setupTablesAction schema testEnv], [Cockroach.setupTablesAction schema testEnv]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
}, },
(Fixture.fixture $ Fixture.Backend Fixture.SQLServer) (Fixture.fixture $ Fixture.Backend Fixture.SQLServer)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->

View File

@ -61,12 +61,7 @@ spec = do
( NE.fromList ( NE.fromList
[ (Fixture.fixture $ Fixture.Backend Fixture.Cockroach) [ (Fixture.fixture $ Fixture.Backend Fixture.Cockroach)
{ Fixture.setupTeardown = \(testEnv, _) -> { Fixture.setupTeardown = \(testEnv, _) ->
[Cockroach.setupTablesAction schema testEnv], [Cockroach.setupTablesAction schema testEnv]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -42,12 +42,7 @@ spec =
[ Cockroach.setupTablesAction schema testEnvironment, [ Cockroach.setupTablesAction schema testEnvironment,
setupCockroach, setupCockroach,
setupMetadata Fixture.Cockroach testEnvironment setupMetadata Fixture.Cockroach testEnvironment
], ]
Fixture.customOptions =
Just $
Fixture.defaultOptions
{ Fixture.stringifyNumbers = True
}
} }
] ]
) )

View File

@ -252,7 +252,7 @@ serveOptions =
soConsoleAssetsDir = Just "../console/static/dist", soConsoleAssetsDir = Just "../console/static/dist",
soConsoleSentryDsn = Nothing, soConsoleSentryDsn = Nothing,
soEnableTelemetry = False, soEnableTelemetry = False,
soStringifyNum = Options.StringifyNumbers, soStringifyNum = Options.Don'tStringifyNumbers,
soDangerousBooleanCollapse = Options.Don'tDangerouslyCollapseBooleans, soDangerousBooleanCollapse = Options.Don'tDangerouslyCollapseBooleans,
soEnabledAPIs = testSuiteEnabledApis, soEnabledAPIs = testSuiteEnabledApis,
soLiveQueryOpts = ES.mkSubscriptionsOptions Nothing Nothing, soLiveQueryOpts = ES.mkSubscriptionsOptions Nothing Nothing,