Commit Graph

35190 Commits

Author SHA1 Message Date
Jamie Klassen 99ca12978d spy on https calls to check caData
This is a little awkward, but at the moment msw doesn't give much of a means of
interacting with the non-WHATWG-Fetch-spec aspects of a request.

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen df716f5ed5 metrics tests use msw instead of mocks
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen 7e2cd3c357 backfill test for warning log
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen 030f9cb5c1 backfill test for non-kubernetes error
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen 15ad4b2389 stub k8s API checks bearer tokens
Also, use idiomatic ResponseTransformers to clean up the individual tests.
Finally, modify the "unauthorized error handling" spec to provide an invalid
token to an otherwise-realistic stub k8s API.

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen d31fe28625 backfill test for loading default kubeconfig
Strictly speaking, the `loadFromDefault` method on `KubeConfig` as it is
being called in `KubernetesClientProvider` has many other behaviours that this
test does not exercise -- it has logic for reading kubeconfig files (based on
an env var or default location in a home directory), provisions for running on
Windows, and even contacting an apiserver on localhost.

I'm making a breaking assumption here that these other scenarios are not
important for Backstage users, and the one that really matters is the
in-cluster one described in this test.

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen f7ccaef866 convert fetchObjectsForService mocks to msw
this will allow some dramatic refactoring

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Fredrik Adelöw afbcb1b575 Merge pull request #15248 from backstage/freben/circ
🧹 Removed circular import in the errors package
2022-12-14 22:58:38 +01:00
Patrik Oldsberg 5a18e01bfa backend-test-utils: check afterEach -> afterAll
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 22:52:38 +01:00
Magnus Persson 6b59903bfa Add changeset
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson 836b30e61c Update api-report.md
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson 19f8ad4262 Keep types but marked deprecated
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson b3a304e78e Reference @backstage/plugin-sonarqube-react from @backstage/plugin-sonarqube
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
Magnus Persson 2b555e3b83 Add @backstage/plugin-sonarqube-react
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-12-14 22:27:27 +01:00
renovate[bot] ce724cf5ae Update dependency css-loader to v6.7.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-14 20:59:16 +00:00
Fredrik Adelöw ac6cc9f7bd Removed circular import in the errors package
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-12-14 21:56:04 +01:00
Fredrik Adelöw 12ba9c2efe Merge pull request #15246 from backstage/renovate/swc-core-1.x-lockfile
Update dependency @swc/core to v1.3.23
2022-12-14 21:49:19 +01:00
Kyle Leonhard e0e49bb0b2 Add tests
Signed-off-by: Kyle Leonhard <kyle.leonhard@snowflake.com>
2022-12-14 09:55:45 -08:00
Kyle Leonhard bd74fe12c0 Update .changeset/healthy-shrimps-notice.md
Co-authored-by: Johan Haals <johan@haals.se>
Signed-off-by: Kyle Leonhard <kyle.leonhard@snowflake.com>
2022-12-14 09:40:09 -08:00
Gabrielle Langer 226099ad03 fix(plugin-lighthouse): incorporate feedback and add unit tests
Signed-off-by: Gabrielle Langer <gabrielle.langer.ext@corp.ovh.com>
2022-12-14 18:10:04 +01:00
renovate[bot] a9d0438c11 Update dependency @swc/core to v1.3.23
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-14 17:02:18 +00:00
Patrik Oldsberg 341927c47e backend-test-utils: stop all running test instances concurrently
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 18:00:51 +01:00
Patrik Oldsberg 2dbe5f00c5 changesets: update changeset to reflect startTestBackend updates
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 18:00:32 +01:00
Patrik Oldsberg 2ee44029f9 backend-plugin-api: update API report
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 17:56:32 +01:00
Patrik Oldsberg 1d068ea8a4 backend-plugin-api: update loggerToWinstonLogger to support log levels
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 17:56:32 +01:00
Patrik Oldsberg cb1c2781c0 backend-plugin-api: update logger interface with more methods and meta
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 17:56:32 +01:00
Patrik Oldsberg a219b735dc Merge pull request #15237 from backstage/mob/config-obj
backend-plugin-api: suffix all service interfaces with *Service
2022-12-14 17:55:31 +01:00
backstage-goalie[bot] 98eabfe9b3 Merge pull request #15244 from backstage/renovate/roadiehq-backstage-plugin-github-insights-2.x-lockfile
Update dependency @roadiehq/backstage-plugin-github-insights to v2.2.2
2022-12-14 16:50:08 +00:00
Carlos Esteban Lopez 3c70fb6dc5 test: Fix test import error
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2022-12-14 11:34:13 -05:00
Patrik Oldsberg 9658f4d6c7 Merge pull request #15235 from backstage/mob/start-root
backend-app-api: always initialize root services
2022-12-14 17:32:55 +01:00
Patrik Oldsberg 1fe43f4017 backend-app-api: update API report
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 17:31:39 +01:00
renovate[bot] 824046de09 Update dependency @roadiehq/backstage-plugin-github-insights to v2.2.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-14 16:13:24 +00:00
Fredrik Adelöw 61b3091efe Merge pull request #15215 from blakestoddard/fix-sidebar-icon-alignment
Fix sidebar icon alignment
2022-12-14 16:40:41 +01:00
Fredrik Adelöw 8bb1931b24 Merge pull request #15178 from gtestault/feature/jenkins_standalone_project
Feature/jenkins standalone project
2022-12-14 16:32:35 +01:00
Gabrielle Langer e3dfef3f63 fix(plugin-lighthouse): fix form factor field in the audit creation form not working with the latest version of lighthouse-audit-service
Signed-off-by: Gabrielle Langer <gabrielle.langer.ext@corp.ovh.com>
2022-12-14 15:51:31 +01:00
djamaile fe1d2269cd chore: use require resolve
Signed-off-by: djamaile <rdjamaile@gmail.com>
2022-12-14 15:06:07 +01:00
Patrik Oldsberg 05a928e296 fix breakages from Service interface renames
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 15:03:02 +01:00
Patrik Oldsberg a025190552 backend-plugin-api: suffix all service interfaces with *Service
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 15:03:02 +01:00
backstage-goalie[bot] 085c07ef52 Merge pull request #15236 from backstage/renovate/esbuild-0.x-lockfile
Update dependency esbuild to v0.16.6
2022-12-14 13:54:44 +00:00
Patrik Oldsberg 5260d8fc7d backend-app-api: always initialize root services
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 14:42:26 +01:00
renovate[bot] cdc5ac6320 Update dependency esbuild to v0.16.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-12-14 13:23:45 +00:00
Patrik Oldsberg 73a8f69d62 backend-test-utils: only clean up test backends after all tests
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 13:52:36 +01:00
Gabriel Testault 6c70d769e4 feature(jenkins-backend): be more precise in jenkins terminology
Only explicitly support Multibranch Pipeline and Pipeline projects

Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
2022-12-14 12:02:27 +01:00
Gabriel Testault d657e19424 feature(jenkins-backend): downgrade change to patch level
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
2022-12-14 11:30:40 +01:00
Gabriel Testault 98ba60b8b5 feature(jenkins-backend): improve test for standalone project
test that the client is called twice for unfiltered standalone projects.

Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
2022-12-14 11:29:44 +01:00
Patrik Oldsberg deaa069b76 backend-app-api: do not allow backends to be restarted
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 11:27:19 +01:00
Patrik Oldsberg bb41a58c6a fix coreServices conflicts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 10:46:20 +01:00
Patrik Oldsberg e507d9dbb7 backend-test-utils: switch autoStop option to use afterEach | never
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 10:46:20 +01:00
Patrik Oldsberg 1f2edda7c3 backend-app-api: text
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 10:46:20 +01:00
Patrik Oldsberg afa3bf5657 changesets: added changeset for backend-test-utils auto stop
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-14 10:46:20 +01:00