@@ -136,6 +136,44 @@ func TestDeployWitIgnorePattern(t *testing.T) {
136
136
c .Assert (prevTag , qt .Equals , mainCss .ETag ())
137
137
}
138
138
139
+ func TestDeployWitRoutesIgnore (t * testing.T ) {
140
+ c := qt .New (t )
141
+ root := "my/path"
142
+
143
+ store , m := newTestStore (0 , root )
144
+ source := testSourcePath ()
145
+ configFile := filepath .Join (source , ".hidden/.s3deploy.ignore.yml" )
146
+
147
+ cfg := & Config {
148
+ BucketName : "example.com" ,
149
+ RegionName : "eu-west-1" ,
150
+ ConfigFile : configFile ,
151
+ BucketPath : root ,
152
+ MaxDelete : 300 ,
153
+ Silent : false ,
154
+ SourcePath : source ,
155
+ baseStore : store ,
156
+ }
157
+
158
+ // same as TestDeployWitIgnorePattern
159
+
160
+ prevCss := m ["my/path/main.css" ]
161
+ prevTag := prevCss .ETag ()
162
+
163
+ stats , err := Deploy (cfg )
164
+ c .Assert (err , qt .IsNil )
165
+ c .Assert (stats .Summary (), qt .Equals , "Deleted 0 of 0, uploaded 2, skipped 1 (67% changed)" )
166
+ assertKeys (t , m ,
167
+ "my/path/.s3deploy.yml" ,
168
+ "my/path/index.html" ,
169
+ "my/path/ab.txt" ,
170
+ "my/path/deleteme.txt" , // ignored: stale
171
+ "my/path/main.css" , // ignored: not updated
172
+ )
173
+ mainCss := m ["my/path/main.css" ]
174
+ c .Assert (prevTag , qt .Equals , mainCss .ETag ())
175
+ }
176
+
139
177
func TestDeploySourceNotFound (t * testing.T ) {
140
178
c := qt .New (t )
141
179
store , _ := newTestStore (0 , "" )
0 commit comments