Skip to content

Commit

Permalink
Merge pull request #95 from BuddhiWathsala/master
Browse files Browse the repository at this point in the history
Bump operator version to beta and fix e2e test
  • Loading branch information
mohanvive committed Sep 12, 2019
2 parents 6f5a74e + 4ceedd8 commit 6659415
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
serviceAccountName: siddhi-operator
containers:
- name: siddhi-operator
image: siddhiio/siddhi-operator:0.2.0-alpha
image: siddhiio/siddhi-operator:0.2.0-beta
command:
- siddhi-operator
imagePullPolicy: Always
Expand All @@ -46,6 +46,6 @@ spec:
- name: OPERATOR_NAME
value: siddhi-operator
- name: OPERATOR_VERSION
value: 0.2.0-alpha
value: 0.2.0-beta
- name: OPERATOR_CONFIGMAP
value: siddhi-operator-config
2 changes: 1 addition & 1 deletion pkg/controller/siddhiprocess/artifact/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TestCreateOrUpdateDeployment(t *testing.T) {
"app": "sample",
"version": "0.1.0",
}
image := "siddhiio/siddhi-operator:0.2.0-alpha"
image := "siddhiio/siddhi-operator:0.2.0-beta"
_, err := kubeClient.CreateOrUpdateDeployment(
name,
namespace,
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/siddhiprocess/deploymanager/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package deploymanager
// Constants for the DeployManager
const (
OperatorName string = "siddhi-operator"
OperatorVersion string = "0.2.0-alpha"
OperatorVersion string = "0.2.0-beta"
CRDName string = "SiddhiProcess"
PVCExtension string = "-pvc"
DepCMExtension string = "-depyml"
Expand Down
24 changes: 12 additions & 12 deletions test/e2e/failover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func failoverDeploymentTest(t *testing.T, f *framework.Framework, ctx *framework
APIVersion: "siddhi.io/v1alpha2",
},
ObjectMeta: metav1.ObjectMeta{
Name: "failover-app",
Name: "failover-app-dep",
Namespace: namespace,
},
Spec: siddhiv1alpha2.SiddhiProcessSpec{
Expand Down Expand Up @@ -89,12 +89,12 @@ func failoverDeploymentTest(t *testing.T, f *framework.Framework, ctx *framework
return err
}

err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-0", 1, retryInterval, maxTimeout)
err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-dep-0", 1, retryInterval, maxTimeout)
if err != nil {
return err
}

err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-1", 1, retryInterval, maxTimeout)
err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-dep-1", 1, retryInterval, maxTimeout)
if err != nil {
return err
}
Expand All @@ -104,7 +104,7 @@ func failoverDeploymentTest(t *testing.T, f *framework.Framework, ctx *framework
return err
}

_, err = f.KubeClient.CoreV1().Services(namespace).Get("failover-app-0", metav1.GetOptions{IncludeUninitialized: true})
_, err = f.KubeClient.CoreV1().Services(namespace).Get("failover-app-dep-0", metav1.GetOptions{IncludeUninitialized: true})
if err != nil {
return err
}
Expand Down Expand Up @@ -134,7 +134,7 @@ func failoverConfigChangeTest(t *testing.T, f *framework.Framework, ctx *framewo
APIVersion: "siddhi.io/v1alpha2",
},
ObjectMeta: metav1.ObjectMeta{
Name: "failover-app",
Name: "failover-app-conf",
Namespace: namespace,
},
Spec: siddhiv1alpha2.SiddhiProcessSpec{
Expand Down Expand Up @@ -178,17 +178,17 @@ func failoverConfigChangeTest(t *testing.T, f *framework.Framework, ctx *framewo
return err
}

err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-0", 1, retryInterval, maxTimeout)
err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-conf-0", 1, retryInterval, maxTimeout)
if err != nil {
return err
}

err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-1", 1, retryInterval, maxTimeout)
err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-conf-1", 1, retryInterval, maxTimeout)
if err != nil {
return err
}

_, err = f.KubeClient.CoreV1().ConfigMaps(namespace).Get("failover-app-depyml", metav1.GetOptions{IncludeUninitialized: true})
_, err = f.KubeClient.CoreV1().ConfigMaps(namespace).Get("failover-app-conf-depyml", metav1.GetOptions{IncludeUninitialized: true})
if err != nil {
return err
}
Expand All @@ -215,7 +215,7 @@ func failoverPVCTest(t *testing.T, f *framework.Framework, ctx *framework.TestCt
APIVersion: "siddhi.io/v1alpha2",
},
ObjectMeta: metav1.ObjectMeta{
Name: "failover-test-app",
Name: "failover-app-pvc",
Namespace: namespace,
},
Spec: siddhiv1alpha2.SiddhiProcessSpec{
Expand Down Expand Up @@ -258,17 +258,17 @@ func failoverPVCTest(t *testing.T, f *framework.Framework, ctx *framework.TestCt
return err
}

err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-test-app-0", 1, retryInterval, maxTimeout)
err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-pvc-0", 1, retryInterval, maxTimeout)
if err != nil {
return err
}

err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-test-app-1", 1, retryInterval, maxTimeout)
err = e2eutil.WaitForDeployment(t, f.KubeClient, namespace, "failover-app-pvc-1", 1, retryInterval, maxTimeout)
if err != nil {
return err
}

_, err = f.KubeClient.CoreV1().PersistentVolumeClaims(namespace).Get("failover-test-app-1-pvc", metav1.GetOptions{IncludeUninitialized: true})
_, err = f.KubeClient.CoreV1().PersistentVolumeClaims(namespace).Get("failover-app-pvc-1-pvc", metav1.GetOptions{IncludeUninitialized: true})
if err != nil {
return err
}
Expand Down

0 comments on commit 6659415

Please sign in to comment.