Skip to content

Commit

Permalink
Merge branch 'develop' into refactor_remove-org.eclipse.kura.wire.com…
Browse files Browse the repository at this point in the history
…ponent.conditional.provider
  • Loading branch information
pierantoniomerlino authored Sep 19, 2024
2 parents 62daf02 + 1dec568 commit 07307aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ netModemToolTipModemIndentifier=Enter a unique name for the modem.
netModemToolTipModemInterfaceNumber=A unique number that identifies a modem interface. For example: <br><br>An Interface # of 0 would name the modem interface ppp0<br><br>An Interface # of 1 would name the modem interface ppp1
netModemToolTipDialString=Instructions for how the modem should attempt to connect.<br><br>A typical dial string for the detected modem is: <b>{0}</b>
netModemToolTipDialStringDefault=Instructions for how the modem should attempt to connect.<br><br>Typical dial strings are:<br>* EVDO Modems => <b>atd#777</b><br>* HSPA Modems => <b>atd*99***1#</b><br>For LTE Modems: <br>* LE910C1-EU => <b>ATD*99***4#</b><br>* LE910C1-AP (Telstra) => <b>ATD*99***1# or ATD*99***5#</b><br>* LE910-EU1 and LE910EU-V2 => <b>ATD*99***2# or ATD*99***1# (modem power cycle may be required for PDP context 1)</b><br>* LE910NA-V2 (AT&T) => <b>ATD*99***1#</b><br>* LE910NA-V2 (Verizon Wireless) => <b>ATD*99***3#</b><br>* Quectel-EG25 => <b>ATD*99***4#</b><br>* Other modems or mobile network operators => <b>please consult the documentation of the modem manufacturer and the mobile network operator</b><br><br>NOTE: The number before '#' defines the PDP context to be used for this connection.<br><br>Click the button to display/select existing PDP profiles.
netModemToolTipApn=Modem access point name.
netModemToolTipApn=Modem access point name (Optional parameter).<br><br>If left empty this value will be picked up from the Mobile Broadband Provider the modem is registered to.<br><br>In order to avoid misconfiguration, it is strongly suggested to set it manually.
netModemToolTipAuthentication=Select modem authentication type.
netModemToolTipUsername=Enter user name.
netModemToolTipPassword=Enter password.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ netModemToolTipModemIndentifier=モデムの一意の名称を入力してくだ
netModemToolTipModemInterfaceNumber=モデムインターフェースの一意の数字を入力してください。例:<br><br>インターフェース0の#は、モデムインターフェースの名称をppp0とする。<br><br>インターフェース1の#は、モデムインターフェースの名称をppp2とする。
netModemToolTipDialString=モデムの接続試行方法についての命令<br><br>モデム探知の典型的ダイヤル文字列は:<b>{0}</b>
netModemToolTipDialStringDefault=モデムの接続試行方法についての命令<br><br>典型的なダイヤル文字列:<br>* EVDOモデム > <b>atd#777</b><br>* HSPAモデム> <b>atd*99***1#</b><br>LTEモデム: <br>* LE910C1-EU > <b>ATD*99***4#</b><br>* LE910C1-AP (Telstra) > <b>ATD*99***1#またはATD*99***5#</b><br>* LE910-EU1及びLE910EU-V2 > <b>ATD*99***2#またはATD*99***1# (モデムのパワーサイクルはPDPコンテキスト1を要求する場合があります)</b><br>* LE910NA-V2 (AT-T)> <b>ATD*99***1#</b><br>* LE910NA-V2 (ワイヤレスバージョン)> <b>ATD*99***3#</b><br>* Quectel-EG25 > <b>ATD*99***5#</b><br>* 他のモデムまたはモバイルネットワークのオペレーターは、> <b>モデム製造元のドキュメント及びモバイルネットワークオペレーターを確認してください</b><br><br>注意:'#'の前の数字はこの接続に使用されるPDPコンテキストを定義します。<br><br>ボタンを押して、存在するPDPプロファイルを表示・選択してください。> <b>atd*99***1#</b><br>For LTE Modems: <br>* LE910C1-EU > <b>ATD*99***4#</b><br>* LE910C1-AP (Telstra) > <b>ATD*99***1# or ATD*99***5#</b><br>* LE910-EU1 and LE910EU-V2 > <b>ATD*99***2# or ATD*99***1# (modem power cycle may be required for PDP context 1)</b><br>* LE910NA-V2 (AT-T) > <b>ATD*99***1#</b><br>* LE910NA-V2 (Verizon Wireless) > <b>ATD*99***3#</b><br>* Quectel-EG25 > <b>ATD*99***4#</b><br>* Other modems or mobile network operators > <b>please consult the documentation of the modem manufacturer and the mobile network operator</b><br><br>NOTE: The number before '#' defines the PDP context to be used for this connection.<br><br>Click the button to display/select existing PDP profiles.
netModemToolTipApn=モデムアクセスポイントの名称。
netModemToolTipApn=モデムアクセスポイントの名称 (オプション パラメーター)。<br><br>空のままにすると、この値はモデムが登録されているモバイル ブロードバンド プロバイダーから取得されます。<br><br>誤った設定を避けるため、手動で設定することを強くお勧めします
netModemToolTipAuthentication=モデムの認証タイプを選択してください。
netModemToolTipUsername=ユーザネームを入力してください。
netModemToolTipPassword=パスワードを入力してください。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@
import static org.mockito.Mockito.when;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -206,6 +210,7 @@ public void testUpdateFailUrlOccupied() throws Throwable {

@Test
public void testUpdateFile() throws Throwable {
final String filePathString = "/tmp/kurah2/testdb";
final String enc = "enc";
char[] encPass = enc.toCharArray();
String pass = "pass";
Expand All @@ -223,7 +228,7 @@ public void testUpdateFile() throws Throwable {
props.put("db.user", user);
props.put("db.password", enc);
props.put("db.connection.pool.max.size", 10);
File f = new File("/tmp/kurah2/testdb");
File f = new File(filePathString);
props.put("db.connector.url", "jdbc:h2:file:" + f.getAbsolutePath());

try {
Expand All @@ -245,16 +250,13 @@ public void testUpdateFile() throws Throwable {

svc.deactivate();

// test a method and clean the files
File[] files = f.getParentFile().listFiles();
assertEquals(1, files.length);
Path filePath = Paths.get(filePathString + ".mv.db");
assertTrue(Files.exists(filePath));

H2DbServiceOptions cfg = (H2DbServiceOptions) TestUtil.getFieldValue(svc, "configuration");
TestUtil.invokePrivate(svc, "deleteDbFiles", cfg);

for (File file : files) {
assertFalse(file.exists());
}
assertFalse(Files.exists(filePath));
}

}

0 comments on commit 07307aa

Please sign in to comment.