Skip to content

Commit 7f7c7c5

Browse files
committed
Add English comments
1 parent 00bd824 commit 7f7c7c5

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# proxy
2-
Proxy to route requests based on PiCoP headers
2+
Proxy to route requests based on PiCoP headers.
3+
4+
## Usage
5+
You must use the proxy with [proxy-controller](https://github.com/picop-rd/proxy-controller).
6+
7+
You can refer to [demo](https://github.com/picop-rd/demo) for usage.

e2e/admin/env_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ func TestEnv_Senario_Normal1(t *testing.T) {
6060
Destination: "destination:portB",
6161
}
6262

63-
t.Run("新しいEnvを登録できる", func(t *testing.T) {
63+
t.Run("It can register a new Env.", func(t *testing.T) {
6464
err = envCli.Register(context.Background(), []entity.Env{envA, envB})
6565
if err != nil {
6666
t.Errorf("Env.Register(): error = %v", err)
6767
}
6868
})
6969

70-
t.Run("登録済みのEnvを取得できる", func(t *testing.T) {
70+
t.Run("It can get a registered Env.", func(t *testing.T) {
7171
gotEnvA, err := envCli.Get(context.Background(), "A")
7272
if err != nil {
7373
t.Errorf("Env.Get(): error = %v", err)
@@ -77,7 +77,7 @@ func TestEnv_Senario_Normal1(t *testing.T) {
7777
}
7878
})
7979

80-
t.Run("登録済みのEnvのDestinationを変更できる", func(t *testing.T) {
80+
t.Run("It can update the Destination of a registered Env.", func(t *testing.T) {
8181
modifiedEnvA := entity.Env{
8282
EnvID: "A",
8383
Destination: "modifiedDestination:portA",
@@ -95,7 +95,7 @@ func TestEnv_Senario_Normal1(t *testing.T) {
9595
}
9696
})
9797

98-
t.Run("Delete: 登録済みのEnvを削除できる", func(t *testing.T) {
98+
t.Run("It can delete a registered Env.", func(t *testing.T) {
9999
err = envCli.Delete(context.Background(), "A")
100100
if err != nil {
101101
t.Errorf("Env.Delete(): delete: error = %v", err)

0 commit comments

Comments
 (0)