Skip to content

Commit

Permalink
Add English comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyaonoe committed May 30, 2023
1 parent 00bd824 commit 7f7c7c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# proxy
Proxy to route requests based on PiCoP headers
Proxy to route requests based on PiCoP headers.

## Usage
You must use the proxy with [proxy-controller](https://github.com/picop-rd/proxy-controller).

You can refer to [demo](https://github.com/picop-rd/demo) for usage.
8 changes: 4 additions & 4 deletions e2e/admin/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ func TestEnv_Senario_Normal1(t *testing.T) {
Destination: "destination:portB",
}

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

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

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

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

0 comments on commit 7f7c7c5

Please sign in to comment.