You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by jaredjstewart <gi...@git.apache.org> on 2016/09/29 18:03:37 UTC

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

GitHub user jaredjstewart opened a pull request:

    https://github.com/apache/incubator-geode/pull/248

    GEODE-1548: Specifying --J=-Dgemfire.jmx-manager-hostname-for-clients\u2026

    \u2026 now automatically sets -Djava.rmi.server.hostname

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jaredjstewart/incubator-geode feature/GEODE-1548

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-geode/pull/248.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #248
    
----
commit f114abc84c0719c0ee256fce8fb717ccfee8dfa1
Author: Jared Stewart <js...@pivotal.io>
Date:   2016-09-29T17:43:30Z

    GEODE-1548: Specifying --J=-Dgemfire.jmx-manager-hostname-for-clients now automatically sets -Djava.rmi.server.hostname

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-geode/pull/248


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

Posted by kirklund <gi...@git.apache.org>.
Github user kirklund commented on a diff in the pull request:

    https://github.com/apache/incubator-geode/pull/248#discussion_r81402893
  
    --- Diff: geode-core/src/test/java/org/apache/geode/management/internal/security/JavaRmiServerNameJunitTest.java ---
    @@ -0,0 +1,55 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *      http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + *
    + */
    +
    +package org.apache.geode.management.internal.security;
    +
    +import static org.apache.geode.distributed.ConfigurationProperties.*;
    +import static org.junit.Assert.*;
    +
    +import java.util.Properties;
    +
    +import org.junit.Test;
    +import org.junit.experimental.categories.Category;
    +
    +import org.apache.geode.cache.CacheFactory;
    +import org.apache.geode.internal.AvailablePort;
    +import org.apache.geode.test.junit.categories.UnitTest;
    +
    +@Category(UnitTest.class)
    --- End diff --
    
    The test name is ok but I'd probably make it JavaRmiServerNameIntegrationTest.java


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode issue #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-manager...

Posted by jinmeiliao <gi...@git.apache.org>.
Github user jinmeiliao commented on the issue:

    https://github.com/apache/incubator-geode/pull/248
  
    +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

Posted by jaredjstewart <gi...@git.apache.org>.
Github user jaredjstewart commented on a diff in the pull request:

    https://github.com/apache/incubator-geode/pull/248#discussion_r81409537
  
    --- Diff: geode-core/src/test/java/org/apache/geode/management/internal/security/JavaRmiServerNameJunitTest.java ---
    @@ -0,0 +1,55 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *      http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + *
    + */
    +
    +package org.apache.geode.management.internal.security;
    +
    +import static org.apache.geode.distributed.ConfigurationProperties.*;
    +import static org.junit.Assert.*;
    +
    +import java.util.Properties;
    +
    +import org.junit.Test;
    +import org.junit.experimental.categories.Category;
    +
    +import org.apache.geode.cache.CacheFactory;
    +import org.apache.geode.internal.AvailablePort;
    +import org.apache.geode.test.junit.categories.UnitTest;
    +
    +@Category(UnitTest.class)
    --- End diff --
    
    Thanks for clarifying that distinction.  I pushed another commit with this change.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

Posted by kirklund <gi...@git.apache.org>.
Github user kirklund commented on a diff in the pull request:

    https://github.com/apache/incubator-geode/pull/248#discussion_r81402616
  
    --- Diff: geode-core/src/test/java/org/apache/geode/management/internal/security/JavaRmiServerNameJunitTest.java ---
    @@ -0,0 +1,55 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *      http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + *
    + */
    +
    +package org.apache.geode.management.internal.security;
    +
    +import static org.apache.geode.distributed.ConfigurationProperties.*;
    +import static org.junit.Assert.*;
    +
    +import java.util.Properties;
    +
    +import org.junit.Test;
    +import org.junit.experimental.categories.Category;
    +
    +import org.apache.geode.cache.CacheFactory;
    +import org.apache.geode.internal.AvailablePort;
    +import org.apache.geode.test.junit.categories.UnitTest;
    +
    +@Category(UnitTest.class)
    --- End diff --
    
    Since this test is testing more than one class (it's creating a Cache and using networking resources), it should have @Category(IntegrationTest.class).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

Posted by metatype <gi...@git.apache.org>.
Github user metatype commented on a diff in the pull request:

    https://github.com/apache/incubator-geode/pull/248#discussion_r81408700
  
    --- Diff: geode-core/src/test/java/org/apache/geode/management/internal/security/JavaRmiServerNameJunitTest.java ---
    @@ -0,0 +1,55 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *      http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + *
    + */
    +
    +package org.apache.geode.management.internal.security;
    +
    +import static org.apache.geode.distributed.ConfigurationProperties.*;
    +import static org.junit.Assert.*;
    +
    +import java.util.Properties;
    +
    +import org.junit.Test;
    +import org.junit.experimental.categories.Category;
    +
    +import org.apache.geode.cache.CacheFactory;
    +import org.apache.geode.internal.AvailablePort;
    +import org.apache.geode.test.junit.categories.UnitTest;
    +
    +@Category(UnitTest.class)
    --- End diff --
    
    Oh got it, I missed the previous comment around @IntegrationTest.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-geode pull request #248: GEODE-1548: Specifying --J=-Dgemfire.jmx-...

Posted by metatype <gi...@git.apache.org>.
Github user metatype commented on a diff in the pull request:

    https://github.com/apache/incubator-geode/pull/248#discussion_r81408523
  
    --- Diff: geode-core/src/test/java/org/apache/geode/management/internal/security/JavaRmiServerNameJunitTest.java ---
    @@ -0,0 +1,55 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *      http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + *
    + */
    +
    +package org.apache.geode.management.internal.security;
    +
    +import static org.apache.geode.distributed.ConfigurationProperties.*;
    +import static org.junit.Assert.*;
    +
    +import java.util.Properties;
    +
    +import org.junit.Test;
    +import org.junit.experimental.categories.Category;
    +
    +import org.apache.geode.cache.CacheFactory;
    +import org.apache.geode.internal.AvailablePort;
    +import org.apache.geode.test.junit.categories.UnitTest;
    +
    +@Category(UnitTest.class)
    --- End diff --
    
    Isn't the convention to use *JUnitTest for unit tests?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---