File: 12_disable_test_with_network_access

package info (click to toggle)
r10k 5.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,228 kB
  • sloc: ruby: 18,180; makefile: 10; sh: 1
file content (27 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Disable tests that require network access
 Thoses tests need to access to https://forgeapi.puppetlabs.com
 in order to fetch module version.
Author: Sebastien Badia <sbadia@debian.org>
Forwarded: not-needed
Last-Update: 2022-04-15

--- a/spec/unit/module/forge_spec.rb
+++ b/spec/unit/module/forge_spec.rb
@@ -93,7 +93,7 @@ describe R10K::Module::Forge do
   context "when a module is deprecated" do
     subject { described_class.new('puppetlabs/corosync', fixture_modulepath, { version: :latest }) }
 
-    it "warns on sync if module is not already insync" do
+    xit "warns on sync if module is not already insync" do
       allow(subject).to receive(:status).and_return(:absent)
 
       allow(R10K::Forge::ModuleRelease).to receive(:new).and_return(double('mod_release', install: true))
@@ -243,7 +243,7 @@ describe R10K::Module::Forge do
   end
 
   describe '#install' do
-    it 'installs the module from the forge' do
+    xit 'installs the module from the forge' do
       subject = described_class.new('branan/eight_hundred', fixture_modulepath, { version: '8.0.0' })
       release = instance_double('R10K::Forge::ModuleRelease')
       expect(R10K::Forge::ModuleRelease).to receive(:new).with('branan-eight_hundred', '8.0.0').and_return(release)