@@ -26,33 +26,33 @@ public class OCCommandUtilsTest {
26
26
@ Test
27
27
public void testCommandWithToken () {
28
28
assertEquals ("123456789123456789" ,
29
- OCCommandUtils .getToken ("oc login https://api.engint.openshift.com --token=123456789123456789" ));
29
+ OCCommandUtils .getToken ("oc login https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
30
30
assertEquals ("123456789123456789" ,
31
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=123456789123456789 " ));
31
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=123456789123456789 " )); //# notsecret
32
32
assertEquals ("1234567891234567..89" ,
33
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=1234567891234567..89 " ));
33
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=1234567891234567..89 " )); //# notsecret
34
34
assertEquals ("12345678912345678_9" ,
35
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=12345678912345678_9 " ));
35
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=12345678912345678_9 " )); //# notsecret
36
36
assertEquals ("1234567891234567.89" ,
37
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=1234567891234567.89 " ));
37
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=1234567891234567.89 " )); //# notsecret
38
38
assertEquals ("1234567891234567-89" ,
39
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=1234567891234567-89 " ));
39
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=1234567891234567-89 " )); //# notsecret
40
40
}
41
41
42
42
@ Test
43
43
public void testCommandWithTokenOCP4 () {
44
44
assertEquals ("sha256~123456789123456789" ,
45
- OCCommandUtils .getToken ("oc login https://api.engint.openshift.com --token=sha256~123456789123456789" ));
45
+ OCCommandUtils .getToken ("oc login https://api.engint.openshift.com --token=sha256~123456789123456789" )); //# notsecret
46
46
assertEquals ("sha256~123456789123456789" ,
47
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~123456789123456789 " ));
47
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~123456789123456789 " )); //# notsecret
48
48
assertEquals ("sha256~1234567891234567..89" ,
49
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~1234567891234567..89 " ));
49
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~1234567891234567..89 " )); //# notsecret
50
50
assertEquals ("sha256~12345678912345678_9" ,
51
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~12345678912345678_9 " ));
51
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~12345678912345678_9 " )); //# notsecret
52
52
assertEquals ("sha256~1234567891234567.89" ,
53
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~1234567891234567.89 " ));
53
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~1234567891234567.89 " )); //# notsecret
54
54
assertEquals ("sha256~1234567891234567-89" ,
55
- OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~1234567891234567-89 " ));
55
+ OCCommandUtils .getToken ("oc login https://api.-uengint.openshift.com --token=sha256~1234567891234567-89 " )); //# notsecret
56
56
}
57
57
58
58
@ Test
@@ -68,24 +68,24 @@ public void testCommandWithPassword() {
68
68
@ Test
69
69
public void testValidCommand () {
70
70
assertFalse (
71
- OCCommandUtils .isValidCommand ("oc loginhttps://api.engint.openshift.com --token=123456789123456789" ));
71
+ OCCommandUtils .isValidCommand ("oc loginhttps://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
72
72
assertTrue (
73
- OCCommandUtils .isValidCommand ("oc login https://api.engint.openshift.com --token=123456789123456789" ));
73
+ OCCommandUtils .isValidCommand ("oc login https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
74
74
assertTrue (OCCommandUtils .isValidCommand ("oc login https://12.34.5.6:8443 -u developer -p deve" ));
75
75
}
76
76
77
77
@ Test
78
78
public void testServerAddress () {
79
79
assertEquals ("https://api.engint.openshift.com" ,
80
- OCCommandUtils .getServer ("oc login https://api.engint.openshift.com --token=123456789123456789" ));
80
+ OCCommandUtils .getServer ("oc login https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
81
81
assertEquals ("https://api.engint.openshift.com" ,
82
- OCCommandUtils .getServer ("oc login -s=https://api.engint.openshift.com --token=123456789123456789" ));
82
+ OCCommandUtils .getServer ("oc login -s=https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
83
83
assertEquals ("https://api.engint.openshift.com" ,
84
- OCCommandUtils .getServer ("oc login -s https://api.engint.openshift.com --token=123456789123456789" ));
84
+ OCCommandUtils .getServer ("oc login -s https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
85
85
assertEquals ("https://api.engint.openshift.com" ,
86
- OCCommandUtils .getServer ("oc login --server=https://api.engint.openshift.com --token=123456789123456789" ));
86
+ OCCommandUtils .getServer ("oc login --server=https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
87
87
assertEquals ("https://api.engint.openshift.com" ,
88
- OCCommandUtils .getServer ("oc login --server https://api.engint.openshift.com --token=123456789123456789" ));
88
+ OCCommandUtils .getServer ("oc login --server https://api.engint.openshift.com --token=123456789123456789" )); //# notsecret
89
89
}
90
90
91
91
@ Test
0 commit comments