File tree Expand file tree Collapse file tree 8 files changed +3
-59
lines changed
minimum_user/src/src_user/Test Expand file tree Collapse file tree 8 files changed +3
-59
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ dkms.conf
60
60
# for c2a user sample
61
61
Examples /minimum_user /src /src_core
62
62
Examples /minimum_user /build
63
- Examples /minimum_user /src /src_user /Test /authorization.json
64
63
Examples /2nd_obc_user /src /src_core
65
64
Examples /2nd_obc_user /build
66
- Examples /2nd_obc_user /src /src_user /Test /authorization.json
67
65
* .pyc
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
# -*- coding: utf-8 -*-
3
- import json
4
- import os
5
3
import isslwings as wings
6
4
7
5
8
6
def get_wings_operation ():
9
- authorization = dict (
10
- client_id = os .environ .get ("WINGS_CLIENT_ID" ),
11
- client_secret = os .environ .get ("WINGS_CLIENT_SECRET" ),
12
- grant_type = os .environ .get ("WINGS_GRANT_TYPE" ),
13
- username = os .environ .get ("WINGS_USERNAME" ),
14
- password = os .environ .get ("WINGS_PASSWORD" ),
15
- )
16
-
17
- # 環境変数があればそちらを優先
18
- if None in authorization .values ():
19
- with open (os .path .dirname (__file__ ) + "/../authorization.json" ) as f :
20
- authorization = json .load (f )
21
- return wings .Operation (authentication_info = authorization )
7
+ return wings .Operation ()
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ call :sync_file ".\src\src_user\TlmCmd\common_tlm_cmd_packet.c" "..\minimum_user
29
29
call :sync_file " .\src\src_user\TlmCmd\common_tlm_packet.c" " ..\minimum_user\src\src_user\TlmCmd\common_tlm_packet.c"
30
30
31
31
call :sync_file " .\src\src_user\Test\utils\wings_utils.py" " ..\minimum_user\src\src_user\Test\utils\wings_utils.py"
32
- call :sync_file " .\src\src_user\Test\authorization.json.temp" " ..\minimum_user\src\src_user\Test\authorization.json.temp"
33
32
call :sync_file " .\src\src_user\Test\pytest.ini" " ..\minimum_user\src\src_user\Test\pytest.ini"
34
33
35
34
Original file line number Diff line number Diff line change 48
48
cd ./test/src_user/Applications/UserDefined/
49
49
pytest -m real -v test_tlm_mem_dump.py
50
50
```
51
-
52
- ## 認証情報について
53
- wings と通信するにあたりに対して認証情報を渡す必要がある. ` authorization.json.temp ` と同じ key を持つ正しい ` authorization.json ` を誰かからもらうか,又はそれぞれの key に対応する環境変数を埋めること. 対応を下表に示す.
54
-
55
- | ` authorization.json ` の key | 環境変数 |
56
- | :-------------------------- | :------------------ |
57
- | client_id | WINGS_CLIENT_ID |
58
- | client_secret | WINGS_CLIENT_SECRET |
59
- | grant_type | WINGS_GRANT_TYPE |
60
- | username | WINGS_USERNAME |
61
- | password | WINGS_PASSWORD |
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
# -*- coding: utf-8 -*-
3
- import json
4
- import os
5
3
import isslwings as wings
6
4
7
5
8
6
def get_wings_operation ():
9
- authorization = dict (
10
- client_id = os .environ .get ("WINGS_CLIENT_ID" ),
11
- client_secret = os .environ .get ("WINGS_CLIENT_SECRET" ),
12
- grant_type = os .environ .get ("WINGS_GRANT_TYPE" ),
13
- username = os .environ .get ("WINGS_USERNAME" ),
14
- password = os .environ .get ("WINGS_PASSWORD" ),
15
- )
16
-
17
- # 環境変数があればそちらを優先
18
- if None in authorization .values ():
19
- with open (os .path .dirname (__file__ ) + "/../authorization.json" ) as f :
20
- authorization = json .load (f )
21
- return wings .Operation (authentication_info = authorization )
7
+ return wings .Operation ()
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ void C2A_core_main(void);
10
10
#define C2A_CORE_VER_MAJOR (3)
11
11
#define C2A_CORE_VER_MINOR (8)
12
12
#define C2A_CORE_VER_PATCH (0)
13
- #define C2A_CORE_VER_PRE ("beta.3 ")
13
+ #define C2A_CORE_VER_PRE ("beta.4 ")
14
14
15
15
#endif
You can’t perform that action at this time.
0 commit comments