Skip to content

Commit

Permalink
Updated Atlan test
Browse files Browse the repository at this point in the history
  • Loading branch information
fazpiazu committed Dec 3, 2024
1 parent ad52750 commit cfb6740
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/test/scala/com/metabolic/data/services/AtlanServiceTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ package com.metabolic.data.services

import com.metabolic.data.RegionedTest
import com.metabolic.data.core.services.util.ConfigReaderService
import com.metabolic.data.mapper.services.ConfigParserService
import org.scalatest.funsuite.AnyFunSuite

class AtlanServiceTest extends AnyFunSuite with RegionedTest {

test("atlanCatalogServiceTest") {

val configService = new ConfigReaderService()
val rawConfig = new ConfigReaderService().getConfig("src/test/resources/employees.conf")

// Load config file from path
val config = configService.getConfig("src/test/resources/employees.conf")
val config = new ConfigParserService()
.parseConfig(rawConfig)

asset(config != null)
val owner = config.head.owner
val sqlFile = config.head.sqlUrl
val confFile = config.head.confUrl

assert(owner != "")
assert(sqlFile != "")
assert(confFile != "")
}
}

0 comments on commit cfb6740

Please sign in to comment.