-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
package framework | ||
|
||
import ( | ||
rbac "k8s.io/api/rbac/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
func (f *Framework) DeleteClusterRole(name string) error { | ||
return f.KubeClient.RbacV1().ClusterRoles().Delete(name, deleteInBackground()) | ||
} | ||
|
||
func (f *Framework) GetClusterRole(name string) (*rbac.ClusterRole, error) { | ||
return f.KubeClient.RbacV1().ClusterRoles().Get(name, metav1.GetOptions{}) | ||
} | ||
|
||
func (f *Framework) DeleteClusterRoleBinding(name string) error { | ||
return f.KubeClient.RbacV1().ClusterRoleBindings().Delete(name, deleteInBackground()) | ||
} | ||
|
||
func (f *Framework) GetClusterRoleBinding(name string) (*rbac.ClusterRoleBinding, error) { | ||
return f.KubeClient.RbacV1().ClusterRoleBindings().Get(name, metav1.GetOptions{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
package framework | ||
|
||
import ( | ||
apps "k8s.io/api/apps/v1beta1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
func (f *Framework) DeleteDeployment(name, namespace string) error { | ||
return f.KubeClient.AppsV1beta1().Deployments(namespace).Delete(name, deleteInBackground()) | ||
} | ||
|
||
func (f *Framework) GetDeployment(name, namespace string) (*apps.Deployment, error) { | ||
return f.KubeClient.AppsV1beta1().Deployments(namespace).Get(name, metav1.GetOptions{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
package framework | ||
|
||
import ( | ||
corev1 "k8s.io/api/core/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
func (f *Framework) DeleteService(name, namespace string) error { | ||
return f.KubeClient.CoreV1().Services(namespace).Delete(name, deleteInForeground()) | ||
} | ||
|
||
func (f *Framework) GetService(name, namespace string) (*corev1.Service, error) { | ||
return f.KubeClient.CoreV1().Services(namespace).Get(name, metav1.GetOptions{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuite name="e2e Suite" tests="10" failures="0" time="571.677005453"> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for appscode Set up guard for appscode should be successful" classname="e2e Suite" time="51.343773507"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for github Set up guard for github should be successful" classname="e2e Suite" time="51.807932203"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for github Set up guard for github should be successful, provided base url" classname="e2e Suite" time="51.303250814"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for gitlab Set up guard for gitlab should be successful" classname="e2e Suite" time="50.925705798"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for gitlab Set up guard for gitlab should be successful, provided base url" classname="e2e Suite" time="60.89855021"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for azure Set up guard for azure should be successful" classname="e2e Suite" time="60.916727168"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for LDAP Set up guard for LDAP should be successful" classname="e2e Suite" time="50.907171918"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for token auth Set up guard for token auth should be successful" classname="e2e Suite" time="51.260738828"></testcase> | ||
<testcase name="Installer test Set up guard for individual auth provider Setting up guard for google Set up guard for google should be successful" classname="e2e Suite" time="90.893004798"></testcase> | ||
<testcase name="Installer test Setting up guard for all providers Set up guard for all providers should be successful" classname="e2e Suite" time="51.075806162"></testcase> | ||
</testsuite> |