Skip to content

Commit dec2b52

Browse files
build: remove docker requirement (#1624)
1 parent 6e8f567 commit dec2b52

File tree

8 files changed

+26
-9
lines changed

8 files changed

+26
-9
lines changed

.github/workflows/ci-build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,31 @@ jobs:
3131
run: mvn -B verify
3232

3333
- name: Upload failed test reports
34-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v4
3535
if: failure()
3636
with:
3737
name: failed-webtau-reports
3838
path: "*/**/*-failed*.html"
3939
retention-days: 2
4040

4141
- name: Upload all reports
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4343
if: failure()
4444
with:
4545
name: all-webtau-reports
4646
path: "*/**/*webtau-report.html"
4747
retention-days: 1
4848

4949
- name: Upload CLI sanity test reports
50-
uses: actions/upload-artifact@v2
50+
uses: actions/upload-artifact@v4
5151
if: failure()
5252
with:
5353
name: failed-cli-sanity-test
5454
path: "webtau-cli-testing/src/test/groovy/*failed*.html"
5555
retention-days: 2
5656

5757
- name: Upload reports testing reports
58-
uses: actions/upload-artifact@v2
58+
uses: actions/upload-artifact@v4
5959
if: failure()
6060
with:
6161
name: failed-reports-testing-tests

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
<dependency>
294294
<groupId>io.github.bonigarcia</groupId>
295295
<artifactId>webdrivermanager</artifactId>
296-
<version>5.6.4</version>
296+
<version>5.9.3</version>
297297
</dependency>
298298

299299
<dependency>

webtau-db/src/test/groovy/org/testingisdocumenting/webtau/db/DatabaseTestContainersTest.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616

1717
package org.testingisdocumenting.webtau.db
1818

19+
import org.junit.Ignore
1920
import org.junit.Test
2021

2122
import static Database.*
2223

24+
@Ignore
2325
class DatabaseTestContainersTest {
2426
@Test
2527
void "from test containers jdbc"() {

webtau-feature-testing/src/test/resources/ag-grid-multi-select.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<html lang="en">
1919
<head>
2020
<title>Ag-Grid Basic Example</title>
21-
<script src="https://unpkg.com/ag-grid-community/dist/ag-grid-community.min.js"></script>
21+
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
2222
</head>
2323
<body>
2424
<div id="grid" style="height: 200px; width:800px;" class="ag-theme-alpine"></div>
@@ -46,7 +46,7 @@
4646
// setup the grid after the page has finished loading
4747
document.addEventListener('DOMContentLoaded', function() {
4848
var gridDiv = document.querySelector('#grid');
49-
new agGrid.Grid(gridDiv, gridOptions);
49+
agGrid.createGrid(gridDiv, gridOptions);
5050
});
5151
</script>
5252
</html>

webtau-feature-testing/src/test/resources/tables.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
// setup the grid after the page has finished loading
9898
document.addEventListener('DOMContentLoaded', function() {
9999
var gridDiv = document.querySelector('#ag-grid-simple');
100-
new agGrid.Grid(gridDiv, gridOptions);
100+
agGrid.createGrid(gridDiv, gridOptions);
101101
});
102102
</script>
103103
</body>

webtau-testapp/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@
111111
<version>${h2.version}</version>
112112
</dependency>
113113

114+
<dependency>
115+
<groupId>org.hsqldb</groupId>
116+
<artifactId>hsqldb</artifactId>
117+
<version>2.7.1</version>
118+
<scope>runtime</scope>
119+
</dependency>
120+
114121
<dependency>
115122
<groupId>javax.xml.bind</groupId>
116123
<artifactId>jaxb-api</artifactId>

webtau-testapp/src/test/java/com/example/demo/springboot/app/data/AccountRepositoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
// repository-test-config
3838
@DataJpaTest
39-
@ActiveProfiles("tc") // test profile with Test Containers
39+
@ActiveProfiles("hsql")
4040
public class AccountRepositoryTest {
4141
private final AccountRepository accountRepository;
4242
private final Database mainDb;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
spring.datasource.driver-class-name=org.hsqldb.jdbc.JDBCDriver
2+
spring.datasource.url=jdbc:hsqldb:mem:testdb
3+
spring.jpa.hibernate.ddl-auto=create-drop
4+
spring.jpa.database-platform=org.hibernate.dialect.HSQLDialect
5+
spring.datasource.username=sa
6+
spring.datasource.password=
7+
# disable default in memory DB provided by @DataJpaTest
8+
spring.test.database.replace=none

0 commit comments

Comments
 (0)