Bug #16317

persistence.feature fails due to NetworkManager test

Added by CyrilBrulebois 2019-01-07 14:21:13 . Updated 2019-04-05 09:14:58 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Test suite
Target version:
Start date:
2019-01-07
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

Checking the snapshot removal (Bug #16316) helped with persistence.feature, that seems way better. This fails though:

    And Tor is ready                                                                                              # features/step_definitions/common_steps.rb:352
    And I add a current wired DHCP NetworkManager connection called "persistent-con-current"                      # features/step_definitions/common_steps.rb:576
      Unsupported version 'current ' (RuntimeError)
      ./features/step_definitions/common_steps.rb:578:in `/^I add a ([a-z0-9.]+ |)wired DHCP NetworkManager connection called "([^"]+)"$/'
      features/persistence.feature:37:in `And I add a current wired DHCP NetworkManager connection called "persistent-con-current"'

Failing Scenarios:
cucumber features/persistence.feature:33 # Scenario: Creating and using a persistent NetworkManager connection

6 scenarios (1 failed, 5 passed)
46 steps (1 failed, 8 skipped, 37 passed)
75m27.923s

which isn’t surprising given the current implementation in features/step_definitions/common_steps.rb:

Given /^I add a ([a-z0-9.]+ |)wired DHCP NetworkManager connection called "([^"]+)"$/ do |version, con_name|
  if not version.empty?
    raise "Unsupported version '#{version}'"
  else
    $vm.execute_successfully(
      "nmcli connection add con-name #{con_name} " + \
      "type ethernet autoconnect yes ifname eth0"
    )
  end
  try_for(10) {
    nm_con_list = $vm.execute("nmcli --terse --fields NAME connection show").stdout
    nm_con_list.split("\n").include? "#{con_name}"
  }
end

as we have a non-empty version (i.e. current).


Subtasks


Related issues

Related to Tails - Bug #16316: Black screen/apparent machine crash in test suite due to snapshot mechanism? Resolved 2019-01-07

History

#1 Updated by CyrilBrulebois 2019-01-07 14:23:36

  • related to Bug #16316: Black screen/apparent machine crash in test suite due to snapshot mechanism? added

#2 Updated by CyrilBrulebois 2019-01-07 14:27:12

  • Description updated

#3 Updated by intrigeri 2019-01-07 15:57:23

  • Status changed from New to Confirmed
  • Assignee deleted (intrigeri)
  • Parent task set to Bug #16281

#4 Updated by CyrilBrulebois 2019-01-10 14:21:49

  • Subject changed from persistence.feature fails due on NetworkManager test to persistence.feature fails due to NetworkManager test

#5 Updated by intrigeri 2019-04-02 14:50:59

  • Status changed from Confirmed to In Progress

Applied in changeset commit:tails|33d3b358ee1b5c5436155e7fe6ad39c64c3b604a.

#6 Updated by intrigeri 2019-04-02 14:51:08

  • Assignee set to CyrilBrulebois
  • QA Check set to Ready for QA
  • Type of work changed from Test to Code

Pushed a tentative fix.

#7 Updated by hefee 2019-04-05 09:14:58

  • Status changed from In Progress to Resolved
  • Assignee deleted (CyrilBrulebois)
  • QA Check changed from Ready for QA to Pass

Tails persistence tests passes now on Jenkins.