Skip to content

Commit

Permalink
Add guestagent connected test
Browse files Browse the repository at this point in the history
Adds the guestagent connected test.
Work based on work done by rmohr.

Remove GuestAgent event

When calling the event callback event
can be nil. Added condition for this case.

Unify functional tests for agent

Final grooming for the guestagent
tests

Signed-off-by: Petr Kotas <[email protected]>
  • Loading branch information
petrkotas committed Nov 8, 2018
1 parent a687646 commit f00b1fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions images/cdi-http-import-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ FROM fedora:27
LABEL maintainer="The KubeVirt Project <[email protected]>"
ENV container docker

RUN dnf install -y nginx \
RUN dnf install -y nginx qemu-guest-agent \
&& dnf -y clean all

RUN mkdir -p /usr/share/nginx/html/images \
&& curl http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso > /usr/share/nginx/html/images/alpine.iso \
&& rm -f /etc/nginx/nginx.conf

RUN cp /usr/bin/qemu-ga /usr/share/nginx/html/

ADD nginx.conf /etc/nginx/

EXPOSE 80

5 changes: 2 additions & 3 deletions pkg/virt-launcher/notify-client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ type DomainEventClient struct {
}

type LibvirtEvent struct {
Domain string
Event *libvirt.DomainEventLifecycle
AgentEvent *libvirt.DomainEventAgentLifecycle
Domain string
Event *libvirt.DomainEventLifecycle
}

func NewDomainEventClient(virtShareDir string) (*DomainEventClient, error) {
Expand Down

0 comments on commit f00b1fe

Please sign in to comment.