// Check that user has been updated
// TODO: bizarrely, the new GitHub Java API library doesn't seem to handle bio
//final long count = testingPostgres.runSelectStatement("select count(*) from enduser where location='Toronto' and bio='I am a test user'", long.class);
@Test
    public void testRefreshingUserMetadata() {
        // Setup database
        // Refresh a tool
        Client.main(new String[] { "--config", ResourceHelpers.resourceFilePath("config_file.txt"), "tool", "refresh", "--entry",
            "quay.io/dockstoretestuser/quayandbitbucket", "--script" });
        // Check that user has been updated
        // TODO: bizarrely, the new GitHub Java API library doesn't seem to handle bio
        //final long count = testingPostgres.runSelectStatement("select count(*) from enduser where location='Toronto' and bio='I am a test user'", long.class);
        final long count = testingPostgres.runSelectStatement("select count(*) from user_profile where location='Toronto'", long.class);
        Assert.assertEquals("One user should have this info now, there are " + count, 1, count);
    }
Client.main(new String[] { "--config", ResourceHelpers.resourceFilePath("config_file.txt"), "tool", "refresh", "--entry",
"quay.io/dockstoretestuser/quayandbitbucket", "--script" });
// Check that user has been updated
// TODO: bizarrely, the new GitHub Java API library doesn't seem to handle bio
//final long count = testingPostgres.runSelectStatement("select count(*) from enduser where location='Toronto' and bio='I am a test user'", long.class);
final long count = testingPostgres.runSelectStatement("select count(*) from user_profile where location='Toronto'", long.class);
Assert.assertEquals("One user should have this info now, there are " + count, 1, count);
@Test
public void testRefreshingUserMetadata() {
// Setup database
// Refresh a tool
Client.main(new String[] { "--config", ResourceHelpers.resourceFilePath("config_file.txt"), "tool", "refresh", "--entry",
"quay.io/dockstoretestuser/quayandbitbucket", "--script" });
// Check that user has been updated
// TODO: bizarrely, the new GitHub Java API library doesn't seem to handle bio
//final long count = testingPostgres.runSelectStatement("select count(*) from enduser where location='Toronto' and bio='I am a test user'", long.class);
final long count = testingPostgres.runSelectStatement("select count(*) from user_profile where location='Toronto'", long.class);
Assert.assertEquals("One user should have this info now, there are " + count, 1, count);
}
@Test
public void testRefreshingUserMetadata() {
// Setup database
// Refresh a tool
Client.main(new String[] { "--config", ResourceHelpers.resourceFilePath("config_file.txt"), "tool", "refresh", "--entry",
"quay.io/dockstoretestuser/quayandbitbucket", "--script" });
// Check that user has been updated
// TODO: bizarrely, the new GitHub Java API library doesn't seem to handle bio
//final long count = testingPostgres.runSelectStatement("select count(*) from enduser where location='Toronto' and bio='I am a test user'", long.class);
final long count = testingPostgres.runSelectStatement("select count(*) from user_profile where location='Toronto'", long.class);
Assert.assertEquals("One user should have this info now, there are " + count, 1, count);
}