Fix TODO comment syntax

This commit is contained in:
Anna Song
2022-05-06 09:24:23 -07:00
parent 7e0158e1e9
commit b8d2ff2afa

View File

@@ -128,7 +128,7 @@ namePrefix: dev-`,
}
func TestRemoteResourceSsh(t *testing.T) {
// skip all tests until server has ssh keys
// TODO: add ssh keys to server to run these tests
tests := map[string]remoteResourceCase{
"scp shorthand": {
skip: true,
@@ -168,7 +168,7 @@ func TestRemoteResourcePort(t *testing.T) {
sshURL := "ssh://git@github.com:22/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6"
httpsURL := "https://github.com:443/kubernetes-sigs/kustomize//examples/multibases/dev/?ref=v1.0.6"
// ports not currently supported; should implement in future
// TODO: ports not currently supported; implement in future
tests := map[string]remoteResourceCase{
"ssh": {
skip: true,
@@ -226,16 +226,18 @@ func TestRemoteResourceParameters(t *testing.T) {
httpsMasterBranch := "https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev?ref=master"
sshNoParams := "git@github.com:kubernetes-sigs/kustomize//examples/multibases/dev"
// cases with expected errors are query parameter combinations that aren't supported yet; should implement in future
// TODO: cases with expected errors are query parameter combinations that aren't supported yet; implement in future
tests := map[string]remoteResourceCase{
// TODO: fix flaky test that passes locally, but sometimes fails on server
"https no params": {
skip: true, // flaky: passes locally, but sometimes fails on server; fix in future
skip: true,
kustomization: fmt.Sprintf(resourcesField, httpsNoParam),
error: true,
expected: fmt.Sprintf(resourceErrorFormat+repoFindError, httpsNoParam),
},
// TODO: fix flaky test that passes locally, but sometimes fails on server
"https master": {
skip: true, // flaky: passes locally, but sometimes fails on server; fix in future
skip: true,
kustomization: fmt.Sprintf(resourcesField, httpsMasterBranch),
error: true,
expected: fmt.Sprintf(resourceErrorFormat+repoFindError, httpsMasterBranch),