<commit_before>package org.genivi.sota.core

import akka.http.scaladsl.model.Uri.Path
import akka.http.scaladsl.model.headers.Location
import akka.http.scaladsl.model.{HttpResponse, StatusCodes, Uri}
import akka.http.scaladsl.testkit.ScalatestRouteTest
import akka.http.scaladsl.unmarshalling.Unmarshaller._
import io.circe.generic.auto._
import io.circe.{Encoder, Json}
import java.util.UUID

import org.genivi.sota.core.data.client.PendingUpdateRequest
import org.genivi.sota.core.data.{BlockedInstall, Package, UpdateRequest, UpdateStatus}
import org.genivi.sota.core.db.{InstallHistories, Packages}
import org.genivi.sota.core.resolver.{Connectivity, ConnectivityClient}
import org.genivi.sota.core.rvi.{InstallReport, OperationResult, UpdateReport}
import org.genivi.sota.core.transfer.DeviceUpdates
import org.genivi.sota.data._
import java.time.Instant

import org.genivi.sota.http.{AuthDirectives, NamespaceDirectives}
import org.genivi.sota.marshalling.CirceMarshallingSupport._
import org.genivi.sota.messaging.MessageBusPublisher
import org.scalacheck.Gen
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.time.{Millis, Seconds, Span}
import org.scalatest.{FunSuite, Inspectors, ShouldMatchers}

import scala.concurrent.{Await, Future}
import scala.concurrent.duration._

class DeviceUpdatesResourceSpec extends FunSuite
  with ShouldMatchers
  with ScalatestRouteTest
  with ScalaFutures
  with DatabaseSpec
  with Inspectors
  with UpdateResourcesDatabaseSpec {

  import NamespaceDirectives._
  import Device._<commit_msg>add long timeout to device update resource spec<commit_after>package org.genivi.sota.core

import akka.http.scaladsl.model.Uri.Path
import akka.http.scaladsl.model.headers.Location
import akka.http.scaladsl.model.{HttpResponse, StatusCodes, Uri}
import akka.http.scaladsl.testkit.ScalatestRouteTest
import akka.http.scaladsl.unmarshalling.Unmarshaller._
import io.circe.generic.auto._
import io.circe.{Encoder, Json}
import java.util.UUID

import org.genivi.sota.core.data.client.PendingUpdateRequest
import org.genivi.sota.core.data.{BlockedInstall, Package, UpdateRequest, UpdateStatus}
import org.genivi.sota.core.db.{InstallHistories, Packages}
import org.genivi.sota.core.resolver.{Connectivity, ConnectivityClient}
import org.genivi.sota.core.rvi.{InstallReport, OperationResult, UpdateReport}
import org.genivi.sota.core.transfer.DeviceUpdates
import org.genivi.sota.data._
import java.time.Instant

import org.genivi.sota.http.{AuthDirectives, NamespaceDirectives}
import org.genivi.sota.marshalling.CirceMarshallingSupport._
import org.genivi.sota.messaging.MessageBusPublisher
import org.scalacheck.Gen
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.time.{Millis, Seconds, Span}
import org.scalatest.{FunSuite, Inspectors, ShouldMatchers}

import scala.concurrent.{Await, Future}
import scala.concurrent.duration._

class DeviceUpdatesResourceSpec extends FunSuite
  with ShouldMatchers
  with ScalatestRouteTest
  with ScalaFutures
  with DatabaseSpec
  with Inspectors
  with UpdateResourcesDatabaseSpec
  with LongRequestTimeout {

  import NamespaceDirectives._
  import Device._
{'fraction_non_alphanumeric': 0.08912768647281921, 'fraction_numerical': 0.0, 'mean_word_length': 6.292626728110599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7061120', 'n_tokens_mistral': 1034, 'n_tokens_neox': 1037, 'n_words': 184}