Skip to content

feat: check if child and parent are in the same project #1469

feat: check if child and parent are in the same project

feat: check if child and parent are in the same project #1469

GitHub Actions / Unit Tests failed Oct 19, 2023 in 0s

Unit Tests ❌

Tests failed

❌ jest-junit.xml

2425 tests were completed in 258s with 2399 passed, 24 failed and 2 skipped.

Test suite Passed Failed Skipped Time
src/lib/addons/addon.test.ts 4✅ 6s
src/lib/addons/datadog.test.ts 7✅ 1s
src/lib/addons/feature-event-formatter-md.test.ts 26✅ 1s
src/lib/addons/slack-app.test.ts 7✅ 1s
src/lib/addons/slack.test.ts 8✅ 1s
src/lib/addons/teams.test.ts 5✅ 2s
src/lib/addons/webhook.test.ts 4✅ 1s
src/lib/app.test.ts 3✅ 8s
src/lib/create-config.test.ts 35✅ 1s
src/lib/db/access-store.test.ts 10✅ 3s
src/lib/db/event-store.test.ts 3✅ 3s
src/lib/db/feature-strategy-store.test.ts 4✅ 3s
src/lib/db/segment-store.test.ts 1✅ 4s
src/lib/domain/project-health/project-health.test.ts 9✅ 399ms
src/lib/error/unleash-error.test.ts 26✅ 790ms
src/lib/features/client-feature-toggles/tests/client-feature-toggle.e2e.test.ts 3✅ 3s
src/lib/features/client-feature-toggles/tests/client-feature-toggles.e2e.test.ts 5✅ 6s
src/lib/features/dependent-features/dependent.features.e2e.test.ts 4✅ 3❌ 6s
src/lib/features/export-import-toggles/export-import-api-usage.test.ts 1✅ 6s
src/lib/features/export-import-toggles/export-import-permissions.e2e.test.ts 1✅ 6s
src/lib/features/export-import-toggles/export-import.e2e.test.ts 15✅ 2❌ 10s
src/lib/features/export-import-toggles/import-context-validation.test.ts 3✅ 238ms
src/lib/features/feature-naming-pattern/feature-naming-validation.test.ts 13✅ 224ms
src/lib/features/feature-toggle/tests/deep-diff.test.ts 6✅ 272ms
src/lib/features/feature-toggle/tests/feature-toggle-service.e2e.test.ts 22✅ 9s
src/lib/features/feature-toggle/tests/feature-toggle-store.e2e.test.ts 13✅ 4s
src/lib/features/feature-toggle/tests/feature-toggle-strategies-store.e2e.test.ts 4✅ 3s
src/lib/features/feature-toggle/tests/feature-toggles.auth.e2e.test.ts 3✅ 5s
src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts 93✅ 6❌ 22s
src/lib/features/feature-toggle/time-to-production/time-to-production.test.ts 1✅ 472ms
src/lib/features/instance-stats/getActiveUsers.e2e.test.ts 6✅ 3s
src/lib/features/instance-stats/getProductionChanges.e2e.test.ts 7✅ 4s
src/lib/features/instance-stats/instance-stats-service.test.ts 2✅ 1s
src/lib/features/playground/advanced-playground.test.ts 4✅ 1❌ 6s
src/lib/features/playground/generateObjectCombinations.test.ts 3✅ 278ms
src/lib/features/playground/offline-unleash-client.test.ts 10✅ 602ms
src/lib/features/playground/playground-view-model.test.ts 2✅ 171ms
src/lib/features/playground/playground.test.ts 7✅ 14s
src/lib/features/playground/validateQueryComplexity.test.ts 2✅ 246ms
src/lib/logger.test.ts 2✅ 354ms
src/lib/metrics.test.ts 9✅ 2s
src/lib/middleware/api-token-middleware.test.ts 8✅ 1s
src/lib/middleware/content_type_checker.test.ts 5✅ 217ms
src/lib/middleware/cors-origin-middleware.test.ts 5✅ 2s
src/lib/middleware/no-authentication.test.ts 1✅ 555ms
src/lib/middleware/oss-authentication.test.ts 2✅ 2s
src/lib/middleware/pat-middleware.test.ts 5✅ 373ms
src/lib/middleware/rbac-middleware.test.ts 13✅ 1s
src/lib/openapi/index.test.ts 6✅ 1s
src/lib/openapi/meta-schema-rules.test.ts 700✅ 2s
src/lib/openapi/spec/addon-schema.test.ts 1✅ 2s
src/lib/openapi/spec/addons-schema.test.ts 1✅ 2s
src/lib/openapi/spec/admin-features-query-schema.test.ts 3✅ 1s
src/lib/openapi/spec/admin-segment-schema.test.ts 1✅ 2s
src/lib/openapi/spec/admin-strategies-schema.test.ts 1✅ 2s
src/lib/openapi/spec/api-token-schema.test.ts 2✅ 2s
src/lib/openapi/spec/change-password-schema.test.ts 2✅ 2s
src/lib/openapi/spec/client-application-schema.test.ts 5✅ 2s
src/lib/openapi/spec/client-features-query-schema.test.ts 2✅ 2s
src/lib/openapi/spec/client-features-schema.test.ts 5✅ 2s
src/lib/openapi/spec/client-metrics-schema.test.ts 3✅ 1s
src/lib/openapi/spec/constraint-schema.test.ts 3✅ 2s
src/lib/openapi/spec/context-field-schema.test.ts 2✅ 2s
src/lib/openapi/spec/email-schema.test.ts 1✅ 2s
src/lib/openapi/spec/event-schema.test.ts 1✅ 1s
src/lib/openapi/spec/events-schema.test.ts 2✅ 2s
src/lib/openapi/spec/export-query-schema.test.ts 1✅ 1s
src/lib/openapi/spec/export-result-schema.test.ts 1✅ 1s
src/lib/openapi/spec/feature-environment-schema.test.ts 2✅ 16s
src/lib/openapi/spec/feature-events-schema.test.ts 2✅ 3s
src/lib/openapi/spec/feature-metrics-schema.test.ts 1✅ 3s
src/lib/openapi/spec/feature-schema.test.ts 4✅ 2s
src/lib/openapi/spec/feature-type-schema.test.ts 2✅ 1s
src/lib/openapi/spec/feature-usage-schema.test.ts 1✅ 4s
src/lib/openapi/spec/features-schema.test.ts 1✅ 2s
src/lib/openapi/spec/groups-schema.test.ts 1✅ 2s
src/lib/openapi/spec/instance-admin-stats-schema.test.ts 1✅ 2s
src/lib/openapi/spec/me-schema.test.ts 4✅ 1s
src/lib/openapi/spec/playground-feature-schema.test.ts 3✅ 4s
src/lib/openapi/spec/playground-request-schema.test.ts 4✅ 2s
src/lib/openapi/spec/playground-response-schema.test.ts 6✅ 14s
src/lib/openapi/spec/profile-schema.test.ts 1✅ 4s
src/lib/openapi/spec/project-overview-schema.test.ts 1✅ 2s
src/lib/openapi/spec/project-schema.test.ts 2✅ 1s
src/lib/openapi/spec/public-signup-schema.test.ts 1✅ 2s
src/lib/openapi/spec/role-schema.test.ts 1✅ 2s
src/lib/openapi/spec/sdk-context-schema.test.ts 3✅ 3s
src/lib/openapi/spec/segments-schema.test.ts 1✅ 4s
src/lib/openapi/spec/set-strategy-sort-order-schema.test.ts 5✅ 2s
src/lib/openapi/spec/sort-order-schema.test.ts 2✅ 1s
src/lib/openapi/spec/strategy-schema.test.ts 1✅ 2s
src/lib/openapi/spec/tag-types-schema.test.ts 1✅ 2s
src/lib/openapi/spec/tags-bulk-add-schema.test.ts 1✅ 2s
src/lib/openapi/spec/token-user-schema.test.ts 1✅ 5s
src/lib/openapi/spec/ui-config-schema.test.ts 1✅ 2s
src/lib/openapi/spec/update-feature-strategy-segments-schema.test.ts 1✅ 2s
src/lib/openapi/spec/update-tags-schema.test.ts 1✅ 2s
src/lib/openapi/spec/upsert-segment-schema.test.ts 1✅ 1s
src/lib/openapi/spec/user-schema.test.ts 1✅ 2s
src/lib/openapi/spec/users-groups-base-schema.test.ts 1✅ 1s
src/lib/openapi/spec/users-schema.test.ts 1✅ 2s
src/lib/openapi/spec/users-search-schema.test.ts 1✅ 1s
src/lib/openapi/spec/validate-password-schema.test.ts 2✅ 1s
src/lib/openapi/util/create-request-schema.test.ts 1✅ 286ms
src/lib/openapi/util/create-response-schema.test.ts 2✅ 376ms
src/lib/openapi/util/openapi-tags.test.ts 2✅ 148ms
src/lib/openapi/validate.test.ts 1✅ 9s
src/lib/proxy/create-context.test.ts 8✅ 1⚪ 212ms
src/lib/routes/admin-api/config.test.ts 1✅ 4s
src/lib/routes/admin-api/context.test.ts 12✅ 5s
src/lib/routes/admin-api/email.test.ts 3✅ 3s
src/lib/routes/admin-api/events.test.ts 5✅ 4s
src/lib/routes/admin-api/metrics.test.ts 9✅ 4s
src/lib/routes/admin-api/public-signup.test.ts 6✅ 4s
src/lib/routes/admin-api/strategy.test.ts 16✅ 6s
src/lib/routes/admin-api/tag.test.ts 7✅ 4s
src/lib/routes/admin-api/user/user.test.ts 6✅ 8s
src/lib/routes/auth/simple-password-provider.test.ts 3✅ 2s
src/lib/routes/backstage.test.ts 1✅ 14s
src/lib/routes/client-api/metrics.test.ts 12✅ 17s
src/lib/routes/client-api/register.test.ts 6✅ 4s
src/lib/routes/health-check.test.ts 2✅ 4s
src/lib/routes/logout.test.ts 11✅ 2s
src/lib/routes/public-invite.test.ts 7✅ 5s
src/lib/schema/api-token-schema.test.ts 6✅ 460ms
src/lib/schema/constraint-value-types.test.ts 9✅ 375ms
src/lib/schema/feature-schema.test.ts 18✅ 643ms
src/lib/schema/role-schema.test.ts 7✅ 368ms
src/lib/server-impl.test.ts 5✅ 3s
src/lib/services/access-service.test.ts 9✅ 3s
src/lib/services/addon-service.test.ts 22✅ 2s
src/lib/services/api-token-service.test.ts 3✅ 1s
src/lib/services/client-metrics/instance-service.test.ts 4✅ 1s
src/lib/services/client-metrics/last-seen/tests/last-seen-mapper.test.ts 1✅ 182ms
src/lib/services/client-metrics/last-seen/tests/last-seen-service.test.ts 2✅ 420ms
src/lib/services/client-metrics/metrics-service-v2.test.ts 3✅ 1s
src/lib/services/client-metrics/schema.test.ts 9✅ 356ms
src/lib/services/client-spec-service.test.ts 2✅ 264ms
src/lib/services/email-service.test.ts 4✅ 293ms
src/lib/services/feature-service-potentially-stale.test.ts 1✅ 1s
src/lib/services/maintenance-service.test.ts 2✅ 1s
src/lib/services/scheduler-service.test.ts 9✅ 879ms
src/lib/services/state-service.test.ts 30✅ 2s
src/lib/services/tag-schema.test.ts 1✅ 1s
src/lib/services/tag-type-schema.test.ts 3✅ 491ms
src/lib/services/user-service.test.ts 12✅ 5s
src/lib/services/version-service.test.ts 8✅ 2s
src/lib/types/serialize-dates.test.ts 3✅ 138ms
src/lib/types/user.test.ts 7✅ 205ms
src/lib/util/anonymise.test.ts 12✅ 191ms
src/lib/util/anyEventEmitter.test.ts 1✅ 211ms
src/lib/util/arraysHaveSameItems.test.ts 1✅ 180ms
src/lib/util/collapseHourlyMetrics.test.ts 2✅ 474ms
src/lib/util/constantTimeCompare.test.ts 1✅ 109ms
src/lib/util/db-lock.test.ts 3✅ 499ms
src/lib/util/ensureStringValue.test.ts 1✅ 424ms
src/lib/util/extract-user.test.ts 4✅ 241ms
src/lib/util/findDuplicates.test.ts 6✅ 217ms
src/lib/util/flag-resolver.test.ts 8✅ 1s
src/lib/util/format-base-uri.test.ts 6✅ 187ms
src/lib/util/is-email.test.ts 36✅ 291ms
src/lib/util/isDefined.test.ts 1✅ 316ms
src/lib/util/map-values.test.ts 1✅ 300ms
src/lib/util/omit-keys.test.ts 1✅ 183ms
src/lib/util/parseEnvVar.test.ts 3✅ 188ms
src/lib/util/rewriteHTML.test.ts 7✅ 266ms
src/lib/util/semver.test.ts 2✅ 411ms
src/lib/util/snakeCase.test.ts 2✅ 450ms
src/lib/util/time-utils.test.ts 1✅ 390ms
src/lib/util/timer.test.ts 2✅ 218ms
src/lib/util/unique.test.ts 1✅ 202ms
src/lib/util/validateJsonString.test.ts 4✅ 275ms
src/lib/util/validateOrigin.test.ts 1✅ 307ms
src/lib/util/validators/constraint-types.test.ts 8✅ 384ms
src/test/arbitraries.test.ts 2✅ 298ms
src/test/config/create-config.test.ts 9✅ 1s
src/test/e2e/api/admin/addon.e2e.test.ts 16✅ 5s
src/test/e2e/api/admin/api-token.auth.e2e.test.ts 18✅ 10s
src/test/e2e/api/admin/api-token.e2e.test.ts 24✅ 6s
src/test/e2e/api/admin/archive.test.ts 7✅ 6s
src/test/e2e/api/admin/client-metrics.e2e.test.ts 5✅ 6s
src/test/e2e/api/admin/conditional-middleware.e2e.test.ts 4✅ 449ms
src/test/e2e/api/admin/config.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/constraints.e2e.test.ts 2✅ 5s
src/test/e2e/api/admin/context.e2e.test.ts 18✅ 6s
src/test/e2e/api/admin/environment.test.ts 9✅ 5s
src/test/e2e/api/admin/event.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/favorites.e2e.test.ts 8✅ 6s
src/test/e2e/api/admin/feature-archive.e2e.test.ts 10✅ 1❌ 8s
src/test/e2e/api/admin/feature-type.test.ts 6✅ 4s
src/test/e2e/api/admin/feature.auth.e2e.test.ts 2✅ 5s
src/test/e2e/api/admin/feature.custom-auth.e2e.test.ts 2✅ 6s
src/test/e2e/api/admin/feedback.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/instance-admin.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/maintenance.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/metrics.e2e.test.ts 5✅ 6s
src/test/e2e/api/admin/playground.e2e.test.ts 12✅ 9s
src/test/e2e/api/admin/project/api-token.e2e.test.ts 1✅ 6s
src/test/e2e/api/admin/project/environments.e2e.test.ts 7✅ 5s
src/test/e2e/api/admin/project/project.api.tokens.e2e.test.ts 8✅ 5s
src/test/e2e/api/admin/project/project.health.e2e.test.ts 8✅ 7s
src/test/e2e/api/admin/project/projects.e2e.test.ts 5✅ 6s
src/test/e2e/api/admin/project/variants.e2e.test.ts 21✅ 7s
src/test/e2e/api/admin/public-signup-token.e2e.test.ts 6✅ 6s
src/test/e2e/api/admin/segment.e2e.test.ts 15✅ 8s
src/test/e2e/api/admin/splash.e2e.test.ts 2✅ 8s
src/test/e2e/api/admin/state.e2e.test.ts 22✅ 8s
src/test/e2e/api/admin/strategy.e2e.test.ts 15✅ 6s
src/test/e2e/api/admin/tag-types.e2e.test.ts 13✅ 6s
src/test/e2e/api/admin/tags.e2e.test.ts 8✅ 5s
src/test/e2e/api/admin/user-admin.e2e.test.ts 20✅ 13s
src/test/e2e/api/admin/user/pat.e2e.test.ts 15✅ 6s
src/test/e2e/api/admin/user/user.test.ts 1✅ 5s
src/test/e2e/api/auth/leading-slashes-are-stripped.e2e.test.ts 4✅ 5s
src/test/e2e/api/auth/reset-password-controller.e2e.test.ts 9✅ 10s
src/test/e2e/api/auth/simple-password-provider.e2e.test.ts 2✅ 10s
src/test/e2e/api/client/feature.e2e.test.ts 11❌ 5s
src/test/e2e/api/client/feature.env.disabled.e2e.test.ts 2✅ 5s
src/test/e2e/api/client/feature.optimal304.e2e.test.ts 3✅ 5s
src/test/e2e/api/client/feature.token.access.e2e.test.ts 4✅ 7s
src/test/e2e/api/client/metrics.e2e.access.e2e.test.ts 1✅ 9s
src/test/e2e/api/client/metrics.e2e.test.ts 3✅ 5s
src/test/e2e/api/client/metricsV2.e2e.test.ts 5✅ 4s
src/test/e2e/api/client/register.e2e.test.ts 2✅ 1⚪ 6s
src/test/e2e/api/client/segment.e2e.test.ts 15✅ 8s
src/test/e2e/api/openapi/openapi.e2e.test.ts 7✅ 13s
src/test/e2e/api/proxy/proxy.concurrency.e2e.test.ts 1✅ 5s
src/test/e2e/api/proxy/proxy.e2e.test.ts 29✅ 10s
src/test/e2e/custom-auth.test.ts 2✅ 4s
src/test/e2e/health.e2e.test.ts 1✅ 9s
src/test/e2e/migrator.e2e.test.ts 1✅ 4s
src/test/e2e/routes/routes.test.ts 4✅ 6s
src/test/e2e/services/access-service.e2e.test.ts 63✅ 11s
src/test/e2e/services/addon-service.e2e.test.ts 1✅ 4s
src/test/e2e/services/api-token-service.e2e.test.ts 10✅ 5s
src/test/e2e/services/client-metrics-service.e2e.test.ts 1✅ 7s
src/test/e2e/services/environment-service.test.ts 11✅ 3s
src/test/e2e/services/group-service.e2e.test.ts 9✅ 4s
src/test/e2e/services/last-seen-service.e2e.test.ts 3✅ 3s
src/test/e2e/services/playground-service.test.ts 30✅ 56s
src/test/e2e/services/project-health-service.e2e.test.ts 3✅ 5s
src/test/e2e/services/project-service.e2e.test.ts 51✅ 12s
src/test/e2e/services/reset-token-service.e2e.test.ts 6✅ 6s
src/test/e2e/services/session-service.e2e.test.ts 4✅ 4s
src/test/e2e/services/setting-service.test.ts 3✅ 4s
src/test/e2e/services/state-service.e2e.test.ts 5✅ 5s
src/test/e2e/services/user-service.e2e.test.ts 17✅ 8s
src/test/e2e/stores/client-application-store.e2e.test.ts 6✅ 10s
src/test/e2e/stores/client-metrics-store-v2.e2e.test.ts 14✅ 15s
src/test/e2e/stores/context-field-store.e2e.test.ts 2✅ 5s
src/test/e2e/stores/event-store.e2e.test.ts 8✅ 3s
src/test/e2e/stores/feature-environment-store.e2e.test.ts 2✅ 4s
src/test/e2e/stores/feature-tag-store.e2e.test.ts 8✅ 3s
src/test/e2e/stores/feature-toggle-client-store.e2e.test.ts 1✅ 7s
src/test/e2e/stores/feature-type-store.e2e.test.ts 7✅ 4s
src/test/e2e/stores/project-store.e2e.test.ts 7✅ 3s
src/test/e2e/stores/setting-store.e2e.test.ts 7✅ 3s
src/test/e2e/stores/user-feedback-store.e2e.test.ts 5✅ 3s
src/test/e2e/stores/user-splash-store.e2e.test.ts 5✅ 3s
src/test/e2e/stores/user-store.e2e.test.ts 15✅ 3s

❌ src/lib/features/dependent-features/dependent.features.e2e.test.ts

-should add and delete feature dependencies
  ❌ -should add and delete feature dependencies
	Error: expected 200 "OK", got 403 "Forbidden"
-should not allow to add a parent dependency to a feature that already has children
  ❌ -should not allow to add a parent dependency to a feature that already has children
	Error: expected 200 "OK", got 403 "Forbidden"
-should not allow to add non-existent parent dependency
  ✅ -should not allow to add non-existent parent dependency
-should not allow to add archived parent dependency
  ✅ -should not allow to add archived parent dependency
-should check if any dependencies exist
  ❌ -should check if any dependencies exist
	Error: expected 200 "OK", got 403 "Forbidden"
-should not allow to add dependency to self
  ✅ -should not allow to add dependency to self
-should not allow to add dependency to feature from another project
  ✅ -should not allow to add dependency to feature from another project

❌ src/lib/features/export-import-toggles/export-import.e2e.test.ts

import-export for project-specific segments-exports features with project-specific-segments
  ✅ import-export for project-specific segments-exports features with project-specific-segments
-exports features
  ❌ -exports features
	Error: expected 200 "OK", got 403 "Forbidden"
-exports features by tag
  ✅ -exports features by tag
-should export custom context fields from strategies and variants
  ✅ -should export custom context fields from strategies and variants
-should export tags
  ✅ -should export tags
-returns no features, when no feature was requested
  ✅ -returns no features, when no feature was requested
-import features to existing project and environment
  ❌ -import features to existing project and environment
	Error: expected 200 "OK", got 403 "Forbidden"
-import multiple features with same tag
  ✅ -import multiple features with same tag
-import too many feature exceeding limit
  ✅ -import too many feature exceeding limit
-can update toggles on subsequent import
  ✅ -can update toggles on subsequent import
-reject import with unknown context fields
  ✅ -reject import with unknown context fields
-reject import with unsupported strategies
  ✅ -reject import with unsupported strategies
-reject import with duplicate features
  ✅ -reject import with duplicate features
-validate import data
  ✅ -validate import data
-should create new context
  ✅ -should create new context
-should not import archived features tags
  ✅ -should not import archived features tags
-should give errors with flag names if the flags don't match the project pattern
  ✅ -should give errors with flag names if the flags don't match the project pattern

❌ src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts

-Trying to add a strategy configuration to environment not connected to toggle should fail
  ✅ -Trying to add a strategy configuration to environment not connected to toggle should fail
-Can get project overview
  ✅ -Can get project overview
-should list dependencies and children
  ❌ -should list dependencies and children
	Error: expected 200 "OK", got 403 "Forbidden"
-should not allow to change project with dependencies
  ❌ -should not allow to change project with dependencies
	Error: expected 200 "OK", got 403 "Forbidden"
-Should not allow to archive/delete feature with children
  ❌ -Should not allow to archive/delete feature with children
	Error: expected 200 "OK", got 403 "Forbidden"
-Should allow to archive/delete feature with children if no orphans are left
  ❌ -Should allow to archive/delete feature with children if no orphans are left
	Error: expected 200 "OK", got 403 "Forbidden"
-Should not allow to archive/delete feature when orphans are left
  ❌ -Should not allow to archive/delete feature when orphans are left
	Error: expected 200 "OK", got 403 "Forbidden"
-should clone feature with parent dependencies
  ❌ -should clone feature with parent dependencies
	Error: expected 200 "OK", got 403 "Forbidden"
-Can get features for project
  ✅ -Can get features for project
-Project overview includes environment connected to feature
  ✅ -Project overview includes environment connected to feature
-Disconnecting environment from project, removes environment from features in project overview
  ✅ -Disconnecting environment from project, removes environment from features in project overview
-Can enable/disable environment for feature with strategies
  ✅ -Can enable/disable environment for feature with strategies
-Can bulk enable/disable environment for feature with strategies
  ✅ -Can bulk enable/disable environment for feature with strategies
-Trying to get a project that doesn't exist yields 404
  ✅ -Trying to get a project that doesn't exist yields 404
-Trying to get features for non-existing project also yields 404
  ✅ -Trying to get features for non-existing project also yields 404
-Can use new project feature toggle endpoint to create feature toggle without strategies
  ✅ -Can use new project feature toggle endpoint to create feature toggle without strategies
-Can create feature toggle without strategies
  ✅ -Can create feature toggle without strategies
-Still validates feature toggle input when creating
  ✅ -Still validates feature toggle input when creating
-Trying to create toggle that already exists yield 409 error
  ✅ -Trying to create toggle that already exists yield 409 error
-Trying to create toggle under project that does not exist should fail
  ✅ -Trying to create toggle under project that does not exist should fail
-Can get environment info for feature toggle
  ✅ -Can get environment info for feature toggle
-Getting environment info for environment that does not exist yields 404
  ✅ -Getting environment info for environment that does not exist yields 404
-Trying to toggle environment that does not exist yields 404
  ✅ -Trying to toggle environment that does not exist yields 404
-Getting feature that does not exist should yield 404
  ✅ -Getting feature that does not exist should yield 404
Interacting with features using project IDs that belong to other projects-Getting a feature yields 404 if the provided project id doesn't match the feature's project
  ✅ Interacting with features using project IDs that belong to other projects-Getting a feature yields 404 if the provided project id doesn't match the feature's project
Interacting with features using project IDs that belong to other projects-Getting a feature yields 404 if the provided project doesn't exist
  ✅ Interacting with features using project IDs that belong to other projects-Getting a feature yields 404 if the provided project doesn't exist
Interacting with features using project IDs that belong to other projects-Archiving a feature yields 404 if the provided project id doesn't match the feature's project
  ✅ Interacting with features using project IDs that belong to other projects-Archiving a feature yields 404 if the provided project id doesn't match the feature's project
Interacting with features using project IDs that belong to other projects-Archiving a feature yields 404 if the provided project doesn't exist
  ✅ Interacting with features using project IDs that belong to other projects-Archiving a feature yields 404 if the provided project doesn't exist
Interacting with features using project IDs that belong to other projects-Trying to archive a feature that doesn't exist should yield a 404, regardless of whether the project exists or not.
  ✅ Interacting with features using project IDs that belong to other projects-Trying to archive a feature that doesn't exist should yield a 404, regardless of whether the project exists or not.
-Should update feature toggle
  ✅ -Should update feature toggle
-Should not change name of feature toggle
  ✅ -Should not change name of feature toggle
-Should not change project of feature toggle even if it is part of body
  ✅ -Should not change project of feature toggle even if it is part of body
-Should patch feature toggle
  ✅ -Should patch feature toggle
-Should patch feature toggle and not remove variants
  ✅ -Should patch feature toggle and not remove variants
-Patching feature toggles to stale should trigger FEATURE_STALE_ON event
  ✅ -Patching feature toggles to stale should trigger FEATURE_STALE_ON event
-Trying to patch variants on a feature toggle should trigger an OperationDeniedError
  ✅ -Trying to patch variants on a feature toggle should trigger an OperationDeniedError
-Patching feature toggles to active (turning stale to false) should trigger FEATURE_STALE_OFF event
  ✅ -Patching feature toggles to active (turning stale to false) should trigger FEATURE_STALE_OFF event
-Should archive feature toggle
  ✅ -Should archive feature toggle
-Can add strategy to feature toggle to a "some-env-2"
  ✅ -Can add strategy to feature toggle to a "some-env-2"
-Can update strategy on feature toggle
  ✅ -Can update strategy on feature toggle
-should coerce all strategy parameter values to strings
  ✅ -should coerce all strategy parameter values to strings
-should NOT limit the length of parameter values
  ✅ -should NOT limit the length of parameter values
-Can NOT delete strategy with wrong projectId
  ✅ -Can NOT delete strategy with wrong projectId
-add strategy cannot use wrong projectId
  ✅ -add strategy cannot use wrong projectId
-update strategy on feature toggle cannot use wrong projectId
  ✅ -update strategy on feature toggle cannot use wrong projectId
-Environments are returned in sortOrder
  ✅ -Environments are returned in sortOrder
-Can get strategies for feature and environment
  ✅ -Can get strategies for feature and environment
-Getting strategies for environment that does not exist yields 404
  ✅ -Getting strategies for environment that does not exist yields 404
-Can update a strategy based on id
  ✅ -Can update a strategy based on id
-Trying to update a non existing feature strategy should yield 404
  ✅ -Trying to update a non existing feature strategy should yield 404
-Can patch a strategy based on id
  ✅ -Can patch a strategy based on id
-Trying to get a non existing feature strategy should yield 404
  ✅ -Trying to get a non existing feature strategy should yield 404
-Can enable environment for feature without strategies
  ✅ -Can enable environment for feature without strategies
-Deleting a strategy should include name of feature strategy was deleted from
  ✅ -Deleting a strategy should include name of feature strategy was deleted from
-Enabling environment creates a FEATURE_ENVIRONMENT_ENABLED event
  ✅ -Enabling environment creates a FEATURE_ENVIRONMENT_ENABLED event
-Disabling environment creates a FEATURE_ENVIRONMENT_DISABLED event
  ✅ -Disabling environment creates a FEATURE_ENVIRONMENT_DISABLED event
-Can delete strategy from feature toggle
  ✅ -Can delete strategy from feature toggle
-List of strategies should respect sortOrder
  ✅ -List of strategies should respect sortOrder
-Feature strategies list should respect strategy sortorders for each environment
  ✅ -Feature strategies list should respect strategy sortorders for each environment
-Deleting last strategy for feature environment should disable that environment
  ✅ -Deleting last strategy for feature environment should disable that environment
-Deleting strategy for feature environment should not disable that environment as long as there are other strategies
  ✅ -Deleting strategy for feature environment should not disable that environment as long as there are other strategies
-should clone feature toggle without strategies
  ✅ -should clone feature toggle without strategies
-should clone feature toggle WITH strategies
  ✅ -should clone feature toggle WITH strategies
-should clone feature toggle WITH variants
  ✅ -should clone feature toggle WITH variants
-should clone feature toggle without replacing groupId
  ✅ -should clone feature toggle without replacing groupId
-Should not allow changing project to target project without the same enabled environments
  ✅ -Should not allow changing project to target project without the same enabled environments
-Should allow changing project to target project with the same enabled environments
  ✅ -Should allow changing project to target project with the same enabled environments
-a feature's variants should be sorted by name in increasing order
  ✅ -a feature's variants should be sorted by name in increasing order
-should validate context when calling update with PUT
  ✅ -should validate context when calling update with PUT
-should validate context when calling update with PATCH
  ✅ -should validate context when calling update with PATCH
-should not update project with PUT
  ✅ -should not update project with PUT
-should not update project with PATCH
  ✅ -should not update project with PATCH
-Can create a feature with impression data
  ✅ -Can create a feature with impression data
-Can create a feature without impression data
  ✅ -Can create a feature without impression data
-Can update impression data with PUT
  ✅ -Can update impression data with PUT
-Can create toggle with impression data on different project
  ✅ -Can create toggle with impression data on different project
-should handle strategy variants
  ✅ -should handle strategy variants
-should reject invalid constraint values for multi-valued constraints
  ✅ -should reject invalid constraint values for multi-valued constraints
-should add default constraint values for single-valued constraints
  ✅ -should add default constraint values for single-valued constraints
-should allow long parameter values
  ✅ -should allow long parameter values
-should change strategy sort order when payload is valid
  ✅ -should change strategy sort order when payload is valid
-should reject set sort order request when payload is invalid
  ✅ -should reject set sort order request when payload is invalid
-should return strategies in correct order when new strategies are added
  ✅ -should return strategies in correct order when new strategies are added
-should create a strategy with segments
  ✅ -should create a strategy with segments
-should add multiple segments to a strategy
  ✅ -should add multiple segments to a strategy
-Can filter based on tags
  ✅ -Can filter based on tags
-Can query for features with namePrefix
  ✅ -Can query for features with namePrefix
-Can query for features with namePrefix and tags
  ✅ -Can query for features with namePrefix and tags
-Can query for two tags at the same time. Tags are ORed together
  ✅ -Can query for two tags at the same time. Tags are ORed together
-Should batch stale features
  ✅ -Should batch stale features
-should return disabled strategies
  ✅ -should return disabled strategies
-should disable strategies in place
  ✅ -should disable strategies in place
-Disabling last strategy for feature environment should disable that environment
  ✅ -Disabling last strategy for feature environment should disable that environment
-Enabling a feature environment should add the default strategy when only disabled strategies
  ✅ -Enabling a feature environment should add the default strategy when only disabled strategies
-Updating feature strategy sort-order should return strategies in correct order
  ✅ -Updating feature strategy sort-order should return strategies in correct order
-Updating feature strategy sort-order should trigger a an event
  ✅ -Updating feature strategy sort-order should trigger a an event
-should not be allowed to create with invalid strategy type name
  ✅ -should not be allowed to create with invalid strategy type name
-should not be allowed to update with invalid strategy type name
  ✅ -should not be allowed to update with invalid strategy type name
-should return correct data structure for /api/admin/features
  ✅ -should return correct data structure for /api/admin/features

❌ src/lib/features/playground/advanced-playground.test.ts

-advanced playground evaluation with no toggles
  ✅ -advanced playground evaluation with no toggles
-advanced playground evaluation with parent dependency
  ❌ -advanced playground evaluation with parent dependency
	Error: expected 200 "OK", got 403 "Forbidden"
-advanced playground evaluation happy path
  ✅ -advanced playground evaluation happy path
-show matching variant from variants selection only for enabled toggles
  ✅ -show matching variant from variants selection only for enabled toggles
-should return disabled strategies with unevaluated result
  ✅ -should return disabled strategies with unevaluated result

❌ src/test/e2e/api/admin/feature-archive.e2e.test.ts

-returns three archived toggles
  ✅ -returns three archived toggles
-returns three archived toggles with archivedAt
  ✅ -returns three archived toggles with archivedAt
-revives a feature by name
  ✅ -revives a feature by name
-archived feature is not accessible via /features/:featureName
  ✅ -archived feature is not accessible via /features/:featureName
-must set name when reviving toggle
  ✅ -must set name when reviving toggle
-should be allowed to reuse deleted toggle name
  ✅ -should be allowed to reuse deleted toggle name
-Deleting an unarchived toggle should not take effect
  ✅ -Deleting an unarchived toggle should not take effect
-can bulk delete features and recreate after
  ✅ -can bulk delete features and recreate after
-can bulk revive features
  ✅ -can bulk revive features
-Should be able to bulk archive features
  ✅ -Should be able to bulk archive features
-Should validate if a list of features with dependencies can be archived
  ❌ -Should validate if a list of features with dependencies can be archived
	Error: expected 200 "OK", got 403 "Forbidden"

❌ src/test/e2e/api/client/feature.e2e.test.ts

-returns four feature toggles
  ❌ -returns four feature toggles
	InvalidOperationError: Parent and child features should be in the same project
-returns dependencies
  ❌ -returns dependencies
	InvalidOperationError: Parent and child features should be in the same project
-returns four feature toggles without createdAt
  ❌ -returns four feature toggles without createdAt
	InvalidOperationError: Parent and child features should be in the same project
-gets a feature by name
  ❌ -gets a feature by name
	InvalidOperationError: Parent and child features should be in the same project
-returns a feature toggles impression data
  ❌ -returns a feature toggles impression data
	InvalidOperationError: Parent and child features should be in the same project
-returns a false for impression data when not specified
  ❌ -returns a false for impression data when not specified
	InvalidOperationError: Parent and child features should be in the same project
-cant get feature that does not exist
  ❌ -cant get feature that does not exist
	InvalidOperationError: Parent and child features should be in the same project
-Can filter features by namePrefix
  ❌ -Can filter features by namePrefix
	InvalidOperationError: Parent and child features should be in the same project
-Can get strategies for specific environment
  ❌ -Can get strategies for specific environment
	InvalidOperationError: Parent and child features should be in the same project
-Can use multiple filters
  ❌ -Can use multiple filters
	InvalidOperationError: Parent and child features should be in the same project
-returns a feature toggles impression data for a different project
  ❌ -returns a feature toggles impression data for a different project
	InvalidOperationError: Parent and child features should be in the same project

Annotations

Check failure on line 72 in src/lib/features/dependent-features/dependent.features.e2e.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/dependent-features/dependent.features.e2e.test.ts ► -should add and delete feature dependencies ► -should add and delete feature dependencies

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at expect (/home/runner/work/unleash/unleash/src/lib/features/dependent-features/dependent.features.e2e.test.ts:72:10)
    at Object.addFeatureDependency (/home/runner/work/unleash/unleash/src/lib/features/dependent-features/dependent.features.e2e.test.ts:120:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 72 in src/lib/features/dependent-features/dependent.features.e2e.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/dependent-features/dependent.features.e2e.test.ts ► -should not allow to add a parent dependency to a feature that already has children ► -should not allow to add a parent dependency to a feature that already has children

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at expect (/home/runner/work/unleash/unleash/src/lib/features/dependent-features/dependent.features.e2e.test.ts:72:10)
    at Object.addFeatureDependency (/home/runner/work/unleash/unleash/src/lib/features/dependent-features/dependent.features.e2e.test.ts:149:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 72 in src/lib/features/dependent-features/dependent.features.e2e.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/dependent-features/dependent.features.e2e.test.ts ► -should check if any dependencies exist ► -should check if any dependencies exist

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at expect (/home/runner/work/unleash/unleash/src/lib/features/dependent-features/dependent.features.e2e.test.ts:72:10)
    at Object.addFeatureDependency (/home/runner/work/unleash/unleash/src/lib/features/dependent-features/dependent.features.e2e.test.ts:201:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/export-import-toggles/export-import.e2e.test.ts ► -exports features ► -exports features

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/export-import-toggles/export-import.e2e.test.ts:298:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 186 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/export-import-toggles/export-import.e2e.test.ts ► -import features to existing project and environment ► -import features to existing project and environment

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as importToggles] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:186:18)
    at Object.importToggles (/home/runner/work/unleash/unleash/src/lib/features/export-import-toggles/export-import.e2e.test.ts:749:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts ► -should list dependencies and children ► -should list dependencies and children

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts:224:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts ► -should not allow to change project with dependencies ► -should not allow to change project with dependencies

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts:250:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts ► -Should not allow to archive/delete feature with children ► -Should not allow to archive/delete feature with children

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts:280:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts ► -Should allow to archive/delete feature with children if no orphans are left ► -Should allow to archive/delete feature with children if no orphans are left

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts:303:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts ► -Should not allow to archive/delete feature when orphans are left ► -Should not allow to archive/delete feature when orphans are left

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts:319:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Check failure on line 201 in src/test/e2e/helpers/test-helper.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts ► -should clone feature with parent dependencies ► -should clone feature with parent dependencies

Failed test found in:
  jest-junit.xml
Error:
  Error: expected 200 "OK", got 403 "Forbidden"
Raw output
Error: expected 200 "OK", got 403 "Forbidden"
    at Object.expect [as addDependency] (/home/runner/work/unleash/unleash/src/test/e2e/helpers/test-helper.ts:201:18)
    at Object.addDependency (/home/runner/work/unleash/unleash/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts:339:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
    at Test._assertStatus (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:252:14)
    at /home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:285:13)
    at Test.assert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:164:23)
    at Server.localAssert (/home/runner/work/unleash/unleash/node_modules/supertest/lib/test.js:120:14)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)