(t *testing.T)
| 1057 | } |
| 1058 | |
| 1059 | func TestResolve_URLReference_WithEnvProvider(t *testing.T) { |
| 1060 | t.Parallel() |
| 1061 | |
| 1062 | envProvider := environment.NewMapEnvProvider(map[string]string{ |
| 1063 | "GITHUB_TOKEN": "test-token", |
| 1064 | }) |
| 1065 | |
| 1066 | source, err := Resolve("https://github.com/owner/repo/raw/main/agent.yaml", envProvider) |
| 1067 | require.NoError(t, err) |
| 1068 | assert.Equal(t, "https://github.com/owner/repo/raw/main/agent.yaml", source.Name()) |
| 1069 | |
| 1070 | // Verify the source has the env provider set |
| 1071 | urlSrc, ok := source.(*urlSource) |
| 1072 | require.True(t, ok) |
| 1073 | assert.NotNil(t, urlSrc.envProvider) |
| 1074 | } |
| 1075 | |
| 1076 | func TestResolveSources_URLReference_WithEnvProvider(t *testing.T) { |
| 1077 | t.Parallel() |
nothing calls this directly
no test coverage detected