Feature #6275

Automatically test write access to the boot block device via udisks

Added by intrigeri 2013-09-11 13:16:43 . Updated 2014-07-22 22:46:52 .

Status:
Resolved
Priority:
High
Assignee:
Category:
Test suite
Target version:
Start date:
2013-09-11
Due date:
% Done:

100%

Feature Branch:
test/6275-boot-device-write-access-via-udisks
Type of work:
Code
Blueprint:

Starter:
0
Affected tool:
Deliverable for:

Description

Our automated test suite should make sure Bug #6172 is indeed fixed.


Subtasks


History

#1 Updated by intrigeri 2013-09-11 13:18:41

  • Category changed from Continuous Integration to Test suite

#2 Updated by intrigeri 2013-11-05 03:59:12

  • Subject changed from Test write access to the boot block device via udisks to Automatically test write access to the boot block device via udisks

#3 Updated by intrigeri 2013-12-26 15:16:07

  • Status changed from Confirmed to In Progress
  • % Done changed from 0 to 20

Something like this should do the trick (patch based on current test/rjb-migration branch):

--- a/features/step_definitions/usb.rb
+++ b/features/step_definitions/usb.rb
@@ -336,6 +336,10 @@ Then /^the boot device has safe access rights$/ do
              "owns boot device '#{dev}'")
     end
   end
+
+  info = @vm.execute("udisks --show-info #{super_boot_dev}").stdout
+  assert(info.match("^  system internal: +1$"),
+         "Boot device '#{super_boot_dev}' is not system internal for udisks")
 end

 Then /^persistent filesystems have safe access rights$/ do

#4 Updated by intrigeri 2014-04-05 23:44:57

  • Assignee set to intrigeri

#5 Updated by intrigeri 2014-04-08 18:41:34

  • % Done changed from 20 to 30
  • Feature Branch set to test/6275-boot-device-write-access-via-udisks

#6 Updated by intrigeri 2014-04-08 19:13:20

#7 Updated by intrigeri 2014-04-08 19:15:09

  • Assignee changed from intrigeri to anonym
  • % Done changed from 30 to 50
  • QA Check set to Ready for QA

Done, works for me. Based on the current state of test/6559-adapt-test-suite-for-Wheezy.

#8 Updated by intrigeri 2014-04-08 19:17:47

#9 Updated by intrigeri 2014-04-08 19:18:02

  • Target version set to Tails_1.1

#10 Updated by anonym 2014-05-08 15:52:12

  • Assignee changed from anonym to intrigeri
  • QA Check changed from Ready for QA to Pass

The branch history has been rewritten. See “[review’n’merge:1.1] Feature #6559, Feature #7062, Feature #6275: test/6559-adapt-test-suite-for-Wheezy” on tails-dev@.

Please tag as “Fix committed” when Feature #6559’s test/6559-adapt-test-suite-for-Wheezy (which has this branch merged) is merged into devel.

#11 Updated by intrigeri 2014-05-28 10:54:31

  • Status changed from In Progress to Fix committed
  • Assignee deleted (intrigeri)
  • % Done changed from 50 to 100

#12 Updated by BitingBird 2014-07-22 22:46:52

  • Status changed from Fix committed to Resolved