Skip to content

chore(deps): bump @elastic/elasticsearch from 5.6.22 to 8.13.0 #1020

chore(deps): bump @elastic/elasticsearch from 5.6.22 to 8.13.0

chore(deps): bump @elastic/elasticsearch from 5.6.22 to 8.13.0 #1020

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Mocha Tests failed Apr 2, 2024 in 1s

775 passed, 6 failed and 0 skipped

Tests failed

❌ test-results.json

781 tests were completed in 216s with 775 passed, 6 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/src/api/common-tests.js 7βœ… 141ms
test/src/api/routes/test-author.js 17βœ… 319ms
test/src/api/routes/test-edition-group.js 16βœ… 148ms
test/src/api/routes/test-edition.js 23βœ… 598ms
test/src/api/routes/test-publisher.js 22βœ… 431ms
test/src/api/routes/test-search.js 1❌ 87ms
test/src/api/routes/test-series.js 17βœ… 183ms
test/src/api/routes/test-work.js 20βœ… 95s
test/src/client/entity-editor/create-edition.js 1βœ… 7ms
test/src/client/entity-editor/validators/test-alias.js 34βœ… 2ms
test/src/client/entity-editor/validators/test-author.js 58βœ… 7ms
test/src/client/entity-editor/validators/test-edition.js 103βœ… 11ms
test/src/client/entity-editor/validators/test-identifier.js 36βœ… 2ms
test/src/client/entity-editor/validators/test-name-section.js 27βœ… 1ms
test/src/client/entity-editor/validators/test-publication.js 22βœ… 2ms
test/src/client/entity-editor/validators/test-publisher.js 44βœ… 3ms
test/src/client/entity-editor/validators/test-series.js 25βœ… 1ms
test/src/client/entity-editor/validators/test-submission-section.js 10βœ… 0ms
test/src/client/entity-editor/validators/test-work.js 29βœ… 2ms
test/src/client/unified-form/validators/test-cover-tab.js 4βœ… 0ms
test/src/client/unified-form/validators/test-detail-tab.js 2βœ… 0ms
test/src/server/helpers/collections.js 10βœ… 49ms
test/src/server/helpers/revisions.js 20βœ… 643ms
test/src/server/helpers/utils.js 15βœ… 65ms
test/src/server/routes/collection.js 20βœ… 5❌ 51s
test/src/server/routes/editor.js 8βœ… 54ms
test/src/server/routes/entity/author.js 10βœ… 3s
test/src/server/routes/entity/edition-group.js 10βœ… 2s
test/src/server/routes/entity/edition.js 10βœ… 313ms
test/src/server/routes/entity/entity.js 16βœ… 378ms
test/src/server/routes/entity/publisher.js 10βœ… 237ms
test/src/server/routes/entity/series.js 10βœ… 2s
test/src/server/routes/entity/work.js 10βœ… 2s
test/src/server/routes/merge.js 12βœ… 4s
test/src/server/routes/relationship.js 3βœ… 2s
test/src/server/routes/revision.js 4βœ… 29ms
test/src/server/routes/type-editor/identifier-type.js 11βœ… 100ms
test/src/server/routes/type-editor/relationship-type.js 11βœ… 95ms
test/src/server/routes/unifiedform.js 10βœ… 553ms
test/test-achievement.js 48βœ… 445ms
test/test-render-relationship.js 6βœ… 1ms
test/test-site.js 4βœ… 30ms

βœ…Β test/src/api/common-tests.js

Common test of API
  βœ… should throw a 404 error if endpoint is not valid
  βœ… should throw a 405 error if send delete request
  βœ… should throw a 405 error if send post request
  βœ… should throw a 405 error if send put request
Lookup endpoints
  βœ… GET {entity}/{BBID}/aliases should return aliases with a specific structure
  βœ… GET {entity}/{BBID}/identifiers should return identifiers with a specific structure
  βœ… GET {entity}/{BBID}/relationships should return relationships with a specific structure

βœ…Β test/src/api/routes/test-author.js

Browse Author
  βœ… should allow params to be case insensitive
  βœ… should NOT throw an error if there is no related entity
  βœ… should return 0 authors (with Incorrect Type filter)
  βœ… should return list of authors associated with the work (with Type filter)
  βœ… should return list of authors associated with the work (without any filter)
  βœ… should throw 400 error for invalid bbid
  βœ… should throw 404 error for incorrect bbid
  βœ… should throw an error if trying to browse more than one entity
GET /Author
  βœ… should get basic information of an Author
  βœ… should return list of aliases of an Author
  βœ… should return list of identifiers of an Author
  βœ… should return list of relationships of an Author
  βœ… should throw a 400 error if trying to access an author with invalid BBID
  βœ… should throw a 404 error if trying to access aliases of an Author that does not exist
  βœ… should throw a 404 error if trying to access an author that does not exist
  βœ… should throw a 404 error if trying to access identifiers of an Author that does not exist
  βœ… should throw a 404 error if trying to access relationships of an Author that does not exist

βœ…Β test/src/api/routes/test-edition-group.js

Browse EditionGroup
  βœ… should allow params to be case insensitive
  βœ… should return 0 EditionGroups (with Incorrect Type Filter)
  βœ… should return list of EditionGroups associated with the edition
  βœ… should return list of EditionGroups associated with the edition (with Type Filter)
  βœ… should throw 400 error for incorrect linked entity
  βœ… should throw 400 error for invalid bbid
  βœ… should throw 404 error for incorrect bbid
GET /EditionGroup
  βœ… should get basic information of an Edition Group
  βœ… should return list of aliases of an Edition Group
  βœ… should return list of identifiers of an Edition Group
  βœ… should return list of relationships of an Edition Group
  βœ… should throw a 400 error if trying to access an edition with invalid BBID
  βœ… should throw a 404 error if trying to access aliases of an Edition Group that does not exist
  βœ… should throw a 404 error if trying to access an edition group that does not exist
  βœ… should throw a 404 error if trying to access identifiers of an Edition Group that does not exist
  βœ… should throw a 404 error if trying to access relationships of an Edition Group that does not exist

βœ…Β test/src/api/routes/test-edition.js

Browse Edition
  βœ… should allow params to be case insensitive
  βœ… should NOT throw an error if there is no related edition-group
  βœ… should NOT throw an error if there is no related publisher
  βœ… should NOT throw an error if there is no related work
  βœ… should return editions associated with a publisher
  βœ… should return list of editions associated with edition-group
  βœ… should return list of editions associated with the author (with Format Filter and Language Filter)
  βœ… should return list of editions associated with the author (with Format Filter)
  βœ… should return list of editions associated with the author (with Language Filter)
  βœ… should return list of editions associated with the author (without any filter)
  βœ… should return no editions (with WRONG Format Filter and WRONG Language Filter)
  βœ… should throw 400 error for invalid bbid
  βœ… should throw 404 error for incorrect bbid
  βœ… should throw an error if trying to browse more than one entity
GET /Edition
  βœ… should get basic information of edition
  βœ… should return list of aliases of an Edition
  βœ… should return list of identifiers of an Edition
  βœ… should return list of relationships of an Edition
  βœ… should throw a 400 error if trying to access an edition with invalid BBID
  βœ… should throw a 404 error if trying to access aliases of an Edition that does not exist
  βœ… should throw a 404 error if trying to access an edition that does not exist
  βœ… should throw a 404 error if trying to identifiers  of an Edition that does not exist
  βœ… should throw a 404 error if trying to relationships of an Edition that does not exist

βœ…Β test/src/api/routes/test-publisher.js

Browse Publishers
  βœ… should allow params to be case insensitive
  βœ… should NOT throw error with no related edition
  βœ… should NOT throw error with no related entity
  βœ… should return list of Publisher, associated with the Work
  βœ… should return list of Publisher, associated with the Work (with Area Filter)
  βœ… should return list of Publisher, associated with the Work (with Type Filter and Area filter)
  βœ… should return list of Publisher, associated with the Work (with Type Filter)
  βœ… should return no publisher (Incorrect Filters)
  βœ… should return publishers associated with an edition
  βœ… should throw 400 error for incorrect linked entity
  βœ… should throw 400 error for invalid bbid
  βœ… should throw 404 error for incorrect bbid
  βœ… should throw an error if trying to browse more than one entity
GET /Publisher
  βœ… should get basic information of a Publisher
  βœ… should return list of aliases of a Publisher
  βœ… should return list of identifiers of a Publisher
  βœ… should return list of relationships of a Publisher
  βœ… should throw a 400 error if trying to access a publisher with invalid BBID
  βœ… should throw a 404 error if trying to access a publisher that does not exist
  βœ… should throw a 404 error if trying to access aliases of a Publisher that does not exist
  βœ… should throw a 404 error if trying to access identifiers of a Publisher that does not exist
  βœ… should throw a 404 error if trying to access relationships of a Publisher that does not exist

❌ test/src/api/routes/test-search.js

GET /search
  ❌ "before all" hook for "should return search result for given query"
	The client noticed that the server is not Elasticsearch and we do not support this unknown product.

βœ…Β test/src/api/routes/test-series.js

Browse Series
  βœ… should allow params to be case insensitive
  βœ… should NOT throw an error if there is no related entity
  βœ… should return 0 series (with Incorrect Type filter)
  βœ… should return list of series associated with the work (with Type filter)
  βœ… should return list of series associated with the work (without any filter)
  βœ… should throw 400 error for invalid bbid
  βœ… should throw 404 error for incorrect bbid
  βœ… should throw an error if trying to browse more than one entity
GET /Series
  βœ… should get basic information of an Series
  βœ… should return list of aliases of an Series
  βœ… should return list of identifiers of an Series
  βœ… should return list of relationships of an Series
  βœ… should throw a 400 error if trying to access an series with invalid BBID
  βœ… should throw a 404 error if trying to access aliases of an Series that does not exist
  βœ… should throw a 404 error if trying to access an series that does not exist
  βœ… should throw a 404 error if trying to access identifiers of an Series that does not exist
  βœ… should throw a 404 error if trying to access relationships of an Series that does not exist

βœ…Β test/src/api/routes/test-work.js

Browse Works
  βœ… should allow params to be case insensitive
  βœ… should NOT throw an error when there is no related entity
  βœ… should return 0 works (with Incorrect Type Filter and  Incorrect Language Filter)
  βœ… should return list of works associated with the author (with Language Filter)
  βœ… should return list of works associated with the author (with Type Filter and Language Filter)
  βœ… should return list of works associated with the author (with Type Filter)
  βœ… should return list of works associated with the author (without any filter)
  βœ… should throw 400 error for incorrect linked entity
  βœ… should throw 400 error for invalid bbid
  βœ… should throw 404 error for incorrect bbid
  βœ… should throw an error if trying to browse more than one entity
GET /work
  βœ… should get basic information of work
  βœ… should return list of aliases of a Work
  βœ… should return list of identifiers of work
  βœ… should return list of relationships of a Work
  βœ… should throw a 400 error if trying to access a work with invalid BBID
  βœ… should throw a 404 error if trying to access a work that does not exist
  βœ… should throw a 404 error if trying to access aliases of a Work that does not exist
  βœ… should throw a 404 error if trying to access identifiers of a Work that does not exist
  βœ… should throw a 404 error if trying to access relationships of a Work that does not exist

βœ…Β test/src/client/entity-editor/create-edition.js

Creating an Edition
  βœ… should automatically create an Edition Group if none is passed

βœ…Β test/src/client/entity-editor/validators/test-alias.js

validateAlias* functions validateAlias
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid language
  βœ… should reject an Object with an invalid name
  βœ… should reject an Object with an invalid primary
  βœ… should reject an Object with an invalid sort name
  βœ… should reject any other non-null data type
validateAlias* functions validateAliases
  βœ… should pass an empty Immutable.Map
  βœ… should pass an empty Object
  βœ… should pass an Immutable.Map of valid Immutable.Maps
  βœ… should pass an Object of two valid Objects
  βœ… should reject a null value
  βœ… should reject an Immutable.Map containing one invalid Immutable.Map
  βœ… should reject an Object containing one invalid Object
  βœ… should reject any other non-null data type
validateAlias* functions validateAliasLanguage
  βœ… should pass any positive integer value
  βœ… should reject a null value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateAlias* functions validateAliasName
  βœ… should pass any non-empty string value
  βœ… should reject a null value
  βœ… should reject an empty string
  βœ… should reject any non-string value
validateAlias* functions validateAliasPrimary
  βœ… should pass any boolean value
  βœ… should reject a null value
  βœ… should reject any non-boolean value
validateAlias* functions validateAliasSortName
  βœ… should pass any non-empty string value
  βœ… should reject a null value
  βœ… should reject an empty string
  βœ… should reject any non-string value

βœ…Β test/src/client/entity-editor/validators/test-author.js

validateAuthorSection* functions validateAuthorSection
  βœ… should pass a empty value  object
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass any other non-null data type
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid area
  βœ… should reject an Object with an invalid area
  βœ… should reject an Object with an invalid begin date
  βœ… should reject an Object with an invalid end date
  βœ… should reject an Object with an invalid ended flag
  βœ… should reject an Object with an invalid gender
  βœ… should reject an Object with an invalid type
validateAuthorSection* functions validateAuthorSectionBeginArea
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid ID
  βœ… should reject any other non-null data type
validateAuthorSection* functions validateAuthorSectionBeginDate
  βœ… should pass an empty value object
  βœ… should pass an object containing a valid year and month value
  βœ… should pass an object containing a valid year value
  βœ… should pass an object containing a valid year, month and day value
  βœ… should reject all other forms of invalid dates
validateAuthorSection* functions validateAuthorSectionEndArea
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid ID
  βœ… should reject any other non-null data type
validateAuthorSection* functions validateAuthorSectionEndDate
  βœ… should pass if the begin date is empty/undefined/invalid
  βœ… should pass if the begin date occurs before the end one
  βœ… should reject if the begin date occurs after the end one
  βœ… should reject if the end date is invalid
validateAuthorSection* functions validateAuthorSectionEnded
  βœ… should pass a null value
  βœ… should pass any boolean value
  βœ… should reject any non-boolean value
validateAuthorSection* functions validateAuthorSectionGender
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateAuthorSection* functions validateAuthorSectionType
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateAuthorSection* functions validateForm
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an Object with an empty submission section
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid alias editor
  βœ… should reject an Object with an invalid author section
  βœ… should reject an Object with an invalid identifier editor
  βœ… should reject an Object with an invalid name section
  βœ… should reject any other non-null data type

βœ…Β test/src/client/entity-editor/validators/test-edition.js

validateEditionSection* functions validateEditionSection
  βœ… should ignore any other non-null data type
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid depth
  βœ… should reject an Object with an invalid edition group
  βœ… should reject an Object with an invalid format
  βœ… should reject an Object with an invalid height
  βœ… should reject an Object with an invalid pages
  βœ… should reject an Object with an invalid publisher
  βœ… should reject an Object with an invalid release date
  βœ… should reject an Object with an invalid status
  βœ… should reject an Object with an invalid weight
  βœ… should reject an Object with an invalid width
  βœ… should reject an Object with invalid languages
validateEditionSection* functions validateEditionSectionDepth
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateEditionSectionEditionGroup
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass any other non-null data type with no ID
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid ID
validateEditionSection* functions validateEditionSectionFormat
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateEditionSectionHeight
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateEditionSectionLanguage
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid value
  βœ… should reject any other non-null data type
validateEditionSection* functions validateEditionSectionLanguages
  βœ… should pass a null value
  βœ… should pass an Array of two valid Objects
  βœ… should pass an empty Array
  βœ… should pass an empty Immutable.List
  βœ… should pass an Immutable.List of valid Immutable.Maps
  βœ… should reject an Array containing one invalid Object
  βœ… should reject an Immutable.List containing one invalid Immutable.Map
  βœ… should reject any other non-null data type
validateEditionSection* functions validateEditionSectionPages
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateEditionSectionPublisher
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid ID
  βœ… should reject any other non-null data type
validateEditionSection* functions validateEditionSectionReleaseDate
  βœ… should pass an empty value object
  βœ… should pass an object containing a valid year and month value
  βœ… should pass an object containing a valid year value
  βœ… should pass an object containing a valid year, month and day value
  βœ… should reject all other forms of invalid dates
validateEditionSection* functions validateEditionSectionStatus
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateEditionSectionWeight
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateEditionSectionWidth
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionSection* functions validateForm
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an Object with an empty author credit editor and AC disabled
  βœ… should pass an Object with an empty submission section
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with a non empty author credit editor and AC disabled
  βœ… should reject an Object with an empty author credit editor
  βœ… should reject an Object with an invalid alias editor
  βœ… should reject an Object with an invalid author credit editor
  βœ… should reject an Object with an invalid edition section
  βœ… should reject an Object with an invalid identifier editor
  βœ… should reject an Object with an invalid name section
  βœ… should reject any other non-null data type

βœ…Β test/src/client/entity-editor/validators/test-identifier.js

validateIdentifier* functions validateIdentifier
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid type
  βœ… should reject an Object with an invalid value
  βœ… should reject any other non-null data type
validateIdentifier* functions validateIdentifiers
  βœ… should pass an empty Immutable.Map
  βœ… should pass an empty Object
  βœ… should pass an Immutable.Map of valid Immutable.Maps
  βœ… should pass an Object of two valid Objects
  βœ… should reject a null value
  βœ… should reject an Immutable.Map containing one invalid Immutable.Map
  βœ… should reject an Object containing one invalid Object
  βœ… should reject any other non-null data type
validateIdentifier* functions validateIdentifierType with no type set
  βœ… should pass any positive integer value
  βœ… should reject a null value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateIdentifier* functions validateIdentifierType with type set
  βœ… should pass any positive integer value which is a type ID
  βœ… should reject a null value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject any positive integer value which isn't a type ID
  βœ… should reject zero
validateIdentifier* functions validateIdentifierValue with no type set
  βœ… should pass any non-empty string value
  βœ… should reject a null value
  βœ… should reject an empty string
  βœ… should reject any non-string value
validateIdentifier* functions validateIdentifierValue with type set
  βœ… should pass a non-empty string value that matches the validation regular expression
  βœ… should reject a non-empty string value that doesn't match the validation regular expression
  βœ… should reject a null value
  βœ… should reject an empty string
  βœ… should reject any non-string value

βœ…Β test/src/client/entity-editor/validators/test-name-section.js

validateNameSection* functions validateNameSection
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid disambiguation
  βœ… should reject an Object with an invalid language
  βœ… should reject an Object with an invalid name
  βœ… should reject an Object with an invalid sort name
  βœ… should reject any other non-null data type
validateNameSection* functions validateNameSectionDisambiguation
  βœ… should pass a null value
  βœ… should pass any non-empty string value
  βœ… should reject an empty string
  βœ… should reject any non-string value
validateNameSection* functions validateNameSectionLanguage
  βœ… should pass any positive integer value
  βœ… should reject a null value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateNameSection* functions validateNameSectionName
  βœ… should pass any non-empty string value
  βœ… should reject a null value
  βœ… should reject an empty string
  βœ… should reject any non-string value
validateNameSection* functions validateNameSectionSortName
  βœ… should pass any non-empty string value
  βœ… should reject a null value
  βœ… should reject an empty string
  βœ… should reject any non-string value

βœ…Β test/src/client/entity-editor/validators/test-publication.js

validateEditionGroupSection* functions validateEditionGroupSection
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass any other non-null data type
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid type
validateEditionGroupSection* functions validateEditionGroupSectionType
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero
validateEditionGroupSection* functions validateForm
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an Object with an empty submission section
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid alias editor
  βœ… should reject an Object with an invalid Edition Group section
  βœ… should reject an Object with an invalid identifier editor
  βœ… should reject an Object with an invalid name section
  βœ… should reject any other non-null data type

βœ…Β test/src/client/entity-editor/validators/test-publisher.js

validatePublisherSection* functions validateForm
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an Object with an empty submission section
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid alias editor
  βœ… should reject an Object with an invalid identifier editor
  βœ… should reject an Object with an invalid name section
  βœ… should reject an Object with an invalid publisher section
  βœ… should reject any other non-null data type
validatePublisherSection* functions validatePublisherSection
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass any other non-null data type
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid area
  βœ… should reject an Object with an invalid begin date
  βœ… should reject an Object with an invalid end date
  βœ… should reject an Object with an invalid ended flag
  βœ… should reject an Object with an invalid type
validatePublisherSection* functions validatePublisherSectionArea
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid ID
  βœ… should reject any other non-null data type
validatePublisherSection* functions validatePublisherSectionBeginDate
  βœ… should pass an empty value object
  βœ… should pass an object containing a valid year and month value
  βœ… should pass an object containing a valid year value
  βœ… should pass an object containing a valid year, month and day value
  βœ… should reject all other forms of invalid dates
validatePublisherSection* functions validatePublisherSectionEndDate
  βœ… should pass if the begin date is empty/undefined/invalid
  βœ… should pass if the begin date occurs before the end one
  βœ… should reject if the begin date occurs after the end one
  βœ… should reject if the end date is invalid
validatePublisherSection* functions validatePublisherSectionEnded
  βœ… should pass a null value
  βœ… should pass any boolean value
  βœ… should reject any non-boolean value
validatePublisherSection* functions validatePublisherSectionType
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero

βœ…Β test/src/client/entity-editor/validators/test-series.js

validateSeriesSection* functions validateForm
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an Object with an empty submission section
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid alias editor
  βœ… should reject an Object with an invalid identifier editor
  βœ… should reject an Object with an invalid name section
  βœ… should reject an Object with an invalid series section
  βœ… should reject any other non-null data type
validateSeriesSection* functions validateSeriesSection
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid ordering type
  βœ… should reject an Object with an invalid series type
  βœ… should reject any other non-null data type
validateSeriesSection* functions validateSeriesSectionEntityType
  βœ… should return false if passed a invalid series type
  βœ… should return true if passed a valid series type
validateSeriesSection* functions validateSeriesSectionOrderingType
  βœ… should pass any positive integer value
  βœ… should reject a null value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero

βœ…Β test/src/client/entity-editor/validators/test-submission-section.js

validateSubmissionSection* functions validateSubmissionSection
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an empty note Immutable.Map
  βœ… should pass an Object with an empty note
  βœ… should reject any other non-null data type
validateSubmissionSection* functions validateSubmissionSectionNote
  βœ… should pass a null value
  βœ… should pass any non-empty string value
  βœ… should reject an empty string
  βœ… should reject any non-string value

βœ…Β test/src/client/entity-editor/validators/test-work.js

validateWorkSection* functions validateForm
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass an Object with an empty submission section
  βœ… should reject a null value
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid alias editor
  βœ… should reject an Object with an invalid identifier editor
  βœ… should reject an Object with an invalid name section
  βœ… should reject an Object with an invalid work section
  βœ… should reject any other non-null data type
validateWorkSection* functions validateWorkSection
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should pass any other non-null data type
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid language
  βœ… should reject an Object with an invalid type
validateWorkSection* functions validateWorkSectionLanguage
  βœ… should pass a null value
  βœ… should pass a valid Immutable.Map
  βœ… should pass a valid Object
  βœ… should reject an invalid Immutable.Map
  βœ… should reject an Object with an invalid value
  βœ… should reject any other non-null data type
validateWorkSection* functions validateWorkSectionType
  βœ… should pass a null value
  βœ… should pass any positive integer value
  βœ… should reject an negative number
  βœ… should reject any non-number value
  βœ… should reject NaN
  βœ… should reject zero

βœ…Β test/src/client/unified-form/validators/test-cover-tab.js

CoverTabValidators validateCoverTabState
  βœ… should be false for modified cover tab state
  βœ… should be true for unmodified cover tab state
CoverTabValidators validateISBNState
  βœ… should be false for invalid isbn type
  βœ… should be true for valid isbn type

βœ…Β test/src/client/unified-form/validators/test-detail-tab.js

DetailTabValidators
  βœ… should be false for modified detail-tab state
  βœ… should be true for unmodified detail-tab state

βœ…Β test/src/server/helpers/collections.js

getOrderedCollectionsForEditorPage
  βœ… should return 1 collection when editor1 is logged in (fetching "Edition-Collection" for editor1)
  βœ… should return all collections when editor1 is logged in (fetching collections for editor1)
  βœ… should return all collections when editor2 is logged in (fetching collections for editor2)
  βœ… should return collections with expected keys
  βœ… should return correct collections when passed with an offset (fetching for editor1)
  βœ… should return only public collections when no one is logged in (fetching collections for editor1)
  βœ… should return only public collections when no one is logged in (fetching collections for editor2)
getOrderedPublicCollections
  βœ… should return collections when a filter is applied
  βœ… should return collections when passed with an offset
  βœ… should return collections with expected keys

βœ…Β test/src/server/helpers/revisions.js

getAssociatedEntityRevisions
  βœ… should return formatted revisions array after adding entities (1 revision with multiple (different type) entities revised)
  βœ… should return formatted revisions array after adding entities (1 revision with multiple entities ( same type ) revised)
  βœ… should return formatted revisions array after adding entities (5 revision each with single entity revised)
  βœ… should return formatted revisions array after adding entity (1 revision with 1 entity revised)
getOrderedRevisionForEditorPage
  βœ… should return no results if offset is higher than total revisions
  βœ… should return sorted revisions with notes sorted according to "postedAt"
  βœ… should return sorted revisions with the expected keys
  βœ… should return the expected subset of revisions when passed an offset (from)
  βœ… should throw an error for an invalid editor
getOrderedRevisions
  βœ… should return no results if offset is higher than total revisions
  βœ… should return sorted revisions with the expected keys
  βœ… should return the expected subset of revisions when passed an offset (from)
getOrderedRevisionsForEntityPage
  βœ… should return ordered revisions with expected keys (Author Revision)
  βœ… should return ordered revisions with expected keys (edition revision)
  βœ… should return ordered revisions with expected keys (EditionGroup revision)
  βœ… should return ordered revisions with expected keys (publisher revision)
  βœ… should return ordered revisions with expected keys (work revision)
  βœ… should return revisions of merged entities
  βœ… should return revisions of previously merged entities recursively
  βœ… should return revisions with notes sorted according to "postedAt" and with expected keys

βœ…Β test/src/server/helpers/utils.js

Convert ISBNs
  βœ… should return null if isbn10 not valid
  βœ… should return null if isbn13 not valid
  βœ… should return valid isbn10 from isbn13
  βœ… should return valid isbn13 from isbn10
generateIdenfierState
  βœ… should return correctly formatted identifier state
getIdByField
  βœ… should return null if item does not exists
  βœ… should return the ID for an existing item
getNextEnabledAndResultsArray
  βœ… should return an array of required length and nextEnabled:false when results.length < size
  βœ… should return an array of required length and nextEnabled:false when results.length = 0
  βœ… should return an array of required length and nextEnabled:false when results.length = size
  βœ… should return an array of required length and nextEnabled:true when results.length > size
  βœ… should return an array of required length and nextEnabled:true when results.length > size and results.length - size > 1
parseLanguages
  βœ… should return correctly formatted languages state
searchOption
  βœ… should return correct option if match found
  βœ… should return null if no exact match found

❌ test/src/server/routes/collection.js

POST /collection/:collectionID/add
  βœ… should be able to add multiple items
  βœ… should be able to add to my own collection
  βœ… should be able to add to private collection I"m collaborator of
  βœ… should be able to add to public collection I"m collaborator of
  βœ… should not add duplicate items
  βœ… should not be able to add to a private collection I’m not a collaborator of
  βœ… should not be able to add to a public collection I’m not a collaborator of
  βœ… should throw an error when trying to add an entity of type different than the collection type
  βœ… should throw an error when trying to add an entity that does not exist
  βœ… should throw an error when trying to add entity with invalid bbid
  βœ… should throw error for empty bbid array
POST /collection/:collectionID/remove
  βœ… should be able to remove from my own collection
  βœ… should be able to remove from private collection I"m collaborator of
  βœ… should be able to remove from public collection I"m collaborator of
  βœ… should be able to remove multiple items
  βœ… should not be able to remove from a private collection I’m not a collaborator of
  βœ… should not be able to remove from a public collection I’m not a collaborator of
  βœ… should throw error for empty bbid array
  βœ… should throw error when trying to remove an entity that do not exist in the collection
  βœ… should throw error when trying to remove an entity with invalid bbid
POST /collection/collectionID/collaborator/remove
  ❌ "before all" hook for "should allow collaborator to stop collaboration"
	The client noticed that the server is not Elasticsearch and we do not support this unknown product.
POST /collection/collectionID/delete
  ❌ "before all" hook for "should be able to delete my collection"
	The client noticed that the server is not Elasticsearch and we do not support this unknown product.
POST /collection/create
  ❌ "after all" hook for "should correctly add collaborators in the collection"
	Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/collection.js)
  ❌ "before all" hook for "should correctly create collection and return with status code 200 for correct data"
	The client noticed that the server is not Elasticsearch and we do not support this unknown product.
POST collection/edit
  ❌ "before all" hook for "should correctly update the collection and return 200 status code"
	The client noticed that the server is not Elasticsearch and we do not support this unknown product.

βœ…Β test/src/server/routes/editor.js

Editor with Administrator priv
  βœ… should be able to edit privs of an editor
Editor without Administrator priv
  βœ… should not be able to edit privs of an editor
getEditorActivity
  βœ… should give count months with zero or multiple revisions
  βœ… should not throw error when editor has zero revisions
  βœ… should return revision data for graph
  βœ… should throw an error for an invalid endDate
  βœ… should throw an error for an invalid startDate
  βœ… should throw an error when startDate is greater than endDate

βœ…Β test/src/server/routes/entity/author.js

Author routes with entity editing priv
  βœ… should not throw an error if creating new author
  βœ… should not throw an error if requested author BBID exists
  βœ… should not throw an error trying to edit an existing author
  βœ… should not throw error while seeding author
  βœ… should not throw not authorized error while seeding author
  βœ… should throw an error if requested BBID is invalid
Author routes without entity editing priv
  βœ… should throw an error if trying to open author create page
  βœ… should throw an error trying to edit an existing author
  βœ… should throw an error when trying to delete an existing author
  βœ… should throw not authorized error while seeding author

βœ…Β test/src/server/routes/entity/edition-group.js

Edition Group routes with entity editing priv
  βœ… should not throw an error if creating new edition-group
  βœ… should not throw an error if requested edition group BBID exists
  βœ… should not throw an error trying to edit an existing edition group
  βœ… should not throw error while seeding edition group
  βœ… should not throw not authorized error while seeding edition group
  βœ… should throw an error if requested BBID is invalid
Edition Group routes without entity editing priv
  βœ… should throw an error if trying to open edition-group create page
  βœ… should throw an error trying to edit an existing edition-group
  βœ… should throw an error when trying to delete an existing edition-group
  βœ… should throw not authorized error while seeding edition-group

βœ…Β test/src/server/routes/entity/edition.js

Edition routes with entity editing priv
  βœ… should not throw an error if creating new edition
  βœ… should not throw an error if requested edition BBID exists
  βœ… should not throw an error trying to edit an existing edition
  βœ… should not throw error while seeding edition
  βœ… should not throw not authorized error while seeding edition
  βœ… should throw an error if requested BBID is invalid
Edition routes without entity editing priv
  βœ… should throw an error if trying to open edition create page
  βœ… should throw an error trying to edit an existing edition
  βœ… should throw an error when trying to delete an existing edition
  βœ… should throw not authorized error while seeding edition

βœ…Β test/src/server/routes/entity/entity.js

deleteRelationships
  βœ… it should delete only the relationships to the entity being deleted (meaning if entity A has rels to B and C and I deleted B, A should still have a rel to C)
  βœ… it should return an array containing the other entity to modify (this should also check that the returned entity model has a changed relationshipSetId)
  βœ… it should return an array with multiple other entities to modify if there are relationships to multiple entities
  βœ… it should return an empty array if the other entity is a deleted entity (no dataId)
  βœ… it should return an empty array if there are no relationships to delete
getDefaultAliasIndex
  βœ… should return 0 if there is no defaultAliasId and no alias marked as default
  βœ… should return null if there are no aliases in the aliasSet
  βœ… should return null if there is not aliasSet
  βœ… should return the index of the alias matching the set's defaultAliasId
  βœ… should return the index of the alias matching the set's defaultAliasId if it is a string
  βœ… should return the index of the first alias marked as default if there is no defaultAliasId
processMergeOperation
  βœ… should add the bbid of the merged entity to the entity_redirect table
  βœ… should add the entity to be merged to the returned entities
  βœ… should modify the relationshipSet of any entity related to an entity being merged
  βœ… should throw an error if there is no mergingEntities in the mergeQueue
  βœ… should throw an error if trying to merge into an entity not in the mergeQueue

βœ…Β test/src/server/routes/entity/publisher.js

Publisher routes with entity editing priv
  βœ… should not throw an error if creating new publisher
  βœ… should not throw an error if requested publisher BBID exists
  βœ… should not throw an error trying to edit an existing publisher
  βœ… should not throw error while seeding publisher
  βœ… should not throw not authorized error while seeding publisher
  βœ… should throw an error if requested BBID is invalid
Publisher routes without entity editing priv
  βœ… should throw an error if trying to open publisher create page
  βœ… should throw an error trying to edit an existing publisher
  βœ… should throw an error when trying to delete an existing publisher
  βœ… should throw not authorized error while seeding publisher

βœ…Β test/src/server/routes/entity/series.js

Series routes with entity editing priv
  βœ… should not throw an error if creating new series
  βœ… should not throw an error if requested series BBID exists
  βœ… should not throw an error trying to edit an existing series
  βœ… should not throw error while seeding series
  βœ… should not throw not authorized error while seeding series
  βœ… should throw an error if requested BBID is invalid
Series routes without entity editing priv
  βœ… should throw an error if trying to open series create page
  βœ… should throw an error trying to edit an existing series
  βœ… should throw an error when trying to delete an existing series
  βœ… should throw not authorized error while seeding series

βœ…Β test/src/server/routes/entity/work.js

Work routes with entity editing priv
  βœ… should not throw an error if creating new work
  βœ… should not throw an error if requested work BBID exists
  βœ… should not throw an error trying to edit an existing work
  βœ… should not throw error while seeding work
  βœ… should not throw not authorized error while seeding work
  βœ… should throw an error if requested BBID is invalid
Work routes without entity editing priv
  βœ… should throw an error if trying to open work create page
  βœ… should throw an error trying to edit an existing work
  βœ… should throw an error when trying to delete an existing work
  βœ… should throw not authorized error while seeding work

βœ…Β test/src/server/routes/merge.js

Merge routes with entity editing priv /add route
  βœ… should add an entity to the merge queue
  βœ… should allow adding another entity of same type to the merge queue
  βœ… should do nothing and redirect when adding the same entity BBID
  βœ… should recreate the merge queue if adding another entity type
  βœ… should throw a 404 error if entity does not exist
  βœ… should throw an 400 error if adding an invalid BBID
  βœ… should throw an 404 error if BBID is absent (invalid route)
Merge routes with entity editing priv /cancel route
  βœ… should clear the merge queue
Merge routes without entity editing priv /add route
  βœ… should throw 403 error when trying to add an entity to the merge queue
  βœ… should throw a 403 error if adding an invalid BBID
  βœ… should throw a 403 error if entity does not exist
  βœ… should throw an 404 error if BBID is absent (invalid route)

βœ…Β test/src/server/routes/relationship.js

Relationship
  βœ… should be able to add new relationships without having previous relationships
  βœ… should be able to add relationship on an entity
  βœ… should be able to remove relationship of an entity

βœ…Β test/src/server/routes/revision.js

checkValidRevisionId
  βœ… should not throw an error when revision id is valid and found
  βœ… should throw an error if requested id is invalid
  βœ… should throw an error when revision id is a decimal
  βœ… should throw an error when revision id is unavailable

βœ…Β test/src/server/routes/type-editor/identifier-type.js

Identifier Type routes with Identifier Editor priv
  βœ… should be able to correctly update the Identifier type and return status code 200
  βœ… should be able to create a new Identifier type and return with status code 200
  βœ… should not throw an error while accessing Identifier Type Editor to create new Identifier type
  βœ… should not throw an error while accessing Identifier Type Editor to edit an existing Identifier type
  βœ… should throw a 404 error when trying to access Identifier Type Editor with a non-existent id
  βœ… should throw an error when trying to access Identifier Type Editor with an invalid id
Identifier Type routes without Identifier Editor priv
  βœ… should not be able to create a new Identifier type
  βœ… should not be able to update a Identifier type
  βœ… should throw an error when trying to access Identifier Type Editor with a non-existent id
  βœ… should throw an error while accessing Identifier Type Editor to create new Identifier type
  βœ… should throw an error while accessing Identifier Type Editor to edit an existing Identifier type

βœ…Β test/src/server/routes/type-editor/relationship-type.js

Relationship Type routes with Relationship Editor priv
  βœ… should be able to correctly update the relationship type and return status code 200
  βœ… should be able to create a new relationship type and return with status code 200
  βœ… should not throw an error while accessing Relationship Type Editor to create new relationship type
  βœ… should not throw an error while accessing Relationship Type Editor to edit an existing relationship type
  βœ… should throw a 404 error when trying to access Relationship Type Editor with a non-existent id
  βœ… should throw an error when trying to access Relationship Type Editor with an invalid id
Relationship Type routes without Relationship Editor priv
  βœ… should not be able to create a new relationship type
  βœ… should not be able to update a relationship type
  βœ… should throw an error when trying to access Relationship Type Editor with a non-existent id
  βœ… should throw an error while accessing Relationship Type Editor to create new relationship type
  βœ… should throw an error while accessing Relationship Type Editor to edit an existing relationship type

βœ…Β test/src/server/routes/unifiedform.js

Unified form routes with entity editing priv
  βœ… should not throw error when linking existing works to edition
  βœ… should not throw error while adding relationship to single entity
  βœ… should not throw error while creating multiple entities
  βœ… should not throw error while creating single entity
  βœ… should not throw error while editing single entity
  βœ… should not throw error while linking existing author to edition using AC
  βœ… should not throw error while linking existing edition-group to edition
  βœ… should not throw error while linking existing publisher to edition
  βœ… should throw bad request error while posting invalid form
Unified form routes without entity editing priv
  βœ… should throw an error if trying to open unified form create page

βœ…Β test/test-achievement.js

achievement module Author Creator Achievement
  βœ… I should be given to someone with an author creation
  βœ… II should be given to someone with 10 author creations
  βœ… III should be given to someone with 100 author creations
  βœ… should not be given to someone with 0 author creations
achievement module awardAchievement
  βœ… should award achievements
  βœ… should reject invalid achievements
  βœ… should reject invalid editors
achievement module awardTitle
  βœ… should award titles
  βœ… should reject invalid editors
  βœ… should reject invalid titles
achievement module Explorer Achievement
  βœ… I should be given to someone with 10 entity views
  βœ… I should not be given to someone with 9 entity views
  βœ… II should be given to someone with 100 entity views
  βœ… III should be given to someone with 1000 entity views
achievement module Fun Runner Achievement
  βœ… should be given to someone with a revision a day for a week
  βœ… shouldn't be given to someone without a revision a day for a week
achievement module Hot Off the Press Achievement
  βœ… should be given to someone with edition revision released this week
  βœ… shouldn't be given when edition revision released a week ago
achievement module Limited Edition Achievement
  βœ… I should given to someone with an edition creation
  βœ… II should be given to someone with 10 edition creations
  βœ… III should be given to someone with 100 edition creations
  βœ… should not given to someone with 0 edition creations
achievement module Marathoner Achievement
  βœ… should be given to someone with a revision a day for 30 days
  βœ… shouldn't be given to someone without a revision a day for 30 days
achievement module Publisher Achievement
  βœ… I should be given to someone with an edition group creation
  βœ… II should be given to someone with 10 edition groups creations
  βœ… III should be given to someone with 100 edition groups creations
  βœ… should not be given to someone with 0 edition group creation
achievement module Publisher Creator Achievement
  βœ… I should be given to someone with a publisher creation
  βœ… II should be given to someone with 10 publisher creations
  βœ… III should be given to someone with 100 publisher creations
  βœ… should not be given to someone with 0 publisher creations
achievement module Revisionist Achievement
  βœ… I should be given to someone with a revision
  βœ… II should be given to someone with 50 revisions
  βœ… III should be given to someone with 250 revisions
  βœ… should not be given to someone without a revision
achievement module Series Creator Achievement
  βœ… I should be given to someone with a series creation
  βœ… II should be given to someone with 10 series creations
  βœ… III should be given to someone with 100 series creations
  βœ… should not be given to someone with 0 series creations
achievement module Sprinter Achievement
  βœ… should be given to someone with 10 revisions in an hour
  βœ… should not be given to someone with 9 revisions in an hour
achievement module Time Traveller Achievement
  βœ… should be given to someone with edition revision released after today
  βœ… shouldn't be given to someone with edition revision already released
achievement module Worker Bee Achievement
  βœ… I should be given to someone with a work creation
  βœ… II should be given to someone with 10 work creations
  βœ… III should be given to someone with 100 work creations
  βœ… should not be given to someone with 0 work creations

βœ…Β test/test-render-relationship.js

renderRelationship
  βœ… renders a fully specified relationship
  βœ… renders a fully specified relationship with numeric bbids
  βœ… renders a relationship where the source entity is unnamed
  βœ… throws on a null link phrase
  βœ… throws on null entities
  βœ… works with an empty link phrase

βœ…Β test/test-site.js

GET /
  βœ… should return 200
GET /about
  βœ… should return 200
GET /contribute
  βœ… should return 200
GET /develop
  βœ… should return 200

Annotations

Check failure on line 0 in test-results.json

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-search.js β–Ί GET /search β–Ί "before all" hook for "should return search result for given query"

Failed test found in:
  test-results.json
Error:
  The client noticed that the server is not Elasticsearch and we do not support this unknown product.
Raw output
ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:496:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Indices.exists (node_modules/@elastic/elasticsearch/src/api/api/indices.ts:557:12)

Check failure on line 0 in test-results.json

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/routes/collection.js β–Ί POST /collection/collectionID/collaborator/remove β–Ί "before all" hook for "should allow collaborator to stop collaboration"

Failed test found in:
  test-results.json
Error:
  The client noticed that the server is not Elasticsearch and we do not support this unknown product.
Raw output
ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:496:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Indices.exists (node_modules/@elastic/elasticsearch/src/api/api/indices.ts:557:12)

Check failure on line 0 in test-results.json

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/routes/collection.js β–Ί POST /collection/collectionID/delete β–Ί "before all" hook for "should be able to delete my collection"

Failed test found in:
  test-results.json
Error:
  The client noticed that the server is not Elasticsearch and we do not support this unknown product.
Raw output
ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:496:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Indices.exists (node_modules/@elastic/elasticsearch/src/api/api/indices.ts:557:12)

Check failure on line 0 in test-results.json

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/routes/collection.js β–Ί POST /collection/create β–Ί "after all" hook for "should correctly add collaborators in the collection"

Failed test found in:
  test-results.json
Error:
  Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/collection.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/collection.js)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)

Check failure on line 0 in test-results.json

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/routes/collection.js β–Ί POST /collection/create β–Ί "before all" hook for "should correctly create collection and return with status code 200 for correct data"

Failed test found in:
  test-results.json
Error:
  The client noticed that the server is not Elasticsearch and we do not support this unknown product.
Raw output
ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:496:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Indices.exists (node_modules/@elastic/elasticsearch/src/api/api/indices.ts:557:12)

Check failure on line 0 in test-results.json

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/routes/collection.js β–Ί POST collection/edit β–Ί "before all" hook for "should correctly update the collection and return 200 status code"

Failed test found in:
  test-results.json
Error:
  The client noticed that the server is not Elasticsearch and we do not support this unknown product.
Raw output
ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:496:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Indices.exists (node_modules/@elastic/elasticsearch/src/api/api/indices.ts:557:12)