Commit 1ca080c
committed
[tests] Fix API regression test: replace VPN template instead of clearing openwisp#1221
The test must send a non-empty templates list (replacing the VPN template
with a generic one) so that the m2m post_add signal fires and triggers
manage_vpn_clients to delete the stale VpnClient via per-instance delete.
Sending an empty templates list hits only the post_clear path which skips
deletion for non-deactivated devices.
Co-Authored-By: mn-ram <mn-ram@users.noreply.github.com>1 parent e6c24f5 commit 1ca080c
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
531 | 532 | | |
532 | 533 | | |
533 | 534 | | |
| |||
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
539 | | - | |
540 | | - | |
| 540 | + | |
| 541 | + | |
541 | 542 | | |
542 | 543 | | |
543 | 544 | | |
| |||
0 commit comments