Skip to content

Commit

Permalink
Merge branch 'release/5.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
milux committed May 19, 2021
2 parents cfda666 + 9444087 commit 1761eb2
Show file tree
Hide file tree
Showing 13 changed files with 332 additions and 364 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.net.URI
import java.nio.file.Path

interface AcmeClient {
fun getChallengeAuthorization(challenge: String): String
fun getChallengeAuthorization(challenge: String): String?

fun renewCertificate(
targetDirectory: Path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ package de.fhg.aisec.ids.api.acme

import com.fasterxml.jackson.annotation.JsonProperty

class AcmeTermsOfService(val tos: String, @get:JsonProperty(value = "isUri") val isUri: Boolean, val error: String)
class AcmeTermsOfService(val tos: String?, @get:JsonProperty(value = "isUri") val isUri: Boolean?, val error: String?)

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ class DockerCmIT {
val oContainerID = d.pullImage(app)

// We expect a new container to be created
Assert.assertTrue(oContainerID.isPresent)
Assert.assertNotEquals("", oContainerID.get())
wipes.add(oContainerID.get())
Assert.assertNotNull(oContainerID)
Assert.assertNotEquals("", oContainerID)
wipes.add(oContainerID!!)

// we expect the container to be in list()
val container = d.list(false).firstOrNull { it.id == oContainerID.get() }
val container = d.list(false).firstOrNull { it.id == oContainerID }
Assert.assertNotNull(container)
Assert.assertEquals(ContainerStatus.CREATED, container?.status)
}
Expand Down Expand Up @@ -98,8 +98,8 @@ class DockerCmIT {
val oContainerID = d.pullImage(app)

// We expect a new container to be created
Assert.assertTrue(oContainerID.isPresent)
val containerID = oContainerID.get()
Assert.assertNotNull(oContainerID)
val containerID = oContainerID!!
wipes.add(containerID)
Assert.assertNotNull(containerID)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,8 @@
* limitations under the License.
* =========================LICENSE_END==================================
*/
package de.fhg.aisec.ids.cm.impl.trustx;
package de.fhg.aisec.ids.cm.impl.trustx

import jnr.unixsocket.UnixSocketChannel;
import jnr.unixsocket.UnixSocketChannel

class ServerDataEvent {
public TrustXMock server;
public UnixSocketChannel socket;
public byte[] data;

public ServerDataEvent(TrustXMock server, UnixSocketChannel socket, byte[] data) {
this.server = server;
this.socket = socket;
this.data = data;
}
}
internal class ServerDataEvent(var server: TrustXMock, var socket: UnixSocketChannel, var data: ByteArray)
Loading

0 comments on commit 1761eb2

Please sign in to comment.