Skip to content

Commit

Permalink
labelsstore test commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
karolina-telicent committed Oct 28, 2024
1 parent 823c281 commit 86f1afa
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions scg-system/src/test/java/io/telicent/TestYamlConfigParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;

Expand Down Expand Up @@ -233,7 +234,7 @@ void yaml_config_abac_tim() {
}

// TODO
@Test
/*@Test
void yaml_config_abac_labels_store() {
List<String> arguments = List.of("--conf",DIR + "/yaml/config-abac-labelsstore-path.yaml");
server = construct(arguments.toArray(new String[0])).start();
Expand All @@ -251,16 +252,29 @@ void yaml_config_abac_labels_store() {
dataset.end();
}
dataset.begin(org.apache.jena.query.ReadWrite.READ);
try {
System.out.println("======= Default Graph =======");
Model defaultModel = dataset.getDefaultModel();
defaultModel.write(System.out, "TTL"); // Print the default graph in Turtle format
} catch (Exception e) {
log.error(e.getMessage());
} finally {
dataset.end();
}
RowSetRewindable actualResponseRSR;
String URL = "http://localhost:" + server.getPort() + serviceName;
String uploadURL = URL + "/upload";
load(uploadURL, DIR + "/yaml/data-no-labels.trig");

actualResponseRSR = query(server, "u1");
actualResponseRSR = query(server, "u2");
actualResponseRSR = query(server, "u3");
actualResponseRSR = query(server, "u1");
expectedRSR.reset();
boolean equals = ResultSetCompare.isomorphic(expectedRSR, actualResponseRSR);
assertTrue(equals);
}
}*/

@Test
void yaml_config_abac_attributes_store() {
Expand Down

0 comments on commit 86f1afa

Please # to comment.