Skip to content

Commit 254a6eb

Browse files
committed
Rename directory test in tests
Signed-off-by: freddidierRTE <[email protected]>
1 parent 5f184da commit 254a6eb

File tree

565 files changed

+82
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

565 files changed

+82
-85
lines changed
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
name: Test with old mongo version
32

43
on:
54
schedule:
65
# launch a build every day on develop
7-
- cron: '0 23 * * *'
6+
- cron: "0 23 * * *"
87
# Allows you to run this workflow manually from the Actions tab
98
workflow_dispatch:
109

@@ -15,15 +14,15 @@ jobs:
1514
runs-on: ubuntu-latest
1615
steps:
1716
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18-
17+
1918
- name: Job status
20-
run: |
19+
run: |
2120
export OF_VERSION=$(<VERSION)
2221
echo "----------------------------"
2322
echo "Trigger by : ${{ github.event_name }}"
2423
echo "On branch : ${{ github.ref_name }} "
2524
echo "---------------------------"
26-
25+
2726
- name: Cache Gradle packages
2827
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2928
with:
@@ -33,7 +32,7 @@ jobs:
3332
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties','**/*.gradle') }}
3433
restore-keys: ${{ runner.os }}-gradle
3534

36-
- name: Install
35+
- name: Install
3736
run: ./CICD/github/install.sh
3837

3938
- name: Build
@@ -46,15 +45,13 @@ jobs:
4645

4746
- name: Karate tests
4847
run: ./CICD/github/launch_karate_tests.sh
49-
50-
- name: Cypress tests
48+
49+
- name: Cypress tests
5150
run: ./CICD/github/launch_cypress_tests.sh
52-
51+
5352
- name: Upload cypress screenshots
5453
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5554
if: failure()
5655
with:
57-
name: cypress-screenshots
58-
path: src/test/cypress/cypress/screenshots
59-
60-
56+
name: cypress-screenshots
57+
path: tests/cypress/cypress/screenshots

.gitignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ classes
7474

7575
# Opfab binary directories
7676
backend/*/bin
77-
test/externalApp/bin
78-
test/dummyModbusDevice/bin
79-
test/gatling/bin
77+
tests/externalApp/bin
78+
tests/dummyModbusDevice/bin
79+
tests/gatling/bin
8080
*/**/*.class
8181

8282
### Gradle ###
@@ -113,11 +113,11 @@ config/**/.env
113113

114114
# Karate tests
115115
## Results
116-
test/**/karate/target/**/*
116+
tests/**/karate/target/**/*
117117
## Karate jar
118-
test/**/karate.jar
118+
tests/**/karate.jar
119119
## Tar.gz bundles
120-
test/**/*.tar.gz
120+
tests/**/*.tar.gz
121121

122122
# UI
123123
ui/main/node_modules
@@ -141,9 +141,9 @@ config/mongodump/**
141141

142142
# Cypress
143143

144-
test/cypress/node_modules
145-
test/cypress/cypress/screenshots
146-
test/cypress/cypress/videos
144+
tests/cypress/node_modules
145+
tests/cypress/cypress/screenshots
146+
tests/cypress/cypress/videos
147147

148148
# migration packages
149149
migrations/*/node_modules

CICD/github/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Script launch form the root of the git project by github actions
1313

1414
export OF_VERSION=$(<VERSION)
15-
docker compose -f test/test-environment/docker-compose.yml up -d
15+
docker compose -f tests/test-environment/docker-compose.yml up -d
1616
source $HOME/.sdkman/bin/sdkman-init.sh;
1717
export NVM_DIR="$HOME/.nvm"
1818
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
@@ -32,6 +32,6 @@ echo "SONAR_TOKEN is not set, skipping sonar analysis."
3232
./gradlew --build-cache test jacocoTestReport buildDocker
3333
fi
3434
status_code=$?
35-
docker compose -f test/test-environment/docker-compose.yml down
35+
docker compose -f tests/test-environment/docker-compose.yml down
3636
# propagate the status code for github actions
3737
exit $status_code

CICD/github/launch_karate_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd bin
2020
./startOpfab.sh prod
2121
#Logs for debug
2222
docker logs greenmail
23-
cd ../test/api/karate
23+
cd ../tests/api/karate
2424
./launchAll.sh
2525
status_code=$?
2626
#Logs for debug

CICD/github/launch_load_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export NVM_DIR="$HOME/.nvm"
1818
source ./bin/load_environment_light.sh;
1919
cd bin
2020
./startOpfab.sh prod
21-
cd ../test/gatling
21+
cd ../tests/gatling
2222
../../gradlew clean gatlingRun
2323
status_code=$?
2424
cd ../../bin

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ cd ./bin
9292
+
9393
[source,shell]
9494
----
95-
./test/resources/loadTestConf.sh
96-
./test/resources/send6TestCards.sh
95+
./tests/resources/loadTestConf.sh
96+
./tests/resources/send6TestCards.sh
9797
----
9898

9999
TIP: If you want to experiment in more depth and have more details on how it works (as well as some troubleshooting), check out our

bin/dependencies/generateDependencyReport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo "Build java report"
2626
tools:spring:spring-test-utilities:dependencies \
2727
> bin/dependencies/${report_name}
2828
echo " Java report for test app externalApp"
29-
cd test/externalApp
29+
cd tests/externalApp
3030
../../gradlew dependencies >> ../../bin/dependencies/${report_name}
3131
echo " Java report for test app dummyModbusDevice"
3232
cd ../dummyModbusDevice

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ sonar {
129129
'**/controllers/**',
130130
'**/src/test/**',
131131
'**/test-utilities/**',
132-
'test/**',
132+
'tests/**',
133133
'backend/**/tests/*',
134134
'backend/**/server-side/**',
135135
'backend/**/jest.config.js'
136136
]
137137
property 'sonar.coverage.exclusions', coverageExclusions.join(',')
138138
property 'sonar.exclusions','**/generated/**/*,docs/**/*,**/*Application.java,**/node_modules/**/*'
139139
// exclusions for analyse of duplicated code , test classes are excluded
140-
property 'sonar.cpd.exclusions','**/model/**/*,**/src/test/**/*,**/*.spec.ts,test/**,backend/**/tests/*'
140+
property 'sonar.cpd.exclusions','**/model/**/*,**/src/test/**/*,**/*.spec.ts,tests/**,backend/**/tests/*'
141141

142142

143143
property 'sonar.issue.ignore.multicriteria', 'e1,e2,e3'

config/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ services:
156156
- "./web-ui/nginx.conf:/etc/nginx/conf.d/default.conf"
157157
- "./web-ui/externalJs:/usr/share/nginx/html/externalJs"
158158
- "./web-ui/externalCss:/usr/share/nginx/html/externalCss"
159-
- "../test/externalWebAppExample:/usr/share/nginx/html/external/appExample"
159+
- "../tests/externalWebAppExample:/usr/share/nginx/html/external/appExample"
160160
cards-external-diffusion:
161161
container_name: cards-external-diffusion
162162
image: "lfeoperatorfabric/of-cards-external-diffusion-service:SNAPSHOT"

docs/asciidoc/community/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ The manual testing process should include, at a minimum, the following areas tha
161161

162162
- Validation of geographical features (Check GeoJSON layer by verifying the presence of HV lines on the map in the east of France)
163163
- Verification that the reminder feature functions correctly, including proper reminders and sound notifications
164-
- Load testing using the script located at `test/resources/cardsForStressTests/send6xN_TestCards.sh`
164+
- Load testing using the script located at `tests/resources/cardsForStressTests/send6xN_TestCards.sh`
165165
- Testing under slow network conditions (e.g., simulating slow 4G using Chrome DevTools)
166166
- Visual inspection of all screens at the minimum supported resolution in both day and night modes
167167
- Verification of sound notifications

0 commit comments

Comments
 (0)