mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-20 22:11:45 +03:00
107db24caf
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8936 GitOrigin-RevId: 9c170f2ce2de68818a9efe52266b47e87a7c4726
374 lines
12 KiB
Plaintext
374 lines
12 KiB
Plaintext
cabal-version: 2.2
|
|
name: api-tests
|
|
version: 1.0.0
|
|
build-type: Simple
|
|
copyright: Hasura Inc.
|
|
extra-source-files: README.md
|
|
|
|
common common-all
|
|
ghc-options:
|
|
-Werror
|
|
-- Taken from https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
|
|
-Weverything
|
|
-Wno-missing-exported-signatures
|
|
-Wno-missing-import-lists
|
|
-Wno-missed-specialisations
|
|
-Wno-all-missed-specialisations
|
|
-Wno-unsafe
|
|
-Wno-safe
|
|
-Wno-missing-local-signatures
|
|
-Wno-monomorphism-restriction
|
|
-Wno-missing-kind-signatures
|
|
-Wno-missing-safe-haskell-mode
|
|
-- We want these warnings, but the code doesn't satisfy them yet:
|
|
-Wno-missing-deriving-strategies
|
|
-Wno-unused-packages
|
|
-Wno-partial-fields
|
|
-Wno-missing-export-lists
|
|
-Wno-implicit-prelude
|
|
|
|
library
|
|
import: common-all
|
|
build-tool-depends: hspec-discover:hspec-discover
|
|
hs-source-dirs: src
|
|
default-language: GHC2021
|
|
|
|
default-extensions:
|
|
BlockArguments
|
|
DataKinds
|
|
DeriveGeneric
|
|
DerivingStrategies
|
|
ImportQualifiedPost
|
|
LambdaCase
|
|
MultiWayIf
|
|
NamedFieldPuns
|
|
NoImplicitPrelude
|
|
OverloadedStrings
|
|
PatternGuards
|
|
QuasiQuotes
|
|
RecordWildCards
|
|
ScopedTypeVariables
|
|
TypeApplications
|
|
TypeFamilies
|
|
|
|
build-depends:
|
|
, HUnit
|
|
, aeson
|
|
, aeson-pretty
|
|
, base
|
|
, bytestring
|
|
, containers
|
|
, data-has
|
|
, dc-api
|
|
, directory
|
|
, fast-logger
|
|
, filepath
|
|
, graphql-engine
|
|
, graphql-parser
|
|
, hasura-extras
|
|
, hasura-prelude
|
|
, hspec
|
|
, hspec-core
|
|
, http-conduit
|
|
, http-types
|
|
, lens
|
|
, lens-aeson
|
|
, managed
|
|
, morpheus-graphql
|
|
, pg-client
|
|
, postgres-options
|
|
, postgresql-simple
|
|
, safe-exceptions
|
|
, sop-core
|
|
, split
|
|
, string-interpolate
|
|
, test-harness
|
|
, text
|
|
, unordered-containers
|
|
, uuid
|
|
, vector
|
|
, time
|
|
, QuickCheck
|
|
|
|
exposed-modules:
|
|
Spec
|
|
SpecHook
|
|
Test.API.ConcurrentBulkSpec
|
|
Test.API.ExplainSpec
|
|
Test.API.GraphQL.ContentLengthSpec
|
|
Test.API.Metadata.BulkKeepGoingSpec
|
|
Test.API.Metadata.ComputedFieldsSpec
|
|
Test.API.Metadata.InconsistentSpec
|
|
Test.API.Metadata.SuggestRelationshipsSpec
|
|
Test.API.Metadata.TablesSpec
|
|
Test.API.Metadata.TestConnectionTemplateSpec
|
|
Test.API.Metadata.TransparentDefaultsSpec
|
|
Test.API.Metadata.WarningsSpec
|
|
Test.API.Schema.RunSQLSpec
|
|
Test.Auth.Authorization.DisableRootFields.Common
|
|
Test.Auth.Authorization.DisableRootFields.DefaultRootFieldsSpec
|
|
Test.Auth.Authorization.DisableRootFields.SelectPermission.DisableAllRootFieldsSpec
|
|
Test.Auth.Authorization.DisableRootFields.SelectPermission.EnableAggSpec
|
|
Test.Auth.Authorization.DisableRootFields.SelectPermission.EnableAllRootFieldsSpec
|
|
Test.Auth.Authorization.DisableRootFields.SelectPermission.EnablePKSpec
|
|
Test.Auth.Authorization.DisableRootFields.SelectPermission.RelationshipSpec
|
|
Test.DataConnector.AggregateQuerySpec
|
|
Test.DataConnector.MetadataApiSpec
|
|
Test.DataConnector.MockAgent.AggregateQuerySpec
|
|
Test.DataConnector.MockAgent.BasicQuerySpec
|
|
Test.DataConnector.MockAgent.CustomScalarsSpec
|
|
Test.DataConnector.MockAgent.DeleteMutationsSpec
|
|
Test.DataConnector.MockAgent.ErrorSpec
|
|
Test.DataConnector.MockAgent.InsertMutationsSpec
|
|
Test.DataConnector.MockAgent.MetadataApiSpec
|
|
Test.DataConnector.MockAgent.OrderBySpec
|
|
Test.DataConnector.MockAgent.QueryRelationshipsSpec
|
|
Test.DataConnector.MockAgent.RemoteRelationshipsSpec
|
|
Test.DataConnector.MockAgent.TestHelpers
|
|
Test.DataConnector.MockAgent.TransformedConfigurationSpec
|
|
Test.DataConnector.MockAgent.UpdateMutationsSpec
|
|
Test.DataConnector.QuerySpec
|
|
Test.DataConnector.SelectPermissionsSpec
|
|
Test.Databases.BigQuery.Queries.SpatialTypesSpec
|
|
Test.Databases.BigQuery.Queries.TypeInterpretationSpec
|
|
Test.Databases.BigQuery.Schema.ComputedFields.TableSpec
|
|
Test.Databases.Postgres.BackendOnlyPermissionsSpec
|
|
Test.Databases.Postgres.DataValidation.PermissionSpec
|
|
Test.Databases.Postgres.JsonbSpec
|
|
Test.Databases.Postgres.TimestampSpec
|
|
Test.Databases.Postgres.UniqueConstraintsSpec
|
|
Test.Databases.SQLServer.DefaultValues.OnConflictSpec
|
|
Test.Databases.SQLServer.InsertVarcharColumnSpec
|
|
Test.Databases.SQLServer.VarcharLiteralsSpec
|
|
Test.EventTriggers.EventTriggersSpecialCharactersSpec
|
|
Test.EventTriggers.MSSQL.EventTriggerDropSourceCleanupSpec
|
|
Test.EventTriggers.MSSQL.EventTriggerNextRetryAtTimezoneSpec
|
|
Test.EventTriggers.MSSQL.EventTriggersForReplicationSpec
|
|
Test.EventTriggers.MSSQL.EventTriggersNameQuotingSpec
|
|
Test.EventTriggers.MSSQL.EventTriggersUniqueNameSpec
|
|
Test.EventTriggers.MSSQL.EventTriggersUntrackTableCleanupSpec
|
|
Test.EventTriggers.PG.EventTriggersExtensionSchemaSpec
|
|
Test.EventTriggers.PG.EventTriggersForReplicationSpec
|
|
Test.EventTriggers.PG.EventTriggersRecreationSpec
|
|
Test.EventTriggers.PG.EventTriggersReplaceMetadataCleanupSpec
|
|
Test.EventTriggers.PG.EventTriggersClearMetadataSpec
|
|
Test.EventTriggers.PG.EventTriggersRunSQLSpec
|
|
Test.EventTriggers.PG.EventTriggersUniqueNameSpec
|
|
Test.EventTriggers.PG.EventTriggersUntrackTableCleanupSpec
|
|
Test.Harness.Quoter.YamlSpec
|
|
Test.HealthCheckSpec
|
|
Test.HelloWorldSpec
|
|
Test.Mutations.Delete.AllSpec
|
|
Test.Mutations.Delete.FieldSpec
|
|
Test.Mutations.Delete.NestedFieldSpec
|
|
Test.Mutations.Delete.PrimaryKeySpec
|
|
Test.Mutations.Insert.MultipleSpec
|
|
Test.Mutations.Insert.SingleSpec
|
|
Test.Mutations.MultiplePerRequest.UpdateManySpec
|
|
Test.Mutations.Update.FieldSpec
|
|
Test.Mutations.Update.PrimaryKeySpec
|
|
Test.Mutations.Upsert.OnConflictSpec
|
|
Test.PortedFromPytest.TestGraphQLQueryBasicCitus
|
|
Test.PortedFromPytest.TestGraphQLQueryFunctions
|
|
Test.Queries.AggregationSpec
|
|
Test.Queries.CustomFunctions.PortedSpec
|
|
Test.Queries.DistinctSpec
|
|
Test.Queries.Errors.EmptyRootsAreNotAvailableSpec
|
|
Test.Queries.Errors.InvalidQuerySpec
|
|
Test.Queries.Errors.MissingTableSpec
|
|
Test.Queries.Errors.NoQueriesAvailableSpec
|
|
Test.Queries.FilterSearch.AggregationPredicatesSpec
|
|
Test.Queries.FilterSearch.FilterSearchSpec
|
|
Test.Queries.NestedObjectSpec
|
|
Test.Queries.Paginate.LimitSpec
|
|
Test.Queries.Paginate.OffsetSpec
|
|
Test.Queries.Simple.JSONSpec
|
|
Test.Queries.Simple.ObjectQueriesSpec
|
|
Test.Queries.Simple.OperationNameSpec
|
|
Test.Queries.Simple.PrimaryKeySpec
|
|
Test.Queries.SortSpec
|
|
Test.Queries.VariablesAliasesFragments.AliasesSpec
|
|
Test.Queries.VariablesAliasesFragments.Directives.DirectivesSpec
|
|
Test.Queries.VariablesAliasesFragments.Directives.IncludeAndSkipSpec
|
|
Test.Queries.VariablesAliasesFragments.Directives.IncludeSpec
|
|
Test.Queries.VariablesAliasesFragments.Directives.SkipSpec
|
|
Test.Queries.VariablesAliasesFragments.FragmentsSpec
|
|
Test.Queries.VariablesAliasesFragments.VariablesSpec
|
|
Test.Regression.AggregateBoolExpConflictSpec
|
|
Test.Regression.ArrayLiteralTextEncodingSpec
|
|
Test.Regression.DoNotTruncateSessionVariables8158Spec
|
|
Test.Regression.DropColumnWithPermissions8415Spec
|
|
Test.Regression.InsertOnConflict8260Spec
|
|
Test.Regression.LongIdentifiers3796Spec
|
|
Test.Regression.MultiColumnObjectRelationshipsSpec
|
|
Test.Regression.MultiplexQuerySpec
|
|
Test.Regression.NullRemoteRelationship8345Spec
|
|
Test.Regression.NullsOrderParsing8780Spec
|
|
Test.Regression.ObjectRelationshipsLimit7936Spec
|
|
Test.Regression.RemoteRelationshipStringifyNum8387Spec
|
|
Test.Regression.RootExistElementAliasing9457Spec
|
|
Test.Regression.StreamConflictSpec
|
|
Test.Regression.UsingTheSameFunctionForRootFieldAndComputedField8643Spec
|
|
Test.Regression.SqlServerIdentifierQuotingSpec
|
|
Test.ScheduledEvents.ScheduledEventsInvalidEnvVarSpec
|
|
Test.Schema.ComputedFields.ScalarSpec
|
|
Test.Schema.ComputedFields.TableSpec
|
|
Test.Schema.ConflictsSpec
|
|
Test.Schema.CustomFieldNames.MutationSpec
|
|
Test.Schema.CustomFieldNames.QuerySpec
|
|
Test.Schema.CustomFieldsSpec
|
|
Test.Schema.DataValidations.Permissions.InsertSpec
|
|
Test.Schema.DataValidations.Permissions.SelectSpec
|
|
Test.Schema.DataValidations.Permissions.UpdateSpec
|
|
Test.Schema.DefaultValues.DefaultValuesSpec
|
|
Test.Schema.DefaultValues.OnConflictSpec
|
|
Test.Schema.EnumsSpec
|
|
Test.Schema.RemoteRelationships.FromRemoteSchemaSpec
|
|
Test.Schema.RemoteRelationships.MetadataAPI.ClearMetadataSpec
|
|
Test.Schema.RemoteRelationships.MetadataAPI.Common
|
|
Test.Schema.RemoteRelationships.MetadataAPI.DropSource.DBtoDBRelationshipSpec
|
|
Test.Schema.RemoteRelationships.MetadataAPI.DropSource.RSToDBRelationshipSpec
|
|
Test.Schema.RemoteRelationships.XToDBArrayRelationshipSpec
|
|
Test.Schema.RemoteRelationships.XToDBObjectRelationshipSpec
|
|
Test.Schema.RemoteRelationships.XToRemoteSchemaRelationshipSpec
|
|
Test.Schema.RemoteSchemaCustomizationSpec
|
|
Test.Schema.TableRelationships.ArrayRelationshipsSpec
|
|
Test.Schema.TableRelationships.CrossSchemaArrayRelationshipsSpec
|
|
Test.Schema.TableRelationships.CrossSchemaObjectRelationshipsSpec
|
|
Test.Schema.TableRelationships.ObjectRelationshipsSpec
|
|
Test.Schema.TableRelationships.PortedSpec
|
|
Test.Schema.ViewsSpec
|
|
Test.Subscriptions.DerivedDataSpec
|
|
Test.Subscriptions.RowUpdatesSpec
|
|
Test.Subscriptions.StreamingSubscriptionsSpec
|
|
Test.Webhook.WebhookTransformSpec
|
|
|
|
executable api-tests
|
|
import: common-all
|
|
build-depends:
|
|
, lens-aeson
|
|
, api-tests
|
|
, base
|
|
, hspec-core
|
|
|
|
-- Turning off optimizations is intentional; tests aren't
|
|
-- performance sensitive and waiting for compilation is a problem.
|
|
ghc-options:
|
|
-threaded
|
|
-rtsopts "-with-rtsopts=-N"
|
|
|
|
default-language: GHC2021
|
|
hs-source-dirs: test-runner
|
|
main-is: Main.hs
|
|
|
|
library feature-matrix
|
|
import: common-all
|
|
build-depends:
|
|
, aeson
|
|
, attoparsec
|
|
, base
|
|
, bytestring
|
|
, containers
|
|
, lucid2
|
|
, mtl
|
|
, raw-strings-qq
|
|
, text
|
|
|
|
default-language: GHC2021
|
|
default-extensions:
|
|
BlockArguments
|
|
DataKinds
|
|
DeriveGeneric
|
|
DerivingStrategies
|
|
ImportQualifiedPost
|
|
LambdaCase
|
|
MultiWayIf
|
|
NamedFieldPuns
|
|
NoImplicitPrelude
|
|
OverloadedStrings
|
|
PatternGuards
|
|
QuasiQuotes
|
|
RecordWildCards
|
|
ScopedTypeVariables
|
|
TypeApplications
|
|
TypeFamilies
|
|
|
|
hs-source-dirs: src-feature-matrix
|
|
|
|
exposed-modules:
|
|
Hasura.FeatureMatrix
|
|
|
|
executable render-feature-matrix
|
|
import: common-all
|
|
build-depends:
|
|
, base
|
|
, feature-matrix
|
|
, bytestring
|
|
|
|
default-language: GHC2021
|
|
default-extensions:
|
|
BlockArguments
|
|
DataKinds
|
|
DeriveGeneric
|
|
DerivingStrategies
|
|
ImportQualifiedPost
|
|
LambdaCase
|
|
MultiWayIf
|
|
NamedFieldPuns
|
|
NoImplicitPrelude
|
|
OverloadedStrings
|
|
PatternGuards
|
|
RecordWildCards
|
|
ScopedTypeVariables
|
|
TypeApplications
|
|
TypeFamilies
|
|
|
|
hs-source-dirs: app-render-feature-matrix
|
|
|
|
-- Turning off optimizations is intentional; tests aren't
|
|
-- performance sensitive and waiting for compilation is a problem.
|
|
ghc-options:
|
|
-threaded
|
|
-rtsopts "-with-rtsopts=-N"
|
|
|
|
main-is: Main.hs
|
|
|
|
executable produce-feature-matrix
|
|
import: common-all
|
|
build-depends:
|
|
, api-tests
|
|
, base
|
|
, bytestring
|
|
, directory
|
|
, fast-logger
|
|
, feature-matrix
|
|
, filepath
|
|
, hasura-extras
|
|
, hasura-prelude
|
|
, hspec
|
|
, optparse-generic
|
|
, postgres-options
|
|
, stm
|
|
, test-harness
|
|
|
|
default-language: GHC2021
|
|
default-extensions:
|
|
BlockArguments
|
|
DataKinds
|
|
LambdaCase
|
|
NoImplicitPrelude
|
|
OverloadedStrings
|
|
ExplicitNamespaces
|
|
OverloadedRecordDot
|
|
|
|
hs-source-dirs: app-produce-feature-matrix
|
|
|
|
-- Turning off optimizations is intentional; tests aren't
|
|
-- performance sensitive and waiting for compilation is a problem.
|
|
ghc-options:
|
|
-O0
|
|
-threaded
|
|
-rtsopts "-with-rtsopts=-N4"
|
|
|
|
main-is: Main.hs
|