Chai Feng
a90e1fbbe9
refactor(test): rename test cases for clarity
...
The test case names in `ufw-docker-service.test.sh` and `ufw-docker.test.sh` were grammatically incorrect and did not clearly describe their purpose.
This commit renames the test cases to be more descriptive and adhere to the Bach testing framework's conventions, using hyphens to improve readability in the test output.
2025-07-11 17:21:04 +08:00
Chai Feng
b06afc13ef
Support multiple ports in ufw-docker service allow
2025-07-08 16:17:50 +08:00
Chai Feng
7886c73f5b
Extract a function ufw-docker--list-service-ports
2025-07-03 10:27:47 +08:00
Chai Feng
168fc59905
Add IPv6 network support and --docker-subnets
option for install/check
...
- Add support for IPv6 networks in firewall rule generation and validation.
- Add --docker-subnets [SUBNET1 SUBNET2 ...] option to `ufw-docker install` and `ufw-docker check`.
- When used without arguments, automatically detects and applies all Docker network subnets.
- When given subnet arguments, applies firewall rules only to specified subnets (supports multiple subnets, including non-Docker-managed networks).
- If not specified, falls back to default RFC1918 IPv4 and fd00::/8 IPv6 subnets.
- Improve help output with detailed examples and usage guidance.
2025-07-02 18:54:07 +08:00
Chai Feng
3d6896cdd1
Update Bach to the latest unreleased version
2024-09-29 10:25:06 +08:00
anuragpeshne
6cdd4dfd2f
adds test for docker exist
2023-02-21 19:20:42 +08:00
anuragpeshne
17e6047590
Adds check for docker executable and adds snap to path
2023-02-21 19:20:42 +08:00
Radosław Kłos
a1d3517aeb
Add integration tests for multiport app
2022-09-26 21:43:22 +08:00
Radosław Kłos
d1e6c13156
Add unit tests for alternative greps in ufw-docker--list
2022-09-26 21:43:22 +08:00
Radosław Kłos
682d8b363f
Fix existing unit tests
2022-09-26 21:43:22 +08:00
Chai Feng
e99858510d
Update Bach Testing Framework
2022-09-21 08:43:58 +08:00
Chai Feng
5033bf815c
Auto select the correct agent image for different version of iptables
2022-09-20 21:38:10 +08:00
Patrice Brend'amour
22f04125d6
added missing test
2021-09-22 08:24:24 +08:00
Patrice Brend'amour
cd783f91d7
fixed tests
2021-09-22 08:24:24 +08:00
Chai Feng
cc58088bc5
Update test/bach to the latest version
2021-09-12 08:52:29 +08:00
Chai Feng
149e84e8af
Update bach
2020-08-12 13:48:01 +08:00
Chai Feng
6d1c5a229b
Add tests for ufw-docker--service-delete
2020-08-12 13:48:01 +08:00
Chai Feng
52fa5dc1e1
Add a test case for ufw-docker--get-env-list
2020-08-12 13:48:01 +08:00
Chai Feng
bac764e44e
Add Tests for ufw-docker--service-allow
2020-08-12 13:48:01 +08:00
Chai Feng
9137695937
Fix a test case
2020-08-12 13:48:01 +08:00
Chai Feng
2d2b968024
Add tests for ufw-docker--service-allow, failed scenarios
2020-08-12 13:48:01 +08:00
Chai Feng
5be7dfb366
Add tests for ufw-docker--get-service-{id,name}
2020-08-12 13:48:01 +08:00
Chai Feng
6291251734
Add a new test suite for ufw-docker--service commands
2020-08-12 13:48:01 +08:00
Chai Feng
b701f6baee
Add two tests for ufw-docker--delete
2020-08-12 13:48:01 +08:00
Chai Feng
bcfca79758
Add a test case for ufw-docker--list-number
2020-08-12 13:48:01 +08:00
Chai Feng
491324a1f4
Add tests for ufw-docker--list
2020-08-12 13:48:01 +08:00
Chai Feng
1c6dd31de7
Add tests for ufw-docker--instance-name
2020-08-12 13:48:01 +08:00
Chai Feng
8444f87760
Update Bach, add a test case for ufw-docker--allow
2020-08-12 13:48:01 +08:00
Chai Feng
3893c86236
Add test cases for ufw-docker--add-rule
2020-08-12 13:48:01 +08:00
Chai Feng
3598011787
Add a test case for ufw-docker--allow, the proto doesn't match
2020-08-12 13:48:01 +08:00
Chai Feng
c79d1ad1a6
Add test cases for ufw-docker--allow
2020-08-12 13:48:01 +08:00
Chai Feng
22463cbf6e
Update bash to 0.2.6
2020-08-12 13:48:01 +08:00
Chai Feng
df963fdb31
Add Bach Testing Framework and several basic test cases
2020-08-12 13:48:01 +08:00