Skip to content

Feature/con 569#385

Open
robertcli wants to merge 26 commits intocinchapi:developfrom
robertcli:feature/CON-569
Open

Feature/con 569#385
robertcli wants to merge 26 commits intocinchapi:developfrom
robertcli:feature/CON-569

Conversation

@robertcli
Copy link

Please review this

Copy link
Member

@jtnelson jtnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertcli You should reset the autogenerated changes to ConcourseNavigateService and ConcourseCalculateService since those are strictly formatting differences.

You should also add some unit tests.


Table<String, RegistryData, Object> reg = registry;

public Map<String, Set<String>> getPlugins() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertcli You should name this method describePlugins so that is is more semantically clear as to what the method is actually doing

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also reverted ConcourseNavigateService and ConcourseCalculateService to a previous commit to fix formatting changes.

import java.lang.management.MemoryUsage;
import java.net.ServerSocket;
import java.nio.ByteBuffer;
import java.util.Hashtable;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import is not being used, so remove it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. I guess for this to have pushed my spotlessApply didn't run correctly?

}
}
});
return temp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this variable to something more descriptive. Perhaps you can call it descriptions or something

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


@Test
public void testInspect() {
Map<String, Set<String>> describe = client.inspect();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertcli this test isn't asserting anything? How do you know its correct?


import com.cinchapi.concourse.test.ConcourseIntegrationTest;

public class InspectTest extends ConcourseIntegrationTest {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test should extend PluginTest and be included in the concourse-ete-tests- project.

Take a look at how the plugin tests are setup in the concourse-plugin-test-core project. You need to create some test plugins (similar to the TestPlugin class) and install them within the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants