Skip to content

CA-142451: Unit tests#212

Closed
fquesnel wants to merge 1 commit intoxapi-project:xs64bitfrom
fquesnel:unittestxs64bit
Closed

CA-142451: Unit tests#212
fquesnel wants to merge 1 commit intoxapi-project:xs64bitfrom
fquesnel:unittestxs64bit

Conversation

@fquesnel
Copy link
Copy Markdown

Covering changes related to CA-142451.

Signed-off-by: Flavien Quesnel flavien.quesnel@citrix.com

@xen-git
Copy link
Copy Markdown

xen-git commented Aug 20, 2014

Can one of the admins verify this patch?

@fquesnel
Copy link
Copy Markdown
Author

test this please

@fquesnel
Copy link
Copy Markdown
Author

This pull request must be applied first so that the unit tests work:
#210

Thanks,
Flavien

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe create an assertDevicePath method:

...
        self.assertPath(self.node1, iscsi_sr.path)
        self.assertEquals(node1_ip_port, iscsi_sr.tgtidx)
        self.assertEquals(node1_ip_port, iscsi_sr.address)
...

After that these 3 could be moved to one assertion:

        self.assertActiveNode(node1, iscsi_sr)

Covering changes related to CA-142451.

Signed-off-by: Flavien Quesnel <flavien.quesnel@citrix.com>
@matelakat
Copy link
Copy Markdown
Contributor

test this please

@germanop
Copy link
Copy Markdown
Contributor

why do we have unit tests for something that is not in xs64bit?

The original PR is for master only. Then everything will be backported altogether in xs64bit.

Am I wrong?

@matelakat
Copy link
Copy Markdown
Contributor

As @fquesnel commented - these are the tests for the changes in #210

@matelakat
Copy link
Copy Markdown
Contributor

retest this please

@matelakat
Copy link
Copy Markdown
Contributor

Closing it down, as #213 covers this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants