Skip to content

Commit

Permalink
BC-7239 - cover to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Jun 21, 2024
1 parent d7bb066 commit 421dc64
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/de/svs/doido/mongo/ConfigmapApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,22 @@ void testInteractionWithPostConfigmapsExistAndLabels() {
.then()
.statusCode(204);
}


@Test
void testInteractionWithPostConfigmapsExistAndLabelsWrong() {
ConfigMap configmap = new ConfigMapBuilder().withNewMetadata().withName("test3").withNamespace("namespaceA").and().build();
Map<String,String> labels = new HashMap<>();
ObjectMeta meta;
labels.put("app.kubernetes.io/name", "doido-mongoB");
meta = configmap.getMetadata();
meta.setLabels(labels);
configmap.setMetadata(meta);
client.configMaps().create(configmap);
given()
.when().post("/configmap/namespaceA/test3")
.then()
.statusCode(204);
}

}

0 comments on commit 421dc64

Please sign in to comment.