-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-9758: Move SanctionedSerializables to filter package (#7165)
Move SanctionedSerializables to new package org.apache.geode.internal.serialization.filter.
- Loading branch information
Showing
56 changed files
with
745 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...ode/connectors/jdbc/internal/ConnectorsSanctionedSerializablesServiceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /* | ||
| * 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.connectors.jdbc.internal; | ||
|
|
||
| import org.junit.experimental.categories.Category; | ||
|
|
||
| import org.apache.geode.codeAnalysis.SanctionedSerializablesServiceIntegrationTestBase; | ||
| import org.apache.geode.internal.serialization.filter.SanctionedSerializablesService; | ||
| import org.apache.geode.test.junit.categories.SanctionedSerializablesTest; | ||
| import org.apache.geode.test.junit.categories.SerializationTest; | ||
|
|
||
| @Category({SerializationTest.class, SanctionedSerializablesTest.class}) | ||
| public class ConnectorsSanctionedSerializablesServiceIntegrationTest | ||
| extends SanctionedSerializablesServiceIntegrationTestBase { | ||
|
|
||
| private final SanctionedSerializablesService service = | ||
| new ConnectorsSanctionedSerializablesService(); | ||
|
|
||
| @Override | ||
| protected SanctionedSerializablesService getService() { | ||
| return service; | ||
| } | ||
|
|
||
| @Override | ||
| protected ServiceResourceExpectation getServiceResourceExpectation() { | ||
| return ServiceResourceExpectation.NON_EMPTY; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...est/java/org/apache/geode/internal/CoreSanctionedSerializablesServiceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * 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.internal; | ||
|
|
||
| import org.junit.experimental.categories.Category; | ||
|
|
||
| import org.apache.geode.codeAnalysis.SanctionedSerializablesServiceIntegrationTestBase; | ||
| import org.apache.geode.internal.serialization.filter.SanctionedSerializablesService; | ||
| import org.apache.geode.test.junit.categories.SanctionedSerializablesTest; | ||
| import org.apache.geode.test.junit.categories.SerializationTest; | ||
|
|
||
| @Category({SerializationTest.class, SanctionedSerializablesTest.class}) | ||
| public class CoreSanctionedSerializablesServiceIntegrationTest | ||
| extends SanctionedSerializablesServiceIntegrationTestBase { | ||
|
|
||
| private final SanctionedSerializablesService service = new CoreSanctionedSerializablesService(); | ||
|
|
||
| @Override | ||
| protected SanctionedSerializablesService getService() { | ||
| return service; | ||
| } | ||
|
|
||
| @Override | ||
| protected ServiceResourceExpectation getServiceResourceExpectation() { | ||
| return ServiceResourceExpectation.NON_EMPTY; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
...apache/geode/cache/query/cq/internal/CQSanctionedSerializablesServiceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * 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.cache.query.cq.internal; | ||
|
|
||
| import org.junit.experimental.categories.Category; | ||
|
|
||
| import org.apache.geode.codeAnalysis.SanctionedSerializablesServiceIntegrationTestBase; | ||
| import org.apache.geode.internal.serialization.filter.SanctionedSerializablesService; | ||
| import org.apache.geode.test.junit.categories.SanctionedSerializablesTest; | ||
| import org.apache.geode.test.junit.categories.SerializationTest; | ||
|
|
||
| @Category({SerializationTest.class, SanctionedSerializablesTest.class}) | ||
| public class CQSanctionedSerializablesServiceIntegrationTest | ||
| extends SanctionedSerializablesServiceIntegrationTestBase { | ||
|
|
||
| private final SanctionedSerializablesService service = new CQSanctionedSerializablesService(); | ||
|
|
||
| @Override | ||
| protected SanctionedSerializablesService getService() { | ||
| return service; | ||
| } | ||
|
|
||
| @Override | ||
| protected ServiceResourceExpectation getServiceResourceExpectation() { | ||
| return ServiceResourceExpectation.NON_EMPTY; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
.../apache/geode/test/dunit/internal/DUnitSanctionedSerializablesServiceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * 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.test.dunit.internal; | ||
|
|
||
| import org.junit.experimental.categories.Category; | ||
|
|
||
| import org.apache.geode.codeAnalysis.SanctionedSerializablesServiceIntegrationTestBase; | ||
| import org.apache.geode.internal.serialization.filter.SanctionedSerializablesService; | ||
| import org.apache.geode.test.junit.categories.SanctionedSerializablesTest; | ||
| import org.apache.geode.test.junit.categories.SerializationTest; | ||
|
|
||
| @Category({SerializationTest.class, SanctionedSerializablesTest.class}) | ||
| public class DUnitSanctionedSerializablesServiceIntegrationTest | ||
| extends SanctionedSerializablesServiceIntegrationTestBase { | ||
|
|
||
| private final SanctionedSerializablesService service = new DUnitSanctionedSerializablesService(); | ||
|
|
||
| @Override | ||
| protected SanctionedSerializablesService getService() { | ||
| return service; | ||
| } | ||
|
|
||
| @Override | ||
| protected ServiceResourceExpectation getServiceResourceExpectation() { | ||
| return ServiceResourceExpectation.NON_EMPTY; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
...a/org/apache/geode/redis/internal/RedisSanctionedSerializablesServiceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /* | ||
| * 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.redis.internal; | ||
|
|
||
| import org.junit.experimental.categories.Category; | ||
|
|
||
| import org.apache.geode.codeAnalysis.SanctionedSerializablesServiceIntegrationTestBase; | ||
| import org.apache.geode.internal.serialization.filter.SanctionedSerializablesService; | ||
| import org.apache.geode.redis.internal.services.RedisSanctionedSerializablesService; | ||
| import org.apache.geode.test.junit.categories.SanctionedSerializablesTest; | ||
| import org.apache.geode.test.junit.categories.SerializationTest; | ||
|
|
||
| @Category({SerializationTest.class, SanctionedSerializablesTest.class}) | ||
| public class RedisSanctionedSerializablesServiceIntegrationTest | ||
| extends SanctionedSerializablesServiceIntegrationTestBase { | ||
|
|
||
| private final SanctionedSerializablesService service = new RedisSanctionedSerializablesService(); | ||
|
|
||
| @Override | ||
| public SanctionedSerializablesService getService() { | ||
| return service; | ||
| } | ||
|
|
||
| @Override | ||
| protected ServiceResourceExpectation getServiceResourceExpectation() { | ||
| return ServiceResourceExpectation.NON_EMPTY; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
56 changes: 56 additions & 0 deletions
56
...che/geode/gfsh/internal/management/GfshSanctionedSerializablesServiceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| /* | ||
| * 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.gfsh.internal.management; | ||
|
|
||
| import static org.assertj.core.api.Assertions.assertThat; | ||
|
|
||
| import java.io.IOException; | ||
| import java.util.Collection; | ||
|
|
||
| import org.junit.Test; | ||
| import org.junit.experimental.categories.Category; | ||
|
|
||
| import org.apache.geode.codeAnalysis.SanctionedSerializablesServiceIntegrationTestBase; | ||
| import org.apache.geode.internal.serialization.filter.SanctionedSerializablesService; | ||
| import org.apache.geode.management.cli.CommandProcessingException; | ||
| import org.apache.geode.test.junit.categories.SanctionedSerializablesTest; | ||
| import org.apache.geode.test.junit.categories.SerializationTest; | ||
|
|
||
| @Category({SerializationTest.class, SanctionedSerializablesTest.class}) | ||
| public class GfshSanctionedSerializablesServiceIntegrationTest | ||
| extends SanctionedSerializablesServiceIntegrationTestBase { | ||
|
|
||
| private final SanctionedSerializablesService service = new GfshSanctionedSerializablesService(); | ||
|
|
||
| @Override | ||
| protected SanctionedSerializablesService getService() { | ||
| return service; | ||
| } | ||
|
|
||
| @Override | ||
| protected ServiceResourceExpectation getServiceResourceExpectation() { | ||
| return ServiceResourceExpectation.NON_EMPTY; | ||
| } | ||
|
|
||
| @Test | ||
| public void acceptListContainsCommandProcessingException() throws IOException { | ||
| SanctionedSerializablesService service = getService(); | ||
|
|
||
| Collection<String> serializables = service.getSerializationAcceptlist(); | ||
|
|
||
| assertThat(serializables) | ||
| .contains(CommandProcessingException.class.getName()); | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.