Sha256: 1b0bc626aac34476e1d27d35828a626ed09edb184fc6ce1e90b1ab0b7adf6829

Contents?: true

Size: 1.04 KB

Versions: 71

Compression:

Stored size: 1.04 KB

Contents

# ********** Copyright Viacom, Inc. Apache 2.0 **********

require_relative "test_helper.rb"

module RokuBuilder
  class LoaderIntergrationTest < Minitest::Test
    include Helpers
    def setup
      @config = build_config(LoaderIntergrationTest)
      @uuid = SecureRandom.uuid
      build_uuid_script
    end
    def teardown
      FileUtils.rm(@config) if File.exist?(@config)
      cleanup_uuid_script
    end
    def test_sideload
      output = `#{roku} --sideload --stage production`
      assert_log @uuid
      refute_match(/WARN: Missing File/, output)
    end
    def test_delete
      `#{roku} --sideload --working`
      assert_log @uuid
      `#{roku} --delete`
      output = `#{roku} --app-list`
      refute_match(/\|\s*dev\s*\|/, output)
    end
    def test_build
      target = File.join(testfiles_path(LoaderIntergrationTest), "out.zip")
      FileUtils.rm(target) if File.exist?(target)
      `#{roku} --build --working --out #{target}`
      assert File.exist?(target)
      FileUtils.rm(target) if File.exist?(target)
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
roku_builder-4.24.1 intergration/roku_builder/test_loader.rb
roku_builder-4.24.0 intergration/roku_builder/test_loader.rb
roku_builder-4.23.2 intergration/roku_builder/test_loader.rb
roku_builder-4.23.1 intergration/roku_builder/test_loader.rb
roku_builder-4.23.0 intergration/roku_builder/test_loader.rb
roku_builder-4.22.9 intergration/roku_builder/test_loader.rb
roku_builder-4.22.8 intergration/roku_builder/test_loader.rb
roku_builder-4.22.7 intergration/roku_builder/test_loader.rb
roku_builder-4.22.6 intergration/roku_builder/test_loader.rb
roku_builder-4.22.5 intergration/roku_builder/test_loader.rb
roku_builder-4.22.4 intergration/roku_builder/test_loader.rb
roku_builder-4.22.3 intergration/roku_builder/test_loader.rb
roku_builder-4.22.2 intergration/roku_builder/test_loader.rb
roku_builder-4.22.1 intergration/roku_builder/test_loader.rb
roku_builder-4.21.6 intergration/roku_builder/test_loader.rb
roku_builder-4.21.5 intergration/roku_builder/test_loader.rb
roku_builder-4.21.4 intergration/roku_builder/test_loader.rb
roku_builder-4.21.3 intergration/roku_builder/test_loader.rb
roku_builder-4.21.2 intergration/roku_builder/test_loader.rb
roku_builder-4.21.1 intergration/roku_builder/test_loader.rb