mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 02:54:26 +02:00
Add missing tests for bucket util (#565)
* Add CheckDeepEqual test util * Fix for srcContext with slash suffix * Add tests for bucket_util.go
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func GetBucketAndItem(context string) (string, string) {
|
||||
split := strings.SplitN(context, "/", 2)
|
||||
if len(split) == 2 {
|
||||
if len(split) == 2 && split[1] != "" {
|
||||
return split[0], split[1]
|
||||
}
|
||||
return split[0], constants.ContextTar
|
||||
|
||||
Reference in New Issue
Block a user