Questions tagged [integration-testing]
A form of software testing where individual software modules (or components) are combined and tested as a group. Integration testing happens after unit testing, and before system testing.
integration-testing
7,044
questions
0
votes
0
answers
22
views
Missing events when testing using envtest instead of external cluster
I'm using envtest to write & perform integration tests for a custom K8s controller built using controller-runtime.
The K8s controller essentially is watching endpointslices and a CRD. So when a ...
1
vote
0
answers
87
views
Testcontainers: Azure pipeline test stage reach timeout of 1hour
I'm using .NET 8 within xUNit and TestContainers for my integration testing.
i'm using a fixture for my 3 test files means that 3 docker containers are created for every classFixture.
Example
...
-4
votes
0
answers
26
views
Java Integration tests failing when I run them all at once, but separately they all pass [duplicate]
For some reason, integration tests in my project have started to fail when I run them all at once.
error that I get is(I had to remove some of the stack trace because it was too long):
java.sql....
-1
votes
0
answers
31
views
Integration Test Using Single Wiremock Server vs Separate TestContainers
I have a Containerized application which uses other containerized apps in environment to consume REST apis.After performing the business logic, it creates file and send it to a remote server using ...
4
votes
1
answer
143
views
+50
How to perform integration test on ASP.NET Core API controller endpoint that requires authentication and validation of antiforgery tokens
Description
I have an ASP.NET Core API controller endpoint that requires:
an authenticated user, and
validation of antiforgery tokens
I want to perform an integration test on this endpoint.
Problem
...
1
vote
1
answer
42
views
How can I test a Java method that hits the actual REST API?
So I have a class that holds a bunch of methods(migrated from another project) that are suppose hit a REST API,but I don't know if they are working correctly.I want to create a driver class that i ...
0
votes
0
answers
12
views
Creating Integrated Tests for Finbuckle 7.0.1
I am create a multi-tenant API using clean architecture and FinBuckle 7.0.1. My unit tests run fine, and my functional tests where I can set the tenant identifier in the client header, work fine, ...
1
vote
0
answers
34
views
Random test failures in kafka integration tests with TestContainer
I'm experiencing inconsistent failures in my Kafka integration tests using TestContainers. The tests involve simple produce and consume operations along with database seeding, but sometimes they pass ...
0
votes
0
answers
31
views
WebApplicationFactory get server scope
I'm writing integration tests but I'm currently stuck... one of scoped services requires an extra initialization step to set up a private field, but when I try to call this extra step in my test code, ...
0
votes
0
answers
29
views
Spring boot Integration test data clean up issue
I have some integration tests in my spring boot tests. Around 20 of them. Before each integration test I am using @Sql annotation to inject some data and after the test I run a clean up script to ...
-1
votes
0
answers
22
views
Change PhysicalFilesWatcher polling interval
The PhysicalFilesWatcher, which is being used when setting the UsePollingFileWatcher = true in PhysicalFileProvider, has a default polling interval of 4 seconds.
Is it possible to change this interval?...
0
votes
0
answers
18
views
Do I need to create a custom authentication handler for my integration tests in .NET if I use KeyCloak in my application?
I'm currently working on a .NET application that uses Keycloak for authentication. For my integration tests, I want to avoid actually connecting to the Keycloak server to keep the tests fast and ...
0
votes
0
answers
22
views
Integration Tests with Custom Authentication in ASP.NET Core Returning 401 Unauthorized
Description:
I'm setting up integration tests for an ASP.NET Core application using the minimal hosting model in .NET 6. I am trying to mock the authentication process using a custom authentication ...
0
votes
0
answers
27
views
Could not load dependency but integration test can
I have an application which has depends on 2 custom build nugets. Lets call hem DepA (version 1.6.0) and DepB (version 1.2.5) for now. Both DepA and DepB depend on DepP but on different versions:
...
-1
votes
0
answers
52
views
Design Patterns and Testing - Create a Thing only if multiple criteria are satisfied
If the business rules state that [some Thing] should only be created if ten conditions are met, it seems crazy to write a test for each true/false permutation of those conditions. For example if I ...