Skip to content

Commit

Permalink
Adapt to lib-common fix PR #214
Browse files Browse the repository at this point in the history
In openstack-k8s-operators/lib-common#214
lib-common added  new network annotations to the pods. Adapt our tests
to the extra annotation.
  • Loading branch information
gibizer committed Apr 3, 2023
1 parent 1749d67 commit 186a5a4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
10 changes: 6 additions & 4 deletions test/functional/nova_metadata_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ var _ = Describe("NovaMetadata controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down Expand Up @@ -385,8 +386,9 @@ var _ = Describe("NovaMetadata controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down
10 changes: 6 additions & 4 deletions test/functional/nova_scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ var _ = Describe("NovaScheduler controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down Expand Up @@ -367,8 +368,9 @@ var _ = Describe("NovaScheduler controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down
10 changes: 6 additions & 4 deletions test/functional/novaapi_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,9 @@ var _ = Describe("NovaAPI controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down Expand Up @@ -468,8 +469,9 @@ var _ = Describe("NovaAPI controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down
10 changes: 6 additions & 4 deletions test/functional/novaconductor_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,9 @@ var _ = Describe("NovaConductor controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down Expand Up @@ -592,8 +593,9 @@ var _ = Describe("NovaConductor controller", func() {
expectedAnnotation, err := json.Marshal(
[]networkv1.NetworkSelectionElement{
{
Name: "internalapi",
Namespace: namespace,
Name: "internalapi",
Namespace: namespace,
InterfaceRequest: "internalapi",
}})
Expect(err).ShouldNot(HaveOccurred())
Expect(ss.Spec.Template.ObjectMeta.Annotations).To(
Expand Down

0 comments on commit 186a5a4

Please sign in to comment.