Commit 1340576
Martes G Wigglesworth
[JBIDE-15766]:Remove refresh of all IEnvironmentVariable on add/remove actions
Please reference the following change log:
Removed update calls from EnvironmentVariableResource.destroy,
ApplicationResource.addEnvironmentVariable,ApplicationResource.addEnvironmentVariables,and
ApplicationResource.removeEnvironmentVariable.
Added
ApplicationResource.removeEnvironmentVariable(IEnvironmentVariable)
Renamed environmentVariableByName to environmentVariableMap
Updated getOrLoadEnvironmentVariable to work check for emptiness of
environmentVariableMap
Updated loadEnvironmentVariables to work on environmentVariablesMap, and
return it, in contrast to a locally-scoped version that did not persist.
Corrected test failures due to omitted changes to instances methods for EnvironmentVariableResouce and ApplicationResource.
Updated remove methods to use remove..(IEnvironmentVariable) and
ApplicationResourceIntegrationTest to use
Application.removeEnvironmentVariable(IEnvironmentVariable) in testing.
Added integration test for
removeEnvironmentVariable(IEnvironmentVariable)
Updated ApplicationResource.addEnvironmentVariables(Map<String,String>) to filter the incoming map key/value pairs if they
are duplicate keys, without different values. This update should resolve unecessary update DTO requests being generated.
(Rebased up to Nov 12 since the original PR got behind.)
Corrected possible logical error that was accidentally included in addEnvinronmentVariables(Map<String,String>), with the original PR. [if(testVar!=null)...else....]
(Rebased again, to support merge with most recent version of upstream master: 13-NOV-2013)
Corrected ApplicationResource.removeEnvironmentVariableByInstance(IEnvironmentVariable) and ApplicationResource.removeEnvironmentVariable(String) to correct failing test(s).1 parent 072de97 commit 1340576
7 files changed
Lines changed: 202 additions & 126 deletions
File tree
- src
- main/java/com/openshift
- client
- internal/client
- test/java/com/openshift/internal/client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | | - | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
435 | | - | |
436 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
442 | | - | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
454 | 452 | | |
455 | 453 | | |
456 | | - | |
457 | | - | |
| 454 | + | |
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
| |||
463 | 460 | | |
464 | 461 | | |
465 | 462 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
470 | 466 | | |
471 | 467 | | |
472 | 468 | | |
473 | 469 | | |
474 | 470 | | |
475 | 471 | | |
476 | | - | |
477 | | - | |
478 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
479 | 475 | | |
480 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
481 | 486 | | |
482 | 487 | | |
483 | | - | |
484 | | - | |
485 | | - | |
| 488 | + | |
486 | 489 | | |
487 | | - | |
| 490 | + | |
| 491 | + | |
488 | 492 | | |
489 | | - | |
| 493 | + | |
490 | 494 | | |
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
494 | 498 | | |
495 | 499 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
| 500 | + | |
500 | 501 | | |
501 | | - | |
| 502 | + | |
| 503 | + | |
502 | 504 | | |
503 | 505 | | |
504 | 506 | | |
| |||
Lines changed: 85 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | | - | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| |||
611 | 614 | | |
612 | 615 | | |
613 | 616 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
619 | 622 | | |
620 | 623 | | |
621 | 624 | | |
| |||
624 | 627 | | |
625 | 628 | | |
626 | 629 | | |
627 | | - | |
628 | 630 | | |
629 | 631 | | |
630 | 632 | | |
631 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
632 | 636 | | |
633 | | - | |
| 637 | + | |
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
| |||
643 | 647 | | |
644 | 648 | | |
645 | 649 | | |
646 | | - | |
647 | | - | |
| 650 | + | |
| 651 | + | |
648 | 652 | | |
649 | | - | |
| 653 | + | |
650 | 654 | | |
651 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
652 | 658 | | |
653 | 659 | | |
654 | 660 | | |
655 | 661 | | |
656 | | - | |
| 662 | + | |
657 | 663 | | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
662 | 678 | | |
663 | 679 | | |
664 | | - | |
| 680 | + | |
665 | 681 | | |
666 | | - | |
667 | | - | |
668 | | - | |
| 682 | + | |
| 683 | + | |
669 | 684 | | |
670 | | - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
671 | 689 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 690 | + | |
| 691 | + | |
680 | 692 | | |
681 | 693 | | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
682 | 711 | | |
683 | 712 | | |
684 | 713 | | |
| |||
689 | 718 | | |
690 | 719 | | |
691 | 720 | | |
692 | | - | |
| 721 | + | |
693 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
694 | 727 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 728 | + | |
701 | 729 | | |
702 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
703 | 735 | | |
704 | 736 | | |
705 | 737 | | |
| |||
714 | 746 | | |
715 | 747 | | |
716 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
717 | 753 | | |
718 | 754 | | |
719 | 755 | | |
| |||
820 | 856 | | |
821 | 857 | | |
822 | 858 | | |
823 | | - | |
824 | | - | |
825 | | - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
826 | 864 | | |
827 | 865 | | |
828 | 866 | | |
| |||
833 | 871 | | |
834 | 872 | | |
835 | 873 | | |
836 | | - | |
837 | | - | |
838 | | - | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
839 | 878 | | |
840 | 879 | | |
841 | 880 | | |
| |||
1094 | 1133 | | |
1095 | 1134 | | |
1096 | 1135 | | |
1097 | | - | |
1098 | | - | |
| 1136 | + | |
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
84 | | - | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
121 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
122 | 135 | | |
0 commit comments