@@ -35,6 +35,7 @@ all() ->
3535 , {group , env }
3636 , {group , application_env }
3737 , {group , ecs }
38+ , {group , credential_process }
3839 ].
3940
4041groups () ->
@@ -47,6 +48,7 @@ groups() ->
4748 , {env , [], all_testcases ()}
4849 , {application_env , [], all_testcases ()}
4950 , {ecs , [], all_testcases ()}
51+ , {credential_process , [], all_testcases ()}
5052 ].
5153
5254all_testcases () ->
@@ -69,6 +71,8 @@ init_per_group(GroupName, Config) ->
6971 credential_env -> init_group (credential_env , provider (file ), credential_env , Config );
7072 profile_env -> init_group (profile_env , provider (file ), config_credential , Config );
7173 application_env -> init_group (application_env , provider (env ), application_env , Config );
74+ credential_process ->
75+ init_group (credential_process , provider (file ), credential_process , Config );
7276 GroupName -> init_group (GroupName , Config )
7377 end .
7478
@@ -111,6 +115,9 @@ assert_test(credential_env) ->
111115assert_test (profile_env ) ->
112116 Provider = provider (file ),
113117 assert_values (? DUMMY_ACCESS_KEY2 , ? DUMMY_SECRET_ACCESS_KEY2 , Provider );
118+ assert_test (credential_process ) ->
119+ Provider = provider (file ),
120+ assert_values (? DUMMY_ACCESS_KEY2 , ? DUMMY_SECRET_ACCESS_KEY2 , Provider );
114121assert_test (GroupName ) ->
115122 Provider = provider (GroupName ),
116123 assert_values (? DUMMY_ACCESS_KEY , ? DUMMY_SECRET_ACCESS_KEY , Provider ).
@@ -145,6 +152,8 @@ provider_opts(config_credential, Config) ->
145152 #{credential_path => ? config (data_dir , Config ) ++ " config_credential/" };
146153provider_opts (credential_env , _Config ) ->
147154 #{credential_path => os :getenv (" HOME" )};
155+ provider_opts (credential_process , Config ) ->
156+ #{credential_path => ? config (data_dir , Config ) ++ " credential_process/" };
148157provider_opts (_GroupName , _Config ) ->
149158 #{}.
150159
0 commit comments