Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAlJarrah committed Sep 3, 2024
1 parent 0d312c0 commit 19d6bf6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/selfserve-service-mock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: npx --yes -p @expediagroup/spec-transformer cli -i ${{ env.spec }} -o ${{ env.spec }} -to
- name: Run Mock Server
working-directory: specs
run: java -jar specmatic.jar stub ${{ env.spec }} --port 8090 & disown
run: java -jar specmatic.jar stub ${{ env.spec }} --port 8080 & disown
- name: Wait for Mock Server to Start
run: sleep 10
- name: Verify Server is Running
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@
*/
package com.expediagroup.sdk.test.contract.extension

import io.specmatic.conversions.EnvironmentAndPropertiesConfiguration
import io.specmatic.conversions.OpenApiSpecification
import io.specmatic.core.*
import io.specmatic.core.Feature
import io.specmatic.core.Hook
import io.specmatic.core.OPENAPI_FILE_EXTENSIONS
import io.specmatic.core.PassThroughHook
import io.specmatic.core.SecurityConfiguration
import io.specmatic.core.unsupportedFileExtensionContractException
import java.io.File

/**
Expand All @@ -28,6 +34,7 @@ import java.io.File
* @param sourceRepositoryBranch optional branch of source repository.
* @param specificationPath optional path to the specification file.
* @param securityConfiguration optional security configuration.
* @param environmentAndPropertiesConfiguration configuration for environment and properties, default is EnvironmentAndPropertiesConfiguration.
* @throws unsupportedFileExtensionContractException if the file extension is not supported.
* @return converted Feature object.
*/
Expand All @@ -38,7 +45,7 @@ fun File.toSpecmaticFeature(
sourceRepositoryBranch: String? = null,
specificationPath: String? = null,
securityConfiguration: SecurityConfiguration? = null,
specmaticConfig: SpecmaticConfig = SpecmaticConfig()
environmentAndPropertiesConfiguration: EnvironmentAndPropertiesConfiguration = EnvironmentAndPropertiesConfiguration()
): Feature =
when (extension) {
in OPENAPI_FILE_EXTENSIONS ->
Expand All @@ -50,7 +57,7 @@ fun File.toSpecmaticFeature(
sourceRepositoryBranch = sourceRepositoryBranch,
specificationPath = specificationPath,
securityConfiguration = securityConfiguration,
specmaticConfig = specmaticConfig
environmentAndPropertiesConfiguration = environmentAndPropertiesConfiguration
).toFeature()

else -> throw unsupportedFileExtensionContractException(path, extension)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ class Main {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
<name>Rapid Java SDK Tests</name>
<description>Expedia Group Rapid Java SDK Tests</description>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
</parent>

<properties>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down Expand Up @@ -110,8 +104,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>
1.8</source>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
Expand Down Expand Up @@ -146,4 +139,4 @@
</plugin>
</plugins>
</build>
</project>
</project>

0 comments on commit 19d6bf6

Please sign in to comment.