2022-10-04 11:30:09 +03:00
|
|
|
cabal-version: 2.2
|
|
|
|
name: api-tests
|
|
|
|
version: 1.0.0
|
|
|
|
|
|
|
|
executable api-tests
|
|
|
|
build-tool-depends: hspec-discover:hspec-discover
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
, HUnit
|
|
|
|
, aeson
|
|
|
|
, base
|
|
|
|
, bytestring
|
|
|
|
, dc-api
|
|
|
|
, fast-logger
|
|
|
|
, hasura-prelude
|
|
|
|
, hspec
|
|
|
|
, http-conduit
|
|
|
|
, http-types
|
|
|
|
, lens
|
|
|
|
, lens-aeson
|
|
|
|
, morpheus-graphql
|
|
|
|
, pg-client
|
|
|
|
, postgresql-simple
|
|
|
|
, safe-exceptions
|
|
|
|
, split
|
2022-10-11 03:25:07 +03:00
|
|
|
, sop-core
|
2022-10-04 11:30:09 +03:00
|
|
|
, test-harness
|
|
|
|
, text
|
|
|
|
, unordered-containers
|
|
|
|
, uuid
|
|
|
|
, vector
|
|
|
|
|
|
|
|
default-extensions:
|
|
|
|
BlockArguments
|
|
|
|
DataKinds
|
|
|
|
DeriveGeneric
|
|
|
|
DerivingStrategies
|
|
|
|
ImportQualifiedPost
|
|
|
|
MultiWayIf
|
|
|
|
NamedFieldPuns
|
|
|
|
NoImplicitPrelude
|
|
|
|
OverloadedStrings
|
|
|
|
PatternGuards
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
|
|
|
TypeApplications
|
|
|
|
TypeFamilies
|
|
|
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
|
|
|
-- Turning off optimizations is intentional; tests aren't
|
|
|
|
-- performance sensitive and waiting for compilation is a problem.
|
|
|
|
ghc-options:
|
|
|
|
-Wall -O0
|
|
|
|
-threaded
|
|
|
|
-rtsopts "-with-rtsopts=-N"
|
|
|
|
|
|
|
|
main-is: Spec.hs
|
|
|
|
other-modules:
|
|
|
|
SpecHook
|
|
|
|
Test.BigQuery.ComputedFieldSpec
|
|
|
|
Test.BigQuery.Metadata.ComputedFieldSpec
|
|
|
|
Test.BigQuery.Queries.SpatialTypesSpec
|
|
|
|
Test.BigQuery.Schema.RunSQLSpec
|
|
|
|
Test.BigQuery.TypeInterpretationSpec
|
|
|
|
Test.DataConnector.AggregateQuerySpec
|
|
|
|
Test.DataConnector.MetadataApiSpec
|
|
|
|
Test.DataConnector.MockAgent.AggregateQuerySpec
|
|
|
|
Test.DataConnector.MockAgent.BasicQuerySpec
|
2022-10-11 03:25:07 +03:00
|
|
|
Test.DataConnector.MockAgent.ErrorSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.DataConnector.MockAgent.QueryRelationshipsSpec
|
|
|
|
Test.DataConnector.MockAgent.TransformedConfigurationSpec
|
|
|
|
Test.DataConnector.QuerySpec
|
|
|
|
Test.DataConnector.SelectPermissionsSpec
|
|
|
|
Test.DisableRootFields.Common
|
|
|
|
Test.DisableRootFields.DefaultRootFieldsSpec
|
|
|
|
Test.DisableRootFields.SelectPermission.DisableAllRootFieldsRelationshipSpec
|
|
|
|
Test.DisableRootFields.SelectPermission.DisableAllRootFieldsSpec
|
|
|
|
Test.DisableRootFields.SelectPermission.EnableAggSpec
|
|
|
|
Test.DisableRootFields.SelectPermission.EnableAllRootFieldsSpec
|
|
|
|
Test.DisableRootFields.SelectPermission.EnablePKSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.EventTrigger.MSSQL.EventTiggersUniqueNameSpec
|
|
|
|
Test.EventTrigger.MSSQL.EventTriggerDropSourceCleanupSpec
|
|
|
|
Test.EventTrigger.MSSQL.EventTriggersUntrackTableCleanupSpec
|
|
|
|
Test.EventTrigger.PG.EventTriggersExtensionSchemaSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.EventTrigger.PG.EventTriggersRecreationSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.EventTrigger.PG.EventTriggersReplaceMetadataCleanupSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.EventTrigger.PG.EventTriggersRunSQLSpec
|
|
|
|
Test.EventTrigger.PG.EventTriggersUniqueNameSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.EventTrigger.PG.EventTriggersUntrackTableCleanupSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.HelloWorldSpec
|
|
|
|
Test.LongIdentifiersSpec
|
|
|
|
Test.Metadata.InconsistentSpec
|
2022-10-12 18:02:17 +03:00
|
|
|
Test.Mutations.Delete.AllSpec
|
|
|
|
Test.Mutations.Delete.FieldSpec
|
|
|
|
Test.Mutations.Delete.NestedFieldSpec
|
|
|
|
Test.Mutations.Delete.PrimaryKeySpec
|
2022-10-11 14:17:01 +03:00
|
|
|
Test.Mutations.Insert.MultipleSpec
|
|
|
|
Test.Mutations.Insert.SingleSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.Mutations.MultiplePerRequest.UpdateManySpec
|
2022-10-11 18:17:21 +03:00
|
|
|
Test.Mutations.Update.FieldSpec
|
|
|
|
Test.Mutations.Update.PrimaryKeySpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.Postgres.BackendOnlyPermissionsSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.Postgres.DataValidation.PermissionSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.Postgres.DefaultValuesSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.Postgres.JsonbSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.Postgres.TimestampSpec
|
|
|
|
Test.Postgres.UniqueConstraintsSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.Queries.AggregationPredicatesSpec
|
|
|
|
Test.Queries.AggregationSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.Queries.Directives.IncludeAndSkipSpec
|
|
|
|
Test.Queries.Directives.IncludeSpec
|
|
|
|
Test.Queries.Directives.SkipSpec
|
|
|
|
Test.Queries.DirectivesSpec
|
|
|
|
Test.Queries.FilterSearchSpec
|
|
|
|
Test.Queries.MultiColumnObjectRelationshipsSpec
|
|
|
|
Test.Queries.NestedObjectSpec
|
|
|
|
Test.Queries.Paginate.LimitSpec
|
|
|
|
Test.Queries.Paginate.OffsetSpec
|
|
|
|
Test.Queries.Simple.NoQueriesAvailableSpec
|
|
|
|
Test.Queries.Simple.ObjectQueriesSpec
|
|
|
|
Test.Queries.Simple.OperationNameSpec
|
|
|
|
Test.Queries.Simple.PrimaryKeySpec
|
|
|
|
Test.Queries.SortSpec
|
|
|
|
Test.Quoter.YamlSpec
|
|
|
|
Test.Regression.ArrayLiteralTextEncodingSpec
|
|
|
|
Test.Regression.DoNotTruncateSessionVariables8158Spec
|
|
|
|
Test.Regression.DropColumnWithPermissions8415Spec
|
|
|
|
Test.Regression.InsertOnConflict8260Spec
|
|
|
|
Test.Regression.NullsOrderParsing8780Spec
|
|
|
|
Test.Regression.ObjectRelationshipsLimit7936Spec
|
|
|
|
Test.Regression.UsingTheSameFunctionForRootFieldAndComputedField8643Spec
|
|
|
|
Test.RemoteRelationship.FromRemoteSchemaSpec
|
|
|
|
Test.RemoteRelationship.MetadataAPI.ClearMetadataSpec
|
|
|
|
Test.RemoteRelationship.MetadataAPI.Common
|
|
|
|
Test.RemoteRelationship.MetadataAPI.DropSource.DBtoDBRelationshipSpec
|
|
|
|
Test.RemoteRelationship.MetadataAPI.DropSource.RSToDBRelationshipSpec
|
|
|
|
Test.RemoteRelationship.XToDBArrayRelationshipSpec
|
|
|
|
Test.RemoteRelationship.XToDBObjectRelationshipSpec
|
|
|
|
Test.RemoteRelationship.XToRemoteSchemaRelationshipSpec
|
|
|
|
Test.SQLServer.DefaultValuesSpec
|
|
|
|
Test.SQLServer.InsertVarcharColumnSpec
|
|
|
|
Test.SQLServer.VarcharLiteralsSpec
|
|
|
|
Test.Schema.ConflictsSpec
|
2022-10-05 15:36:59 +03:00
|
|
|
Test.Schema.CustomFieldNames.MutationSpec
|
|
|
|
Test.Schema.CustomFieldNames.QuerySpec
|
|
|
|
Test.Schema.DataValidation.Permissions.InsertSpec
|
|
|
|
Test.Schema.DataValidation.Permissions.SelectSpec
|
2022-10-04 11:30:09 +03:00
|
|
|
Test.Schema.DefaultValuesSpec
|
|
|
|
Test.Schema.EnumSpec
|
|
|
|
Test.Schema.TableRelationships.ArrayRelationshipsSpec
|
|
|
|
Test.Schema.TableRelationships.ObjectRelationshipsSpec
|
|
|
|
Test.Schema.ViewsSpec
|
|
|
|
Test.ServiceLivenessSpec
|
|
|
|
Test.Subscriptions.CustomFieldsSpec
|