Skip to content

pages build and deployment #111

pages build and deployment

pages build and deployment #111

GitHub Actions / Tests report failed Jan 11, 2025 in 1s

42 passed, 1 failed and 0 skipped

Tests failed

❌ reports/jest-junit.xml

43 tests were completed in 62s with 42 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/adapters/createRequestHeaders.test.ts 3βœ… 139ms
src/client.test.ts 1βœ… 182ms
src/clientConfiguration.test.ts 2βœ… 112ms
src/features/buildInformation/buildInformationRepository.test.ts 4βœ… 5s
src/features/capabilities/capability.test.ts 4βœ… 711ms
src/features/packages/pack/nugetPackageBuilder.test.ts 5βœ… 278ms
src/features/packages/pack/zipPackageBuilder.test.ts 6βœ… 6s
src/features/packages/packageRepository.test.ts 6βœ… 16s
src/features/projects/releases/deployments/deploymentRepository.test.ts 2βœ… 1❌ 35s
src/features/projects/releases/releaseRepository.test.ts 4βœ… 18s
src/features/serverTasks/serverTaskWaiter.test.ts 5βœ… 61s

βœ…Β src/adapters/createRequestHeaders.test.ts

createRequestHeaders
  βœ… when api key is provided it is put into the correct request header
  βœ… when an access token is provided it is put into the correct request header
  βœ… when neither an access token or api key is provided then the correct api key header is filled in for backward compatibility

βœ…Β src/client.test.ts

client
  βœ… throws with invalid configuration

βœ…Β src/clientConfiguration.test.ts

configuration
  βœ… undefined
  βœ… blank

βœ…Β src/features/buildInformation/buildInformationRepository.test.ts

configuration
  βœ… undefined
  βœ… blank
push build information
  βœ… to single package
  βœ… to a package failed

βœ…Β src/features/capabilities/capability.test.ts

configuration
  βœ… undefined
  βœ… blank
Check capabilities
  βœ… Returns no error for something we know exists
  βœ… Returns false for something we know does not exist

βœ…Β src/features/packages/pack/nugetPackageBuilder.test.ts

Can create a NuGet packages
  βœ… Can create with a single specific file
  βœ… Can create with wildcarded files
  βœ… Can create with wildcarded files and a nuspec
  βœ… Can create with a package in a relative folder
  βœ… Can create with unexpected characters

βœ…Β src/features/packages/pack/zipPackageBuilder.test.ts

Can create a Zip packages
  βœ… Can create with a single specific file
  βœ… Can create with wildcarded files
  βœ… Can create with multiples and wildcarded directories
  βœ… Can create with '.' as the basePath
  βœ… Can create zip file with dot-files included
  βœ… Re-creating a zip with overwrite set to false does not replace the existing archive

βœ…Β src/features/packages/packageRepository.test.ts

configuration
  βœ… undefined
  βœ… blank
push package
  βœ… single package
  βœ… multiple packages
  βœ… failed package
  βœ… very large package

❌ src/features/projects/releases/deployments/deploymentRepository.test.ts

configuration
  βœ… undefined
  βœ… blank
deploy a release
  ❌ deploy to single environment
	Error: There was a problem with your request.

βœ…Β src/features/projects/releases/releaseRepository.test.ts

configuration
  βœ… undefined
  βœ… blank
create a release
  βœ… can create a release
create a release β€Ί create with packages
  βœ… using packages

βœ…Β src/features/serverTasks/serverTaskWaiter.test.ts

configuration
  βœ… undefined
  βœ… blank
wait for server task β€Ί non-existent task
  βœ… wait exits correctly
wait for server task β€Ί existing task
  βœ… deploy with default timeout exits correctly
  βœ… deploy with short timeout exits correctly

Annotations

Check failure on line 25 in src/octopusError.ts

See this annotation in the file changed.

@github-actions github-actions / Tests report

src/features/projects/releases/deployments/deploymentRepository.test.ts β–Ί deploy a release β–Ί deploy to single environment

Failed test found in:
  reports/jest-junit.xml
Error:
  Error: There was a problem with your request.
Raw output
Error: There was a problem with your request.
Cannot delete a space which contains running tasks. Wait for the tasks to complete or cancel them.
    at new OctopusError (/home/runner/work/api-client.ts/api-client.ts/src/octopusError.ts:25:9)
    at generateOctopusError (/home/runner/work/api-client.ts/api-client.ts/src/apiClient.ts:79:16)
    at ApiClient.handleError (/home/runner/work/api-client.ts/api-client.ts/src/apiClient.ts:60:21)
    at ApiClient.<anonymous> (/home/runner/work/api-client.ts/api-client.ts/src/apiClient.ts:24:22)
    at step (/home/runner/work/api-client.ts/api-client.ts/src/apiClient.ts:33:23)
    at Object.throw (/home/runner/work/api-client.ts/api-client.ts/src/apiClient.ts:14:53)
    at rejected (/home/runner/work/api-client.ts/api-client.ts/src/apiClient.ts:6:65)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)